Home
last modified time | relevance | path

Searched refs:mlock (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/mincore/
Dmincore03.c23 bool mlock; member
54 if (tc->mlock) in test_mincore()
71 if (tc->mlock) in test_mincore()
/third_party/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c43 TST_EXP_FAIL(mlock(addr, len), ENOMEM, "mlock(%p, %lu)", addr, len); in test_enomem1()
57 TST_EXP_FAIL(mlock(addr, len), ENOMEM, "mlock(%p, %lu)", addr, len); in test_enomem2()
74 TST_EXP_FAIL(mlock(addr, len), EPERM, "mlock(%p, %lu)", addr, len); in test_eperm()
Dmlock01.c36 TST_EXP_PASS(mlock(addr, tc->len), "mlock(%p, %d)", addr, tc->len); in do_mlock()
Dmlock04.c42 TST_EXP_PASS(mlock(buf, file_len), "mlock(%p, %d)", buf, file_len); in verify_mlock()
Dmlock03.c59 if (mlock((const void *)from, to - from) == -1) in verify_mlock()
/third_party/rust/crates/rustix/src/mm/
Dmmap.rs179 pub unsafe fn mlock(ptr: *mut c_void, len: usize) -> io::Result<()> { in mlock() function
180 backend::mm::syscalls::mlock(ptr, len) in mlock()
Dmod.rs13 mlock, mmap, mmap_anonymous, mprotect, munlock, munmap, MapFlags, MprotectFlags, ProtFlags,
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D11-1-buildonly.c24 dummyvar = mlock; in dummyfcn()
/third_party/rust/crates/rustix/tests/mm/
Dmmap.rs97 use rustix::mm::{mlock, mmap_anonymous, munlock, munmap, MapFlags, ProtFlags}; in test_mlock()
105 mlock(addr, 8192).unwrap(); in test_mlock()
Dmain.rs9 mod mlock; module
/third_party/musl/src/mman/
Dmlock.c5 int mlock(const void *addr, size_t len) in mlock() function
/third_party/musl/porting/liteos_a/user/src/mman/
Dmlock.c5 int mlock(const void *addr, size_t len) in mlock() function
/third_party/musl/src/linux/
Dmlock2.c8 return mlock(addr, len); in mlock2()
/third_party/rust/crates/rustix/src/backend/libc/mm/
Dsyscalls.rs180 pub(crate) unsafe fn mlock(addr: *mut c::c_void, length: usize) -> io::Result<()> { in mlock() function
181 ret(c::mlock(addr, length)) in mlock()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/
D5-1.c32 result = mlock(ptr, BUFSIZE); in main()
D8-1.c47 result = mlock(page_ptr, BUFSIZE); in main()
D10-1.c42 result = mlock(notpage_ptr, page_size - 1); in main()
D12-1.c93 result = mlock(ptr, BUFSIZE); in main()
/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmlock.c35 int result = mlock(memory, memsize); in mlock_0100()
Dmunlock.c36 int ret = mlock(memory, TEST_SIZE); in munlock_0100()
Dtest_src_functionalext_supplement_mman.gni16 "mlock",
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/
D7-1.c32 if (mlock(ptr, BUFSIZE) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/
D12-1.c94 result = mlock(ptr, BUFSIZE); in main()
/third_party/ltp/testcases/realtime/lib/
Dlibrttest.c115 int mlock = 0; in rt_init_long() local
181 mlock = 1; in rt_init_long()
220 if (mlock) { in rt_init_long()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap20.c40 ret = mlock(p, hpage_size); in run_test()

1234