Searched refs:MCL_CURRENT (Results 1 – 11 of 11) sorted by relevance
287 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()
717 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()
18 #define MCL_CURRENT 1 /* lock all current mappings */ macro
21 #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ macro
25 #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ macro
143 mlockall(MCL_CURRENT|MCL_FUTURE); in main()
162 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_wake()
151 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_hash()
185 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_lock_pi()
187 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_requeue()
263 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_wake_parallel()