/linux-6.12.1/tools/testing/selftests/mm/ |
D | mkdirty.c | 77 munmap(mmap_mem, mmap_size); in mmap_thp_range() 103 goto munmap; in test_ptrace_write() 114 goto munmap; in test_ptrace_write() 118 munmap: in test_ptrace_write() 119 munmap(mem, pagesize); 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() 155 munmap(mmap_mem, mmap_size); in test_ptrace_write_thp() 175 goto munmap; in test_page_migration() [all …]
|
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() 288 munmap(map, 2 * page_size); in test_munlockall0() 295 munmap(map, 2 * page_size); in test_munlockall0() [all …]
|
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() 154 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem() 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() 222 BUG_ON(munmap(source_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() [all …]
|
D | cow.c | 181 if (munmap(mem, size) < 0) in child_vmsplice_memcmp_fn() 350 if (munmap(mem, size) < 0) { in do_test_vmsplice_in_parent() 757 goto munmap; in do_run_with_base_page() 767 goto munmap; in do_run_with_base_page() 772 munmap: in do_run_with_base_page() 773 munmap(mem, pagesize); in do_run_with_base_page() 820 goto munmap; in do_run_with_thp() 830 goto munmap; in do_run_with_thp() 850 goto munmap; in do_run_with_thp() 855 goto munmap; in do_run_with_thp() [all …]
|
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()
|
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() 253 munmap(start + page_size, page_size); in mremap_expand_merge() 257 munmap(start, page_size); in mremap_expand_merge() 258 munmap(start + 2 * page_size, page_size); in mremap_expand_merge() 264 munmap(start, 3 * page_size); in mremap_expand_merge() 294 munmap(start + 2 * page_size, page_size); in mremap_expand_merge_offset() 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() [all …]
|
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()
|
D | ksm_tests.c | 211 munmap(map_ptr, map_size); in allocate_memory() 369 munmap(map_ptr, page_size * page_count); in check_ksm_merge() 377 munmap(map_ptr, page_size * page_count); in check_ksm_merge() 411 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge() 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() [all …]
|
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() 430 munmap(map, size); in test_unmerge_uffd_wp() 492 munmap(map, size); in test_child_ksm() 621 munmap(map, size); in test_prctl_unmerge() 654 munmap(map, size); in test_prot_none()
|
D | hugepage-vmemmap.c | 114 munmap(addr, maplength); in main() 122 munmap(addr, maplength); in main() 128 if (munmap(addr, maplength)) { in main()
|
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()
|
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()
|
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.12.1/tools/testing/selftests/bpf/prog_tests/ |
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() 214 err = munmap(tmp1 + page_size, page_size); in test_mmap() 216 munmap(tmp1, 4 * page_size); in test_mmap() 224 munmap(tmp1, page_size); in test_mmap() 225 munmap(tmp1 + 2*page_size, 2 * page_size); in test_mmap() 235 munmap(tmp1, 4 * page_size); /* unmap page 1 */ in test_mmap() [all …]
|
/linux-6.12.1/Documentation/userspace-api/media/dvb/ |
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.12.1/Documentation/userspace-api/media/v4l/ |
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.12.1/tools/testing/selftests/sgx/ |
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.12.1/tools/testing/selftests/ring-buffer/ |
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() 253 munmap(data, data_len); in TEST_F()
|
/linux-6.12.1/tools/testing/selftests/mincore/ |
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() 279 munmap(addr, FILE_SIZE); in TEST() 363 munmap(addr, FILE_SIZE); in TEST()
|
/linux-6.12.1/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 28 if (munmap(addr, SIZE)) { in test_body() 57 munmap(addr, SIZE); in test_body()
|
/linux-6.12.1/Documentation/translations/zh_CN/dev-tools/ |
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.12.1/Documentation/userspace-api/ |
D | mseal.rst | 85 /* munmap will fail */ 86 rc = munmap(ptr, 4096); 90 - munmap 97 The first set of syscalls to block is munmap, mremap, mmap. They can 118 - munmap: munmap is atomic. If one of VMAs in the given range is 142 aio/shm can call mmap and munmap on behalf of userspace, e.g. 145 then munmap will fail, causing leaks in VMA address space during the
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | xsk.c | 219 munmap(map, off.fr.desc + umem->config.fill_size * sizeof(__u64)); in xsk_create_umem_rings() 492 munmap(ctx->fill->ring - off.fr.desc, off.fr.desc + umem->config.fill_size * in xsk_put_ctx() 494 munmap(ctx->comp->ring - off.cr.desc, off.cr.desc + umem->config.comp_size * in xsk_put_ctx() 692 munmap(tx_map, off.tx.desc + in xsk_socket__create_shared() 696 munmap(rx_map, off.rx.desc + in xsk_socket__create_shared() 734 munmap(umem->fill_save->ring - off.fr.desc, in xsk_umem__delete() 736 munmap(umem->comp_save->ring - off.cr.desc, in xsk_umem__delete() 765 munmap(xsk->rx->ring - off.rx.desc, in xsk_socket__delete() 769 munmap(xsk->tx->ring - off.tx.desc, in xsk_socket__delete()
|
/linux-6.12.1/tools/testing/selftests/memfd/ |
D | memfd_test.c | 353 munmap(p, mfd_def_size); in mfd_assert_read() 366 munmap(p, mfd_def_size); in mfd_assert_read() 385 munmap(p, mfd_def_size); in mfd_assert_read_shared() 419 munmap(p, mfd_def_size); in mfd_assert_fork_private_write() 453 munmap(p, mfd_def_size); in mfd_assert_write() 467 munmap(p, mfd_def_size); in mfd_assert_write() 489 munmap(p, mfd_def_size); in mfd_assert_write() 553 munmap(p, mfd_def_size); in mfd_fail_write() 977 munmap(p, mfd_def_size); in test_seal_future_write() 1474 munmap(p, mfd_def_size); in test_share_mmap() [all …]
|
/linux-6.12.1/tools/testing/selftests/prctl/ |
D | set-anon-vma-name-test.c | 88 munmap(self->ptr_anon, AREA_SIZE); in FIXTURE_TEARDOWN() 89 munmap(self->ptr_not_anon, AREA_SIZE); in FIXTURE_TEARDOWN()
|