/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | mremap_test.c | 86 munmap(remap_addr, size); in is_remap_region_valid() 169 munmap(start + page_size, page_size); in mremap_expand_merge() 173 munmap(start, page_size); in mremap_expand_merge() 174 munmap(start + 2 * page_size, page_size); in mremap_expand_merge() 179 munmap(start, 3 * page_size); in mremap_expand_merge() 209 munmap(start + 2 * page_size, page_size); in mremap_expand_merge_offset() 213 munmap(start, 2 * page_size); in mremap_expand_merge_offset() 218 munmap(start, 3 * page_size); in mremap_expand_merge_offset() 262 munmap(src_addr, c.region_size); in get_source_mapping() 361 munmap(dest_add in remap_region() [all...] |
H A D | ksm_functional_tests.c | 217 munmap(map, size); in mmap_and_merge_range() 240 munmap(map, size); in test_unmerge() 304 munmap(map, size); in test_unmerge_zero_pages() 332 munmap(map, size); in test_unmerge_discarded() 394 munmap(map, size); in test_unmerge_uffd_wp() 501 munmap(map, size); in test_prctl_unmerge() 534 munmap(map, size); in test_prot_none()
|
H A D | mlock2-tests.c | 224 munmap(map, 2 * page_size); in test_mlock_lock() 290 munmap(map, 2 * page_size); in test_mlock_onfault() 326 munmap(map, 2 * page_size); in test_lock_onfault_of_present() 361 munmap(map, 2 * page_size); in test_munlockall() 403 munmap(map, 2 * page_size); in test_munlockall() 491 munmap(map, 3 * page_size); in test_vma_management()
|
H A D | hugepage-vmemmap.c | 127 munmap(addr, maplength); in main() 135 munmap(addr, maplength); in main() 140 /* munmap() length of MAP_HUGETLB memory must be hugepage aligned */ in main() 141 if (munmap(addr, maplength)) { in main() 142 perror("munmap"); in main()
|
H A D | map_fixed_noreplace.c | 36 if (munmap(addr, size) != 0) { in find_base_addr() 76 if (munmap((void *)addr, 5 * page_size) != 0) { in main() 78 printf("Error: munmap failed!?\n"); in main() 218 if (munmap((void *)addr, size) != 0) { in main() 220 printf("Error: munmap failed!?\n"); in main()
|
/kernel/linux/linux-5.10/tools/io_uring/ |
H A D | setup.c | 37 munmap(sq->khead, sq->ring_sz); in io_uring_mmap() 46 munmap(sq->sqes, p->sq_entries * sizeof(struct io_uring_sqe)); in io_uring_mmap() 103 munmap(sq->sqes, *sq->kring_entries * sizeof(struct io_uring_sqe)); in io_uring_queue_exit() 104 munmap(sq->khead, sq->ring_sz); in io_uring_queue_exit() 105 munmap(cq->khead, cq->ring_sz); in io_uring_queue_exit()
|
/test/xts/acts/kernel_lite/mem_posix/src/ |
H A D | MremapApiTest.cpp | 100 EXPECT_TRUE(munmap(mem, expandSize) == 0) << "ERROR: munmap() != 0" << errno; in HWTEST_F() 138 EXPECT_TRUE(munmap(mem, shrinkSize) == 0) << "ERROR: munmap() != 0" << errno; in HWTEST_F() 182 EXPECT_TRUE(munmap(mem, expandSize) == 0) << "ERROR: munmap() != 0" << errno; in HWTEST_F() 222 EXPECT_TRUE(munmap(mem, shrinkSize) == 0) << "ERROR: munmap() != 0" <<errno; in HWTEST_F() 271 EXPECT_TRUE(munmap(mem, expandSize) == 0) << "ERROR: munmap() ! in HWTEST_F() [all...] |
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap10.c | 25 * 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...] |
/test/xts/hats/kernel/dmabuffer/ |
H A D | dmabuf_alloc.cpp | 99 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
in HWTEST_F() 140 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
in HWTEST_F() 155 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
in HWTEST_F() 208 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
in HWTEST_F() 234 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
in HWTEST_F() 266 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
in HWTEST_F() 290 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
in HWTEST_F()
|
/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/ |
H A D | mmap_test_003.cpp | 68 ret = munmap(p1, pageSize); in Testcase() 70 ret = munmap(p2, pageSize); in Testcase() 72 ret = munmap(p3, pageSize); in Testcase()
|
H A D | mmap_test_004.cpp | 68 ret = munmap(p1, pageSize); in Testcase() 70 ret = munmap(p2, pageSize); in Testcase() 72 ret = munmap(p3, pageSize); in Testcase()
|
H A D | mmap_test_010.cpp | 47 ret = munmap(ptr, MMAP_SIZE); in Testcase() 53 ret = munmap(ptr, MMAP_SIZE); in Testcase()
|
/test/xts/hats/kernel/syscalls/mem/mlock2/ |
H A D | Mlock2ApiTest.cpp | 79 EXPECT_NE(munmap(addr, size), -1); in HWTEST_F() 101 EXPECT_NE(munmap(addr, size), -1); in HWTEST_F() 127 EXPECT_NE(munmap(addr, size), -1); in HWTEST_F()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 7-1.c | 22 * 4. munmap() this mapping. 79 munmap(pa, size); in main() 93 munmap(pa, size); in main() 99 munmap(pa, size); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | remap_file_pages.c | 144 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/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/ |
H A D | ldso_dlopen_ext_test.cpp | 81 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()
|
/test/xts/hats/kernel/mmap_v/ |
H A D | MmapVApiTest.cpp | 178 int ret = munmap(va, (NR_OVERCOMMIT_HUGEPAGES << HUGETLB_SHIFT)); in HWTEST_F() 200 int ret = munmap(va, (NR_OVERCOMMIT_HUGEPAGES << HUGETLB_SHIFT)); in HWTEST_F() 216 int ret = munmap(va, PAGE_SIZE); in HWTEST_F() 240 int ret = munmap(va, PAGE_SIZE); in HWTEST_F() 264 int ret = munmap(va, PAGE_SIZE); in HWTEST_F()
|
/kernel/linux/linux-5.10/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 258 munmap(p, mfd_def_size); in mfd_assert_read() 271 munmap(p, mfd_def_size); in mfd_assert_read() 290 munmap(p, mfd_def_size); in mfd_assert_read_shared() 324 munmap(p, mfd_def_size); in mfd_assert_fork_private_write() 358 munmap(p, mfd_def_size); in mfd_assert_write() 372 munmap(p, mfd_def_size); in mfd_assert_write() 394 munmap(p, mfd_def_size); in mfd_assert_write() 458 munmap(p, mfd_def_size); in mfd_fail_write() 800 munmap(p, mfd_def_size); in test_seal_future_write() 946 munmap( in test_share_mmap() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | mlock2-tests.c | 225 munmap(map, 2 * page_size); in test_mlock_lock() 291 munmap(map, 2 * page_size); in test_mlock_onfault() 327 munmap(map, 2 * page_size); in test_lock_onfault_of_present() 362 munmap(map, 2 * page_size); in test_munlockall() 404 munmap(map, 2 * page_size); in test_munlockall() 492 munmap(map, 3 * page_size); in test_vma_management()
|
H A D | map_fixed_noreplace.c | 40 if (munmap(addr, size) != 0) { in find_base_addr() 80 if (munmap((void *)addr, 5 * page_size) != 0) { in main() 82 printf("Error: munmap failed!?\n"); in main() 222 if (munmap((void *)addr, size) != 0) { in main() 224 printf("Error: munmap failed!?\n"); in main()
|
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitProtExecAllocator.c | 212 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/ |
H A D | hugetlb_vs_thp_test.c | 25 * munmap here before continuing. munmap() length of in test_body() 28 if (munmap(addr, SIZE)) { in test_body() 29 perror("munmap"); in test_body() 57 munmap(addr, SIZE); in test_body()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/ |
H A D | hugetlb_vs_thp_test.c | 25 * munmap here before continuing. munmap() length of in test_body() 28 if (munmap(addr, SIZE)) { in test_body() 29 perror("munmap"); in test_body() 57 munmap(addr, SIZE); in test_body()
|
/third_party/mesa3d/src/gallium/auxiliary/os/ |
H A D | os_mman.h | 59 munmap(addr, length) 75 return munmap(addr, length); in os_munmap()
|
/third_party/musl/libc-test/src/functionalext/supplement/hook/hook_gtest/ |
H A D | hook_munmap_test.cpp | 15 * @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()
|