/third_party/ltp/testcases/kernel/syscalls/mlock2/ |
H A D | mlock201.c | 9 * 1) When we use mlock2() without MLOCK_ONFAULT to lock memory in the 13 * 2) When we use mlock2() with MLOCK_ONFAULT to lock memory in the 59 /* mlock2() with MLOCK_ONFAULT just lock present 62 {0, 1, 0, 1, 0, MLOCK_ONFAULT}, 64 /* fault-in half of pages, lock all with MLOCK_ONFAULT */ 65 {HPAGES, PAGES, 0, PAGES, HPAGES, MLOCK_ONFAULT}, 68 {1, HPAGES, 1, HPAGES + 1, 1, MLOCK_ONFAULT}, 71 {HPAGES, HPAGES, -1, HPAGES, HPAGES, MLOCK_ONFAULT}, 109 tst_res(TCONF, "mlock2() didn't support MLOCK_ONFAULT"); in verify_mlock2()
|
H A D | mlock203.c | 8 * If one memory is already locked by mlock2() with MLOCK_ONFAULT and then 9 * it is locked again by mlock()(or mlock2() without MLOCK_ONFAULT), the 13 * 'b155b4fde5bd("mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT)")' 33 TEST(tst_syscall(__NR_mlock2, addr, pgsz, MLOCK_ONFAULT)); in verify_mlock2() 37 "mlock2() didn't support MLOCK_ONFAULT"); in verify_mlock2() 40 "mlock2(MLOCK_ONFAULT) failed"); in verify_mlock2() 49 "mlock2(MLOCK_ONFAULT) locked %lu size, expected %lu", in verify_mlock2()
|
/third_party/ltp/include/lapi/ |
H A D | mlock2.h | 12 #ifndef MLOCK_ONFAULT 13 # define MLOCK_ONFAULT 0x01 macro
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | mlock2.c | 57 int ret = mlock2(memory, memchip, MLOCK_ONFAULT); in mlock2_0200()
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
H A D | mman.h | 101 #define MLOCK_ONFAULT 0x01 macro
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | mman.h | 105 #define MLOCK_ONFAULT 0x01 macro
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | mman.h | 105 #define MLOCK_ONFAULT 0x01 macro
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | mman.h | 110 #define MLOCK_ONFAULT 0x01 macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | mman.h | 105 #define MLOCK_ONFAULT 0x01 macro
|
/third_party/musl/include/sys/ |
H A D | mman.h | 107 #define MLOCK_ONFAULT 0x01 macro
|
/third_party/rust/crates/rustix/src/backend/linux_raw/mm/ |
H A D | types.rs | 105 /// `MLOCK_ONFAULT` 106 const ONFAULT = linux_raw_sys::general::MLOCK_ONFAULT;
|
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | mem_sec.c | 550 #if defined(OPENSSL_SYS_LINUX) && defined(MLOCK_ONFAULT) && defined(SYS_mlock2) in sh_init() 551 if (syscall(SYS_mlock2, sh.arena, sh.arena_size, MLOCK_ONFAULT) < 0) { in sh_init()
|
/third_party/openssl/crypto/ |
H A D | mem_sec.c | 544 #if defined(OPENSSL_SYS_LINUX) && defined(MLOCK_ONFAULT) && defined(SYS_mlock2) in sh_init() 545 if (syscall(SYS_mlock2, sh.arena, sh.arena_size, MLOCK_ONFAULT) < 0) { in sh_init()
|
/third_party/rust/crates/rustix/src/backend/libc/mm/ |
H A D | types.rs | 282 /// `MLOCK_ONFAULT` 283 const ONFAULT = c::MLOCK_ONFAULT as _;
|
/third_party/rust/crates/libc/src/unix/linux_like/android/ |
H A D | mod.rs | 2600 pub const MLOCK_ONFAULT: ::c_int = 0x01; consts
|
/third_party/rust/crates/linux-raw-sys/src/aarch64/ |
H A D | general.rs | 977 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/ |
H A D | mod.rs | 3033 pub const MLOCK_ONFAULT: ::c_uint = 0x01; consts
|
/third_party/rust/crates/linux-raw-sys/src/riscv64/ |
H A D | general.rs | 982 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/linux-raw-sys/src/riscv32/ |
H A D | general.rs | 982 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/linux-raw-sys/src/powerpc64/ |
H A D | general.rs | 989 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/linux-raw-sys/src/mips64/ |
H A D | general.rs | 999 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/linux-raw-sys/src/powerpc/ |
H A D | general.rs | 989 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/linux-raw-sys/src/mips/ |
H A D | general.rs | 999 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/linux-raw-sys/src/arm/ |
H A D | general.rs | 976 pub const MLOCK_ONFAULT: u32 = 1; consts
|
/third_party/rust/crates/linux-raw-sys/src/sparc/ |
H A D | general.rs | 1197 pub const MLOCK_ONFAULT: u32 = 1; consts
|