/third_party/rust/crates/rustix/tests/mm/ |
H A D | mmap.rs | 97 use rustix::mm::{mlock, mmap_anonymous, munlock, munmap, MapFlags, ProtFlags}; in test_mlock() 106 munlock(addr, 8192).unwrap(); in test_mlock() 113 Ok(()) => munlock(addr, 8192).unwrap(), in test_mlock() 121 Ok(()) => munlock(addr, 8192).unwrap(), in test_mlock() 123 munlock(addr, 8192).unwrap(); in test_mlock()
|
H A D | mlock.rs | 14 Ok(()) => rustix::mm::munlock(buf.as_mut_ptr().cast::<c_void>(), buf.len()).unwrap(), in test_mlock() 34 Ok(()) => rustix::mm::munlock(buf.as_mut_ptr().cast::<c_void>(), buf.len()).unwrap(), in test_mlock_with() 70 Ok(()) => rustix::mm::munlock(buf.as_mut_ptr().cast::<c_void>(), buf.len()).unwrap(), in test_mlock_with_onfault()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | mlock2.c | 37 munlock(memory, memsize); in mlock2_0100() 60 munlock(memory, memsize); in mlock2_0200()
|
/third_party/rust/crates/rustix/src/mm/ |
H A D | mmap.rs | 210 /// `munlock(ptr, len)`—Unlock memory. 226 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/munlock.html 227 /// [Linux]: https://man7.org/linux/man-pages/man2/munlock.2.html 229 pub unsafe fn munlock(ptr: *mut c_void, len: usize) -> io::Result<()> { in munlock() functions 230 backend::mm::syscalls::munlock(ptr, len) in munlock()
|
H A D | mod.rs | 13 mlock, mmap, mmap_anonymous, mprotect, munlock, munmap, MapFlags, MprotectFlags, ProtFlags,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/ |
H A D | 16-1-buildonly.c | 11 * int munlock(const void *, size_t) 24 dummyvar = munlock; in dummyfcn()
|
/third_party/musl/src/mman/ |
H A D | munlock.c | 5 int munlock(const void *addr, size_t len) in munlock() function
|
/third_party/musl/porting/liteos_a/user/src/mman/ |
H A D | munlock.c | 5 int munlock(const void *addr, size_t len) in munlock() function
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/ |
H A D | 10-1.c | 10 * Test that the munlock() function sets errno = ENOMEM if some or all of the 47 result = munlock(page_ptr, BUFSIZE); in main()
|
H A D | 11-1.c | 10 * Test that munlock() set errno = EINVAL when addr is not a multiple of 42 result = munlock(notpage_ptr, page_size - 1); in main() 46 ("munlock() does not require that addr be a multiple of {PAGESIZE}.\nTest PASSED\n"); in main() 50 ("munlock() requires that addr be a multiple of {PAGESIZE}.\nTest PASSED\n"); in main() 53 printf("munlock() returns a value of %i instead of 0 or 1.\n", in main() 55 perror("munlock"); in main()
|
H A D | 7-1.c | 10 * Test that munlock return a value of zero upon successful completion. 42 result = munlock(ptr, BUFSIZE); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | mlock.c | 38 munlock(memory, memsize); in mlock_0100()
|
H A D | munlock.c | 39 ret = munlock(memory, TEST_SIZE); in munlock_0100()
|
/third_party/ltp/testcases/kernel/syscalls/munlock/ |
H A D | munlock02.c | 12 * munlock(2) fails with ENOMEM if some of the specified address range 25 TST_EXP_FAIL(munlock(addr, len), ENOMEM, "munlock(%p, %lu)", in run()
|
H A D | munlock01.c | 10 * Test munlock with various valid addresses and lengths. 22 {"munlock 1 byte", 1}, 23 {"munlock 1024 bytes", 1024}, 24 {"munlock 1024 * 1024 bytes", 1024 * 1024}, 25 {"munlock 1024 * 1024 * 10 bytes", 1024 * 1024 * 10} 35 TST_EXP_PASS(munlock(addr, tc->len), "munlock(%p, %d)", addr, tc->len); in verify_munlock()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap20.c | 46 ret = munlock(p, hpage_size); in run_test() 48 tst_res(TFAIL|TERRNO, "munlock() failed (flags %s)", tc->flags_str); in run_test() 50 tst_res(TPASS, "mlock/munlock with %s hugetlb mmap", tc->flags_str); in run_test()
|
/third_party/ltp/testcases/kernel/syscalls/mlock/ |
H A D | mlock03.c | 11 * Stack size mapping is decreased through mlock/munlock call. 16 * mapping through several loops of mlock/munlock of /proc/self/maps. 19 * munlock 76KiB bfef2000-bff05000 rw-p 00000000 00:00 0 [stack] 22 * munlock 44KiB bfefa000-bff05000 rw-p 00000000 00:00 0 [stack] 62 tst_res(TINFO, "munlock [%lx,%lx]", from, to); in verify_mlock() 63 if (munlock((void *)from, to - from) == -1) in verify_mlock() 64 tst_res(TINFO | TERRNO, "munlock failed"); in verify_mlock()
|
/third_party/toybox/toys/pending/ |
H A D | chsh.c | 53 munlock(toybuf, sizeof(toybuf)); // prevents memset from "optimizing" away. in chsh_main()
|
/third_party/ltp/testcases/kernel/syscalls/mincore/ |
H A D | mincore02.c | 53 munlock(addr, page_size * num_pages); in cleanup()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_mman.c | 53 {int(*p)(const void*,size_t) = munlock;} in f()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | ext_password.c | 106 if (munlock(wpabuf_head(pw), wpabuf_len(pw)) < 0) { in ext_password_free() 107 wpa_printf(MSG_ERROR, "EXT PW: munlock failed: %s", in ext_password_free()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | ext_password.c | 109 if (munlock(wpabuf_head(pw), wpabuf_len(pw)) < 0) { in ext_password_free() 110 wpa_printf(MSG_ERROR, "EXT PW: munlock failed: %s", in ext_password_free()
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
H A D | mman.h | 119 int munlock (const void *, size_t);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | mman.h | 123 int munlock (const void *, size_t);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | mman.h | 123 int munlock (const void *, size_t);
|