Home
last modified time | relevance | path

Searched refs:MLOCK_ONFAULT (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dmlock2-tests.c241 if (mlock2_(map, 2 * page_size, MLOCK_ONFAULT)) { in test_mlock_onfault()
243 ksft_exit_fail_msg("mlock2(MLOCK_ONFAULT): %s\n", strerror(errno)); in test_mlock_onfault()
270 if (mlock2_(map, 2 * page_size, MLOCK_ONFAULT)) { in test_lock_onfault_of_present()
272 ksft_test_result_fail("mlock2(MLOCK_ONFAULT) error: %s", strerror(errno)); in test_lock_onfault_of_present()
420 if (call_mlock && mlock2_(map, 3 * page_size, MLOCK_ONFAULT)) { in test_mlockall()
503 ret = mlock2_(map, size, MLOCK_ONFAULT);
H A Dmlock-random-test.c161 MLOCK_ONFAULT); in test_mlock_within_limit()
223 MLOCK_ONFAULT); in test_mlock_outof_limit()
/linux/tools/include/uapi/asm-generic/
H A Dmman-common.h39 #define MLOCK_ONFAULT 0x01 /* Lock pages in range after they are faulted in, do not prefault */ macro
/linux/Documentation/mm/
H A Dunevictable-lru.rst311 fault path - which is also how mlock2()'s MLOCK_ONFAULT areas are handled.