Home
last modified time | relevance | path

Searched refs:MCL_CURRENT (Results 1 – 11 of 11) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dmlock2-tests.c287 if (mlockall(MCL_CURRENT)) { in test_lock_onfault_of_present()
289 ksft_exit_fail_msg("mlockall(MCL_CURRENT): %s\n", strerror(errno));
313 if (mlockall(MCL_CURRENT | MCL_ONFAULT)) { in test_munlockall0()
315 ksft_exit_fail_msg("mlockall(MCL_CURRENT | MCL_ONFAULT): %s\n", strerror(errno));
327 if (mlockall(MCL_CURRENT | MCL_FUTURE)) { in test_munlockall1()
329 ksft_exit_fail_msg("mlockall(MCL_CURRENT | MCL_FUTURE): %s\n", strerror(errno)); in test_munlockall1()
421 if (mlockall(MCL_CURRENT | MCL_ONFAULT | MCL_FUTURE)) in test_vma_management()
/linux/mm/
H A Dmlock.c717 if (!(flags & MCL_CURRENT)) in apply_mlockall_flags()
721 if (flags & MCL_CURRENT) { in apply_mlockall_flags()
750 if (!flags || (flags & ~(MCL_CURRENT | MCL_FUTURE | MCL_ONFAULT)) || in SYSCALL_DEFINE1()
764 if (!(flags & MCL_CURRENT) || (current->mm->total_vm <= lock_limit) || in SYSCALL_DEFINE1()
768 if (!ret && (flags & MCL_CURRENT)) in SYSCALL_DEFINE1()
/linux/tools/include/uapi/asm-generic/
H A Dmman.h18 #define MCL_CURRENT 1 /* lock all current mappings */ macro
/linux/arch/sparc/include/uapi/asm/
H A Dmman.h21 #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ macro
/linux/arch/powerpc/include/uapi/asm/
H A Dmman.h25 #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ macro
/linux/tools/laptop/freefall/
H A Dfreefall.c143 mlockall(MCL_CURRENT|MCL_FUTURE); in main()
/linux/tools/perf/bench/
H A Dfutex-wake.c162 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_wake()
H A Dfutex-hash.c151 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_hash()
H A Dfutex-lock-pi.c185 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_lock_pi()
H A Dfutex-requeue.c187 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_requeue()
H A Dfutex-wake-parallel.c263 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_wake_parallel()