Home
last modified time | relevance | path

Searched refs:munmap (Results 1 - 25 of 351) sorted by relevance

12345678910>>...15

/third_party/rust/crates/rustix/tests/mm/
H A Dmmap.rs9 use rustix::mm::{mmap, munmap, MapFlags, ProtFlags}; in test_mmap()
40 munmap(addr, 8192).unwrap(); in test_mmap()
63 use rustix::mm::{mmap_anonymous, munmap, MapFlags, ProtFlags}; in test_mmap_anonymous()
72 munmap(addr, 8192).unwrap(); in test_mmap_anonymous()
78 use rustix::mm::{mmap_anonymous, mprotect, munmap, MapFlags, MprotectFlags, ProtFlags}; in test_mprotect()
91 munmap(addr, 8192).unwrap(); in test_mprotect()
97 use rustix::mm::{mlock, mmap_anonymous, munlock, munmap, MapFlags, ProtFlags}; in test_mlock()
127 munmap(addr, 8192).unwrap(); in test_mlock()
134 use rustix::mm::{madvise, mmap_anonymous, munmap, Advice, MapFlags, ProtFlags}; in test_madvise()
146 munmap(add in test_madvise()
[all...]
/third_party/musl/porting/linux/user/src/hook/
H A Dmusl_preinit_common.c22 .munmap = MuslMalloc(munmap),
34 .munmap = MuslMalloc(munmap),
H A Dmalloc_common.c113 int munmap(void* addr, size_t length) in munmap() function
117 return dispatch_table->munmap(addr, length); in munmap()
119 return MuslMalloc(munmap)(addr, length); in munmap()
/third_party/musl/src/hook/linux/
H A Dmusl_preinit_common.c37 .munmap = MuslMalloc(munmap),
49 .munmap = MuslMalloc(munmap),
/third_party/ltp/testcases/kernel/syscalls/munmap/
H A Dmunmap03.c23 * 1. munmap() fails with -1 return value and sets errno to EINVAL
26 * 2. munmap() fails with -1 return value and sets errno to EINVAL
28 * 3. munmap() fails with -1 return value and sets errno to EINVAL
105 tst_resm(TFAIL, "munmap succeeded unexpectedly"); in check_and_print()
120 TEST(munmap(addr, map_len)); in test_einval1()
130 TEST(munmap(addr, map_len)); in test_einval2()
140 TEST(munmap(addr, map_len)); in test_einval3()
147 if (munmap(global_addr, global_maplen) == -1) in cleanup()
148 tst_resm(TWARN | TERRNO, "munmap failed"); in cleanup()
/third_party/musl/Benchmark/musl/
H A Dlibc_mman.cpp135 munmap(mem, length); in Bm_function_Mmap_anonymous()
152 munmap(mem, length); in Bm_function_Munmap_anonymous()
171 munmap(mem, length); in Bm_function_Mmap_fd()
193 munmap(mem, length); in Bm_function_Munmap_fd()
209 munmap(addr, length); in Bm_function_Madvise()
230 munmap(newAddr, newLength); in Bm_function_Mremap()
252 munmap(mem, length); in Bm_function_Msync()
296 munmap(addr, length); in Bm_function_Mlock_Munlock()
/third_party/libunwind/libunwind/src/mi/
H A Dflush_cache.c40 munmap (w->index, w->index_size); in unw_flush_cache()
42 munmap (w->debug_frame, w->debug_frame_size); in unw_flush_cache()
43 munmap (w, sizeof (*w)); in unw_flush_cache()
/third_party/ltp/testcases/kernel/syscalls/mmap/
H A Dmmap10.c25 * mmap/munmap /dev/zero: a common way of malloc()/free() anonymous
32 * option to mmap/munmap anonymous pages.
48 * 16M in size is also multi-threaded the subsequent munmap() of
148 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero()
149 tst_brkm(TFAIL | TERRNO, cleanup, "munmap"); in mmapzero()
159 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero()
161 "subsequent munmap #1"); in mmapzero()
168 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero()
170 "subsequent munmap #2"); in mmapzero()
178 if (munmap( in mmapzero()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/
H A Dldso_dlopen_ext_test.cpp81 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F()
101 munmap(addr, SIZE_128); in HWTEST_F()
131 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F()
171 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F()
192 munmap(addr, SIZE_128); in HWTEST_F()
312 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F()
348 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F()
383 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F()
412 munmap(addr, SIZE_128); in HWTEST_F()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
H A D7-1.c22 * 4. munmap() this mapping.
79 munmap(pa, size); in main()
93 munmap(pa, size); in main()
99 munmap(pa, size); in main()
H A D9-1.c76 munmap(pa, size); in main()
84 munmap(pa, size); in main()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dremap_file_pages.c144 munmap(start, LEN); in remap_file_pages_0100()
151 munmap(start, LEN); in remap_file_pages_0100()
171 munmap(start, LEN); in remap_file_pages_0100()
/third_party/pcre2/pcre2/src/sljit/
H A DsljitProtExecAllocator.c212 munmap((void *)retval, size); in alloc_chunk()
238 munmap((void *)retval, size); in alloc_chunk()
243 munmap(retval->executable, size); in alloc_chunk()
244 munmap((void *)retval, size); in alloc_chunk()
256 munmap(header->executable, size); in free_chunk()
257 munmap((void *)header, size); in free_chunk()
/third_party/musl/libc-test/src/functionalext/relro/
H A Ddlopen_ext_relro_test.c434 munmap(map, map_size); in dlopen_ext_relro_1600()
471 munmap(map, map_size); in dlopen_ext_relro_1700()
508 munmap(map, map_size); in dlopen_ext_relro_1800()
543 munmap(map, map_size); in dlopen_ext_relro_1900()
580 munmap(map, map_size); in dlopen_ext_relro_2000()
617 munmap(map, map_size); in dlopen_ext_relro_2100()
656 munmap(map, map_size); in dlopen_ext_relro_2200()
695 munmap(map, map_size); in dlopen_ext_relro_2300()
733 munmap(map, map_size); in dlopen_ext_relro_2400()
/third_party/mesa3d/src/gallium/auxiliary/os/
H A Dos_mman.h59 munmap(addr, length)
75 return munmap(addr, length); in os_munmap()
/third_party/musl/libc-test/src/functionalext/supplement/hook/hook_gtest/
H A Dhook_munmap_test.cpp15 * @tc.desc: Verify the use of the munmap function to release memory, and expect a return value of 0 to indicate
23 EXPECT_TRUE(munmap(ptr, MMAP_SIZE) == 0); in HWTEST_F()
28 * @tc.desc: Verify the use of the munmap function to release memory, and expect a return value of 0 to indicate
36 EXPECT_TRUE(munmap(ptr, MMAP_SIZE) == 0); in HWTEST_F()
/third_party/ltp/testcases/kernel/mem/mmapstress/
H A Dmmapstress05.c62 if (munmap(mmapaddr+pagesize, pagesize) == -1) { \
63 ERROR("munmap failed"); \
65 if (munmap(mmapaddr, pagesize) == -1) { \
66 ERROR("munmap failed"); \
68 if (munmap(mmapaddr+2*pagesize, pagesize) == -1) { \
69 ERROR("munmap failed"); \
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap02.c105 if (munmap(addrlist[i], 256 * 1024 * 1024) == -1) in test_hugemmap()
107 "munmap of addrlist[%d] failed", i); in test_hugemmap()
110 if (munmap(addr2, map_sz) == -1) in test_hugemmap()
111 tst_res(TFAIL | TERRNO, "huge munmap failed"); in test_hugemmap()
112 if (munmap(addr, page_sz) == -1) in test_hugemmap()
113 tst_res(TFAIL | TERRNO, "munmap failed"); in test_hugemmap()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
H A Dcpuset_memory_test.c55 static int opt_check; /* check node when munmap memory (only for mmap_anon()) */
169 if (munmap(p, memsize) == -1) in mmap_anon()
170 err(1, "munmap(anonymous) failed"); in mmap_anon()
199 if (munmap(p, memsize) == -1) in mmap_file()
200 err(1, "munmap(file) failed"); in mmap_file()
220 if (munmap(p, memsize) == -1) in mmap_lock1()
221 err(1, "munmap(lock) failed"); in mmap_lock1()
239 if (munmap(p, memsize) == -1) in mmap_lock2()
240 err(1, "munmap failed"); in mmap_lock2()
/third_party/ltp/testcases/kernel/controllers/memcg/functional/
H A Dmemcg_process.c126 if (munmap(p, memsize) == -1) in mmap_anon()
127 err(1, "munmap(anonymous) failed"); in mmap_anon()
156 if (munmap(p, memsize) == -1) in mmap_file()
157 err(1, "munmap(file) failed"); in mmap_file()
177 if (munmap(p, memsize) == -1) in mmap_lock1()
178 err(1, "munmap(lock) failed"); in mmap_lock1()
199 if (munmap(p, memsize) == -1) in mmap_lock2()
200 err(1, "munmap failed"); in mmap_lock2()
/third_party/libdrm/
H A Dlibdrm_macros.h64 munmap(addr, length)
83 return munmap(addr, length); in drm_munmap()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
H A D2-1.c7 * If there are no mappings in the specified address range, then munmap() has
8 * no effect. To get a valid address range which is safe to call munmap() on
10 * then unmap it. We then call munmap() on the same address again to perform
28 #define TNAME "munmap/2-1.c"
55 rc = munmap(map_addr, map_size); in main()
64 rc = munmap(map_addr, map_size); in main()
66 printf("Test FAILED " TNAME " Error at munmap(): %s (%d)\n", in main()
/third_party/musl/libc-test/src/functionalext/supplement/mman/
H A Dmadvise.c58 munmap(ptr, length); in madvise_0100()
84 munmap(ptr, length); in madvise_0200()
H A Dmremap.c50 int rev = munmap(map_new, TEST_M_NEW_SIZE); in mremap_0100()
83 int rev = munmap(map, TEST_M_SIZE); in mremap_0200()
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dsem_open.c132 munmap(map, sizeof(sem_t)); in sem_open()
146 munmap(map, sizeof(sem_t)); in sem_open()
179 munmap(sem, sizeof *sem); in sem_close()

Completed in 11 milliseconds

12345678910>>...15