| /linux-6.15/tools/testing/selftests/mm/ |
| H A D | mkdirty.c | 103 goto munmap; in test_ptrace_write() 114 goto munmap; in test_ptrace_write() 118 munmap: in test_ptrace_write() 144 goto munmap; in test_ptrace_write_thp() 150 goto munmap; in test_ptrace_write_thp() 154 munmap: in test_ptrace_write_thp() 175 goto munmap; in test_page_migration() 186 munmap: in test_page_migration() 225 munmap: in test_page_migration_thp() 264 munmap: in test_pte_mapped_thp() [all …]
|
| H A D | mlock2-tests.c | 187 munmap(map, 2 * page_size); in test_mlock_lock() 195 munmap(map, 2 * page_size); in test_mlock_lock() 200 munmap(map, 2 * page_size); in test_mlock_lock() 238 munmap(map, 2 * page_size); in test_mlock_onfault() 246 munmap(map, 2 * page_size); in test_mlock_onfault() 251 munmap(map, 2 * page_size); in test_mlock_onfault() 267 munmap(map, 2 * page_size); in test_lock_onfault_of_present() 274 munmap(map, 2 * page_size); in test_lock_onfault_of_present() 300 munmap(map, 2 * page_size); in test_munlockall0() 340 munmap(map, 2 * page_size); in test_munlockall1() [all …]
|
| H A D | mremap_dontunmap.c | 58 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 62 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 121 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple() 123 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple() 173 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem() 175 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem() 220 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed() 271 BUG_ON(munmap(dest_mapping, 5 * page_size) == -1, in mremap_dontunmap_partial_mapping() 331 BUG_ON(munmap(dest_mapping, 10 * page_size) == -1, in mremap_dontunmap_partial_mapping_overwrite() 333 BUG_ON(munmap(source_mapping, 5 * page_size) == -1, in mremap_dontunmap_partial_mapping_overwrite() [all …]
|
| H A D | cow.c | 757 goto munmap; in do_run_with_base_page() 772 munmap: in do_run_with_base_page() 820 goto munmap; in do_run_with_thp() 830 goto munmap; in do_run_with_thp() 936 munmap: in do_run_with_thp() 1029 munmap: in run_with_hugetlb() 1495 munmap: in run_with_zeropage() 1554 munmap: in run_with_huge_zeropage() 1596 munmap: in run_with_memfd() 1647 munmap: in run_with_tmpfile() [all …]
|
| H A D | guard-regions.c | 616 ASSERT_EQ(munmap(ptr2, 5 * page_size), 0); in TEST_F() 621 TEST_F(guard_regions, munmap) in TEST_F() argument 639 ASSERT_EQ(munmap(ptr, page_size), 0); in TEST_F() 655 ASSERT_EQ(munmap(ptr, 10 * page_size), 0); in TEST_F() 703 ASSERT_EQ(munmap(ptr, 10 * page_size), 0); in TEST_F() 834 ASSERT_EQ(munmap(ptr, 10 * page_size), 0); in TEST_F() 895 ASSERT_EQ(munmap(ptr, 10 * page_size), 0); in TEST_F() 963 ASSERT_EQ(munmap(ptr, 10 * page_size), 0); in TEST_F() 1007 munmap(ptr_new, 5 * page_size); in TEST_F() 1070 munmap(ptr, 20 * page_size); in TEST_F() [all …]
|
| H A D | hugetlb-madvise.c | 105 if (munmap(addr, huge_page_size) || in main() 106 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size, in main() 134 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 171 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 196 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 255 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 295 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 363 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 364 (void)munmap(addr2, NR_HUGE_PAGES * huge_page_size); in main()
|
| H A D | mremap_test.c | 114 munmap(remap_addr, size); in is_remap_region_valid() 218 munmap(src_addr, c.region_size); in get_source_mapping() 257 munmap(start, page_size); in mremap_expand_merge() 264 munmap(start, 3 * page_size); in mremap_expand_merge() 298 munmap(start, 2 * page_size); in mremap_expand_merge_offset() 304 munmap(start, 3 * page_size); in mremap_expand_merge_offset() 374 if (munmap(ptr, size) == -1) in mremap_move_within_range() 557 munmap(src_addr, c.region_size); in remap_region() 600 munmap(dest, SIZE_MB(1)); in mremap_move_1mb_from_start() 840 munmap(rand_addr, rand_size); in main() [all …]
|
| H A D | madv_populate.c | 48 munmap(addr, pagesize); in sense_support() 69 munmap(addr, SIZE); in test_prot_read() 90 munmap(addr, SIZE); in test_prot_write() 104 ret = munmap(addr + pagesize, pagesize); in test_holes() 132 munmap(addr, SIZE); in test_holes() 182 munmap(addr, SIZE); in test_populate_read() 204 munmap(addr, SIZE); in test_populate_write() 264 munmap(addr, SIZE); in test_softdirty()
|
| H A D | ksm_tests.c | 211 munmap(map_ptr, map_size); in allocate_memory() 377 munmap(map_ptr, page_size * page_count); in check_ksm_merge() 417 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge() 456 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge() 461 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge() 609 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time() 614 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time() 650 munmap(map_ptr, map_size); in ksm_merge_time() 655 munmap(map_ptr, map_size); in ksm_merge_time() 697 munmap(map_ptr, map_size); in ksm_unmerge_time() [all …]
|
| H A D | ksm_functional_tests.c | 237 munmap(map, size); in __mmap_and_merge_range() 277 munmap(map, size); in test_unmerge() 341 munmap(map, size); in test_unmerge_zero_pages() 369 munmap(map, size); in test_unmerge_discarded() 431 munmap(map, size); in test_unmerge_uffd_wp() 494 munmap(map, size); in test_child_ksm() 623 munmap(map, size); in test_prctl_unmerge() 656 munmap(map, size); in test_prot_none()
|
| H A D | hugepage-vmemmap.c | 114 munmap(addr, maplength); in main() 122 munmap(addr, maplength); in main() 128 if (munmap(addr, maplength)) { in main()
|
| H A D | uffd-wp-mremap.c | 62 munmap(mmap_mem, mem - mmap_mem); in mmap_aligned() 63 munmap(mem + size, mmap_mem + mmap_size - mem - size); in mmap_aligned() 121 munmap(mem, size); in alloc_one_folio() 227 munmap(addr, size); in test_one_folio() 244 munmap(mem, size); in test_one_folio()
|
| H A D | map_fixed_noreplace.c | 35 if (munmap(addr, size) != 0) in find_base_addr() 66 if (munmap((void *)addr, 5 * page_size) != 0) { in main() 194 if (munmap((void *)addr, size) != 0) { in main()
|
| H A D | virtual_address_range.c | 181 munmap((char *)(start_addr + hop), MAP_CHUNK_SIZE); in validate_complete_va_space() 237 munmap(ptr[i], MAP_CHUNK_SIZE); in main() 240 munmap(hptr[i], MAP_CHUNK_SIZE); in main()
|
| H A D | soft-dirty.c | 61 munmap(map, pagesize); in test_vma_reuse() 74 munmap(map2, pagesize); in test_vma_reuse() 174 munmap(map, pagesize); in test_mprotect()
|
| H A D | hugetlb_dio.c | 67 munmap(orig_buffer, h_pagesize); in run_dio_using_hugetlb() 73 munmap(orig_buffer, h_pagesize); in run_dio_using_hugetlb()
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | mmap.c | 57 munmap(tmp1, page_size); in test_mmap() 140 err = munmap(map_mmaped, map_sz); in test_mmap() 168 err = munmap(p, map_sz); in test_mmap() 183 munmap(tmp1, map_sz); in test_mmap() 209 munmap(tmp0, 4 * page_size); in test_mmap() 216 munmap(tmp1, 4 * page_size); in test_mmap() 224 munmap(tmp1, page_size); in test_mmap() 250 munmap(tmp2, 4 * page_size); in test_mmap() 256 munmap(tmp1, 4 * page_size); in test_mmap() 274 munmap(tmp1, map_sz); in test_mmap() [all …]
|
| /linux-6.15/Documentation/userspace-api/media/dvb/ |
| H A D | dmx-munmap.rst | 4 .. _dmx-munmap: 7 DVB munmap() 13 dmx-munmap - Unmap device memory 25 .. c:function:: int munmap( void *start, size_t length ) 47 On success :c:func:`munmap()` returns 0, on failure -1 and the
|
| /linux-6.15/Documentation/userspace-api/media/v4l/ |
| H A D | func-munmap.rst | 4 .. _func-munmap: 7 V4L2 munmap() 13 v4l2-munmap - Unmap device memory 23 .. c:function:: int munmap( void *start, size_t length ) 49 On success :c:func:`munmap()` returns 0, on failure -1 and the
|
| /linux-6.15/tools/testing/selftests/sgx/ |
| H A D | load.c | 27 munmap((void *)encl->encl_base, encl->encl_size); in encl_delete() 30 munmap(encl->bin, encl->bin_size); in encl_delete() 37 munmap(heap_seg->src, heap_seg->size); in encl_delete() 99 munmap((void *)secs->base, encl->encl_size); in encl_ioc_create() 209 munmap(ptr, PAGE_SIZE); in encl_load() 222 munmap(ptr, PAGE_SIZE); in encl_load() 332 munmap(area, encl->encl_base - (uint64_t)area); in encl_map_area() 333 munmap((void *)(encl->encl_base + encl_size), in encl_map_area()
|
| /linux-6.15/tools/testing/selftests/mincore/ |
| H A D | mincore_selftest.c | 73 munmap(addr, page_size); in TEST() 125 munmap(addr, page_size); in TEST() 173 munmap(addr, page_size); in TEST() 276 munmap(addr, FILE_SIZE); in TEST() 348 munmap(addr, FILE_SIZE); in TEST()
|
| /linux-6.15/tools/testing/selftests/powerpc/mm/ |
| H A D | hugetlb_vs_thp_test.c | 28 if (munmap(addr, SIZE)) { in test_body() 57 munmap(addr, SIZE); in test_body()
|
| /linux-6.15/tools/testing/selftests/ring-buffer/ |
| H A D | map_test.c | 106 munmap(desc->meta, page_size); in tracefs_cpu_map() 116 munmap(desc->meta, desc->meta->meta_page_size); in tracefs_cpu_unmap() 227 munmap(data, data_len); in TEST_F() 234 munmap(data, data_len); in TEST_F() 259 munmap(data, data_len); in TEST_F()
|
| /linux-6.15/Documentation/translations/zh_CN/dev-tools/ |
| H A D | kcov.rst | 107 if (munmap(cover, COVER_SIZE * sizeof(unsigned long))) 108 perror("munmap"), exit(1); 209 if (munmap(cover, COVER_SIZE * sizeof(unsigned long))) 210 perror("munmap"), exit(1); 354 if (munmap(cover, COVER_SIZE * sizeof(unsigned long))) 355 perror("munmap"), exit(1);
|
| /linux-6.15/tools/testing/selftests/memfd/ |
| H A D | memfd_test.c | 372 munmap(p, mfd_def_size); in mfd_assert_read() 385 munmap(p, mfd_def_size); in mfd_assert_read() 404 munmap(p, mfd_def_size); in mfd_assert_read_shared() 438 munmap(p, mfd_def_size); in mfd_assert_fork_private_write() 472 munmap(p, mfd_def_size); in mfd_assert_write() 486 munmap(p, mfd_def_size); in mfd_assert_write() 508 munmap(p, mfd_def_size); in mfd_assert_write() 572 munmap(p, mfd_def_size); in mfd_fail_write() 996 munmap(p, mfd_def_size); in test_seal_future_write() 1021 munmap(p, mfd_def_size); in test_seal_write_map_read_shared() [all …]
|