/Linux-v5.15/tools/testing/selftests/vm/ |
D | mremap_dontunmap.c | 61 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 65 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 124 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple() 126 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple() 156 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem() 175 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem() 177 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem() 221 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed() 223 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 | madv_populate.c | 75 munmap(addr, pagesize); in sense_support() 96 munmap(addr, SIZE); in test_prot_read() 117 munmap(addr, SIZE); in test_prot_write() 131 ret = munmap(addr + pagesize, pagesize); in test_holes() 159 munmap(addr, SIZE); in test_holes() 209 munmap(addr, SIZE); in test_populate_read() 231 munmap(addr, SIZE); in test_populate_write() 305 munmap(addr, SIZE); in test_softdirty()
|
D | khugepaged.c | 528 munmap(p, hpage_pmd_size); in alloc_at_fault() 544 munmap(p, hpage_pmd_size); in collapse_full() 558 munmap(p, hpage_pmd_size); in collapse_empty() 574 munmap(p, hpage_pmd_size); in collapse_single_pte_entry() 606 munmap(p, hpage_pmd_size); in collapse_max_ptes_none() 636 munmap(p, hpage_pmd_size); in collapse_swapin_single_pte() 688 munmap(p, hpage_pmd_size); in collapse_max_ptes_swap() 720 munmap(p, hpage_pmd_size); in collapse_single_pte_entry_compound() 752 munmap(p, hpage_pmd_size); in collapse_full_of_compound() 794 munmap(BASE_ADDR, hpage_pmd_size); in collapse_compound_extreme() [all …]
|
D | ksm_tests.c | 132 munmap(map_ptr, map_size); in allocate_memory() 263 munmap(map_ptr, page_size * page_count); in check_ksm_merge() 269 munmap(map_ptr, page_size * page_count); in check_ksm_merge() 303 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge() 309 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge() 348 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge() 353 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge() 451 munmap(map_ptr, map_size); in ksm_merge_time() 456 munmap(map_ptr, map_size); in ksm_merge_time() 522 munmap(map_ptr, page_size * page_count); in ksm_cow_time() [all …]
|
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()
|
D | virtual_address_range.c | 133 munmap(ptr[i], MAP_CHUNK_SIZE); in main() 136 munmap(hptr[i], MAP_CHUNK_SIZE); in main()
|
D | map_fixed_noreplace.c | 55 if (munmap((void *)addr, 5 * page_size) != 0) { in main() 197 if (munmap((void *)addr, size) != 0) { in main()
|
D | compaction_test.c | 204 munmap(map, MAP_SIZE); in main() 221 munmap(entry->map, MAP_SIZE); in main()
|
D | on-fault-limit.c | 35 munmap(map, 2 * lims.rlim_max); in test_limit()
|
/Linux-v5.15/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 …]
|
D | ringbuf.c | 111 ASSERT_OK(munmap(mmap_ptr, page_size), "unmap_rw"); in test_ringbuf() 137 ASSERT_OK(munmap(mmap_ptr, 4 * page_size), "unmap_ro"); in test_ringbuf() 147 ASSERT_OK(munmap(mmap_ptr, page_size), "unmap_ro"); in test_ringbuf()
|
/Linux-v5.15/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-v5.15/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-v5.15/tools/io_uring/ |
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()
|
/Linux-v5.15/tools/testing/selftests/sgx/ |
D | load.c | 25 munmap((void *)encl->encl_base, encl->encl_size); in encl_delete() 28 munmap(encl->bin, encl->bin_size); in encl_delete() 94 munmap((void *)secs->base, encl->encl_size); in encl_ioc_create() 158 munmap(ptr, PAGE_SIZE); in encl_load() 171 munmap(ptr, PAGE_SIZE); in encl_load() 267 munmap(area, encl->encl_base - (uint64_t)area); in encl_map_area() 268 munmap((void *)(encl->encl_base + encl_size), in encl_map_area()
|
/Linux-v5.15/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() 273 munmap(addr, FILE_SIZE); in TEST() 355 munmap(addr, FILE_SIZE); in TEST()
|
/Linux-v5.15/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-v5.15/tools/testing/selftests/memfd/ |
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() 799 munmap(p, mfd_def_size); in test_seal_future_write() 945 munmap(p, mfd_def_size); in test_share_mmap() 951 munmap(p, mfd_def_size); in test_share_mmap()
|
/Linux-v5.15/arch/um/kernel/ |
D | tlb.c | 31 } munmap; member 85 op->u.munmap.addr, in do_ops() 86 op->u.munmap.len, finished, in do_ops() 90 (void *) op->u.munmap.addr, in do_ops() 91 op->u.munmap.len); in do_ops() 168 (last->u.munmap.addr + last->u.mmap.len == addr)) { in add_munmap() 169 last->u.munmap.len += len; in add_munmap() 181 .u = { .munmap = { .addr = addr, in add_munmap()
|
/Linux-v5.15/tools/perf/tests/ |
D | mmap-thread-lookup.c | 75 munmap(td->map, page_size); in thread_fn() 122 munmap(td0->map, page_size); in threads_destroy()
|
/Linux-v5.15/tools/testing/selftests/powerpc/stringloops/ |
D | memcmp.c | 93 munmap(p + MAP_SIZE, MAP_SIZE); in testcase() 94 munmap(p + 3 * MAP_SIZE, MAP_SIZE); in testcase()
|
/Linux-v5.15/arch/sparc/vdso/ |
D | vdso2c.c | 223 munmap(raw_addr, raw_len); in main() 224 munmap(stripped_addr, stripped_len); in main()
|
/Linux-v5.15/tools/perf/util/ |
D | srccode.c | 82 munmap(sf->map, sf->maplen); in free_srcfile() 147 munmap(h->map, sz); in find_srcfile()
|
/Linux-v5.15/tools/testing/selftests/arm64/mte/ |
D | check_mmap_options.c | 80 munmap((void *)map_ptr, map_size); in check_anonymous_memory_mapping() 117 munmap((void *)map_ptr, map_size); in check_file_memory_mapping() 123 munmap((void *)map_ptr, map_size); in check_file_memory_mapping()
|
/Linux-v5.15/arch/x86/entry/vdso/ |
D | vdso2c.c | 249 munmap(raw_addr, raw_len); in main() 250 munmap(stripped_addr, stripped_len); in main()
|