Home
last modified time | relevance | path

Searched refs:munmap (Results 1 – 25 of 195) sorted by relevance

12345678

/linux-6.6.21/tools/testing/selftests/mm/
Dmkdirty.c77 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 …]
Dmremap_dontunmap.c58 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()
153 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
172 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
174 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
218 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed()
220 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed()
268 BUG_ON(munmap(dest_mapping, 5 * page_size) == -1, in mremap_dontunmap_partial_mapping()
[all …]
Dcow.c147 if (munmap(mem, size) < 0) in child_vmsplice_memcmp_fn()
302 if (munmap(mem, size) < 0) { in do_test_vmsplice_in_parent()
695 goto munmap; in do_run_with_base_page()
705 goto munmap; in do_run_with_base_page()
710 munmap: in do_run_with_base_page()
711 munmap(mem, pagesize); in do_run_with_base_page()
758 goto munmap; in do_run_with_thp()
768 goto munmap; in do_run_with_thp()
786 goto munmap; in do_run_with_thp()
791 goto munmap; in do_run_with_thp()
[all …]
Dhugetlb-madvise.c123 if (munmap(addr, huge_page_size) || in main()
124 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size, in main()
152 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
189 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
214 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
273 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
313 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
381 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
382 (void)munmap(addr2, NR_HUGE_PAGES * huge_page_size); in main()
Dmadv_populate.c48 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()
Dmremap_test.c86 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_addr, c.region_size); in remap_region()
[all …]
Dksm_tests.c211 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 …]
Dksm_functional_tests.c217 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()
Dhugepage-vmemmap.c127 munmap(addr, maplength); in main()
135 munmap(addr, maplength); in main()
141 if (munmap(addr, maplength)) { in main()
Dmlock2-tests.c224 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()
Dmap_fixed_noreplace.c36 if (munmap(addr, size) != 0) { in find_base_addr()
76 if (munmap((void *)addr, 5 * page_size) != 0) { in main()
218 if (munmap((void *)addr, size) != 0) { in main()
Dsoft-dirty.c61 munmap(map, pagesize); in test_vma_reuse()
74 munmap(map2, pagesize); in test_vma_reuse()
174 munmap(map, pagesize); in test_mprotect()
Dvirtual_address_range.c142 munmap(ptr[i], MAP_CHUNK_SIZE); in main()
145 munmap(hptr[i], MAP_CHUNK_SIZE); in main()
Dcompaction_test.c204 munmap(map, MAP_SIZE); in main()
221 munmap(entry->map, MAP_SIZE); in main()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dmmap.c57 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.6.21/Documentation/userspace-api/media/dvb/
Ddmx-munmap.rst4 .. _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.6.21/Documentation/userspace-api/media/v4l/
Dfunc-munmap.rst4 .. _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.6.21/tools/testing/selftests/sgx/
Dload.c27 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.6.21/tools/testing/selftests/mincore/
Dmincore_selftest.c73 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.6.21/tools/testing/selftests/powerpc/mm/
Dhugetlb_vs_thp_test.c28 if (munmap(addr, SIZE)) { in test_body()
57 munmap(addr, SIZE); in test_body()
/linux-6.6.21/arch/um/kernel/
Dtlb.c31 } 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-6.6.21/tools/testing/selftests/bpf/
Dxsk.c217 munmap(map, off.fr.desc + umem->config.fill_size * sizeof(__u64)); in xsk_create_umem_rings()
490 munmap(ctx->fill->ring - off.fr.desc, off.fr.desc + umem->config.fill_size * in xsk_put_ctx()
492 munmap(ctx->comp->ring - off.cr.desc, off.cr.desc + umem->config.comp_size * in xsk_put_ctx()
690 munmap(tx_map, off.tx.desc + in xsk_socket__create_shared()
694 munmap(rx_map, off.rx.desc + in xsk_socket__create_shared()
732 munmap(umem->fill_save->ring - off.fr.desc, in xsk_umem__delete()
734 munmap(umem->comp_save->ring - off.cr.desc, in xsk_umem__delete()
763 munmap(xsk->rx->ring - off.rx.desc, in xsk_socket__delete()
767 munmap(xsk->tx->ring - off.tx.desc, in xsk_socket__delete()
/linux-6.6.21/tools/testing/selftests/prctl/
Dset-anon-vma-name-test.c88 munmap(self->ptr_anon, AREA_SIZE); in FIXTURE_TEARDOWN()
89 munmap(self->ptr_not_anon, AREA_SIZE); in FIXTURE_TEARDOWN()
/linux-6.6.21/tools/testing/selftests/memfd/
Dmemfd_test.c356 munmap(p, mfd_def_size); in mfd_assert_read()
369 munmap(p, mfd_def_size); in mfd_assert_read()
388 munmap(p, mfd_def_size); in mfd_assert_read_shared()
422 munmap(p, mfd_def_size); in mfd_assert_fork_private_write()
456 munmap(p, mfd_def_size); in mfd_assert_write()
470 munmap(p, mfd_def_size); in mfd_assert_write()
492 munmap(p, mfd_def_size); in mfd_assert_write()
556 munmap(p, mfd_def_size); in mfd_fail_write()
983 munmap(p, mfd_def_size); in test_seal_future_write()
1484 munmap(p, mfd_def_size); in test_share_mmap()
[all …]
/linux-6.6.21/tools/lib/bpf/
Dzip.c224 munmap(data, size); in zip_archive_open()
233 munmap(data, size); in zip_archive_open()
243 munmap(archive->data, archive->size); in zip_archive_close()

12345678