Home
last modified time | relevance | path

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

12345678

/linux-6.1.9/tools/testing/selftests/vm/
Dmremap_dontunmap.c61 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 …]
Dhugetlb-madvise.c148 if (munmap(addr, huge_page_size) || in main()
149 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size, in main()
177 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
214 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
238 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
297 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
337 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
405 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
406 (void)munmap(addr2, NR_HUGE_PAGES * huge_page_size); in main()
Dmadv_populate.c56 munmap(addr, pagesize); in sense_support()
77 munmap(addr, SIZE); in test_prot_read()
98 munmap(addr, SIZE); in test_prot_write()
112 ret = munmap(addr + pagesize, pagesize); in test_holes()
140 munmap(addr, SIZE); in test_holes()
190 munmap(addr, SIZE); in test_populate_read()
212 munmap(addr, SIZE); in test_populate_write()
272 munmap(addr, SIZE); in test_softdirty()
Dksm_tests.c143 munmap(map_ptr, map_size); in allocate_memory()
276 munmap(map_ptr, page_size * page_count); in check_ksm_merge()
282 munmap(map_ptr, page_size * page_count); in check_ksm_merge()
316 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge()
322 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge()
361 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge()
366 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge()
513 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
518 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
554 munmap(map_ptr, map_size); in ksm_merge_time()
[all …]
Dhugepage-vmemmap.c124 munmap(addr, MAP_LENGTH); in main()
132 munmap(addr, MAP_LENGTH); in main()
138 if (munmap(addr, MAP_LENGTH)) { in main()
Dmlock2-tests.c225 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()
Dmap_fixed_noreplace.c40 if (munmap(addr, size) != 0) { in find_base_addr()
80 if (munmap((void *)addr, 5 * page_size) != 0) { in main()
222 if (munmap((void *)addr, size) != 0) { in main()
Dmremap_test.c86 munmap(remap_addr, size); in is_remap_region_valid()
138 munmap(start + page_size, page_size); in mremap_expand_merge()
200 munmap(src_addr, c.region_size); in get_source_mapping()
299 munmap(dest_addr, c.region_size); in remap_region()
301 munmap(src_addr, c.region_size); in remap_region()
Dsoft-dirty.c61 munmap(map, pagesize); in test_vma_reuse()
74 munmap(map2, pagesize); in test_vma_reuse()
171 munmap(map, pagesize); in test_mprotect()
Dvirtual_address_range.c133 munmap(ptr[i], MAP_CHUNK_SIZE); in main()
136 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.1.9/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 …]
Dringbuf.c111 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-6.1.9/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.1.9/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.1.9/tools/io_uring/
Dsetup.c37 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-6.1.9/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()
206 munmap(ptr, PAGE_SIZE); in encl_load()
219 munmap(ptr, PAGE_SIZE); in encl_load()
329 munmap(area, encl->encl_base - (uint64_t)area); in encl_map_area()
330 munmap((void *)(encl->encl_base + encl_size), in encl_map_area()
/linux-6.1.9/tools/testing/selftests/memfd/
Dmemfd_test.c258 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(p, mfd_def_size); in test_share_mmap()
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.1.9/tools/perf/tests/
Dmmap-thread-lookup.c75 munmap(td->map, page_size); in thread_fn()
122 munmap(td0->map, page_size); in threads_destroy()
/linux-6.1.9/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c93 munmap(p + MAP_SIZE, MAP_SIZE); in testcase()
94 munmap(p + 3 * MAP_SIZE, MAP_SIZE); in testcase()
/linux-6.1.9/arch/sparc/vdso/
Dvdso2c.c223 munmap(raw_addr, raw_len); in main()
224 munmap(stripped_addr, stripped_len); in main()
/linux-6.1.9/tools/perf/util/
Dsrccode.c82 munmap(sf->map, sf->maplen); in free_srcfile()
147 munmap(h->map, sz); in find_srcfile()

12345678