Home
last modified time | relevance | path

Searched refs:munlock (Results 1 - 25 of 34) sorted by relevance

12

/third_party/rust/crates/rustix/tests/mm/
H A Dmmap.rs97 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 Dmlock.rs14 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 Dmlock2.c37 munlock(memory, memsize); in mlock2_0100()
60 munlock(memory, memsize); in mlock2_0200()
/third_party/rust/crates/rustix/src/mm/
H A Dmmap.rs210 /// `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 Dmod.rs13 mlock, mmap, mmap_anonymous, mprotect, munlock, munmap, MapFlags, MprotectFlags, ProtFlags,
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
H A D16-1-buildonly.c11 * int munlock(const void *, size_t)
24 dummyvar = munlock; in dummyfcn()
/third_party/musl/src/mman/
H A Dmunlock.c5 int munlock(const void *addr, size_t len) in munlock() function
/third_party/musl/porting/liteos_a/user/src/mman/
H A Dmunlock.c5 int munlock(const void *addr, size_t len) in munlock() function
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/
H A D10-1.c10 * Test that the munlock() function sets errno = ENOMEM if some or all of the
47 result = munlock(page_ptr, BUFSIZE); in main()
H A D11-1.c10 * 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 D7-1.c10 * 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 Dmlock.c38 munlock(memory, memsize); in mlock_0100()
H A Dmunlock.c39 ret = munlock(memory, TEST_SIZE); in munlock_0100()
/third_party/ltp/testcases/kernel/syscalls/munlock/
H A Dmunlock02.c12 * 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 Dmunlock01.c10 * 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 Dhugemmap20.c46 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 Dmlock03.c11 * 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 Dchsh.c53 munlock(toybuf, sizeof(toybuf)); // prevents memset from "optimizing" away. in chsh_main()
/third_party/ltp/testcases/kernel/syscalls/mincore/
H A Dmincore02.c53 munlock(addr, page_size * num_pages); in cleanup()
/third_party/musl/libc-test/src/api/
H A Dsys_mman.c53 {int(*p)(const void*,size_t) = munlock;} in f()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dext_password.c106 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 Dext_password.c109 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 Dmman.h119 int munlock (const void *, size_t);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dmman.h123 int munlock (const void *, size_t);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dmman.h123 int munlock (const void *, size_t);

Completed in 7 milliseconds

12