Home
last modified time | relevance | path

Searched refs:MLOCK_ONFAULT (Results 1 - 25 of 30) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/mlock2/
H A Dmlock201.c9 * 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 Dmlock203.c8 * 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 Dmlock2.h12 #ifndef MLOCK_ONFAULT
13 # define MLOCK_ONFAULT 0x01 macro
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dmlock2.c57 int ret = mlock2(memory, memchip, MLOCK_ONFAULT); in mlock2_0200()
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dmman.h101 #define MLOCK_ONFAULT 0x01 macro
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dmman.h105 #define MLOCK_ONFAULT 0x01 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dmman.h105 #define MLOCK_ONFAULT 0x01 macro
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dmman.h110 #define MLOCK_ONFAULT 0x01 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dmman.h105 #define MLOCK_ONFAULT 0x01 macro
/third_party/musl/include/sys/
H A Dmman.h107 #define MLOCK_ONFAULT 0x01 macro
/third_party/rust/crates/rustix/src/backend/linux_raw/mm/
H A Dtypes.rs105 /// `MLOCK_ONFAULT`
106 const ONFAULT = linux_raw_sys::general::MLOCK_ONFAULT;
/third_party/node/deps/openssl/openssl/crypto/
H A Dmem_sec.c550 #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 Dmem_sec.c544 #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 Dtypes.rs282 /// `MLOCK_ONFAULT`
283 const ONFAULT = c::MLOCK_ONFAULT as _;
/third_party/rust/crates/libc/src/unix/linux_like/android/
H A Dmod.rs2600 pub const MLOCK_ONFAULT: ::c_int = 0x01; consts
/third_party/rust/crates/linux-raw-sys/src/aarch64/
H A Dgeneral.rs977 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/libc/src/unix/linux_like/linux/
H A Dmod.rs3033 pub const MLOCK_ONFAULT: ::c_uint = 0x01; consts
/third_party/rust/crates/linux-raw-sys/src/riscv64/
H A Dgeneral.rs982 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/linux-raw-sys/src/riscv32/
H A Dgeneral.rs982 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
H A Dgeneral.rs989 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/linux-raw-sys/src/mips64/
H A Dgeneral.rs999 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/linux-raw-sys/src/powerpc/
H A Dgeneral.rs989 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/linux-raw-sys/src/mips/
H A Dgeneral.rs999 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/linux-raw-sys/src/arm/
H A Dgeneral.rs976 pub const MLOCK_ONFAULT: u32 = 1; consts
/third_party/rust/crates/linux-raw-sys/src/sparc/
H A Dgeneral.rs1197 pub const MLOCK_ONFAULT: u32 = 1; consts

Completed in 158 milliseconds

12