| /linux/tools/testing/selftests/mm/ |
| H A 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 …]
|
| H A D | mlock2-tests.c | 191 munmap(map, 2 * page_size); in test_mlock_lock() 199 munmap(map, 2 * page_size); in test_mlock_lock() 204 munmap(map, 2 * page_size); in onfault_check() 242 munmap(map, 2 * page_size); in test_mlock_onfault() 250 munmap(map, 2 * page_size); in test_mlock_onfault() 255 munmap(map, 2 * page_size); in test_lock_onfault_of_present() 271 munmap(map, 2 * page_size); in test_lock_onfault_of_present() 278 munmap(map, 2 * page_size); in test_munlockall0() 292 munmap(map, 2 * page_size); in test_munlockall0() 299 munmap(ma in test_munlockall0() [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() 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_mappin in mremap_dontunmap_partial_mapping() [all...] |
| H A D | cow.c | 166 if (munmap(mem, size) < 0) in child_vmsplice_memcmp_fn() 351 if (munmap(mem, size) < 0) { in do_test_vmsplice_in_parent() 798 goto munmap; in do_run_with_base_page() 809 goto munmap; in do_run_with_base_page() 814 munmap: in do_run_with_base_page() 815 munmap(mem, pagesize); in do_run_with_base_page() 864 goto munmap; in do_run_with_thp() 875 goto munmap; in do_run_with_thp() 896 goto munmap; in do_run_with_thp() 902 goto munmap; in do_run_with_thp() [all …]
|
| H A D | mremap_test.c | 97 munmap(remap_addr, size); in get_sqrt() 211 munmap(src_addr, c.region_size); in get_source_mapping() 246 munmap(start + page_size, page_size); 250 munmap(start, page_size); 251 munmap(start + 2 * page_size, page_size); 257 munmap(start, 3 * page_size); in mremap_expand_merge() 287 munmap(start + 2 * page_size, page_size); 291 munmap(start, 2 * page_size); 297 munmap(start, 3 * page_size); in mremap_expand_merge_offset() 367 if (munmap(pt in mremap_move_within_range() [all...] |
| H A D | guard-regions.c | 290 munmap(&ptr[5 * page_size], page_size); in local_fs_has_sane_mmap() 437 ASSERT_EQ(munmap(ptr, NUM_PAGES * page_size), 0); in TEST_F() 468 ASSERT_EQ(munmap(&ptr_region[10 * page_size], 40 * page_size), 0); in TEST_F() 469 ASSERT_EQ(munmap(&ptr_region[55 * page_size], 25 * page_size), 0); in TEST_F() 566 ASSERT_EQ(munmap(ptr_region, 100 * page_size), 0); in TEST_F() 618 ASSERT_EQ(munmap(ptr_region, page_size), 0); in TEST_F() 619 ASSERT_EQ(munmap(&ptr_region[11 * page_size], 39 * page_size), 0); in TEST_F() 620 ASSERT_EQ(munmap(&ptr_region[55 * page_size], 24 * page_size), 0); in TEST_F() 621 ASSERT_EQ(munmap(&ptr_region[99 * page_size], page_size), 0); in TEST_F() 659 ASSERT_EQ(munmap(ptr1, 10 * page_size), 0); in TEST_F() [all …]
|
| H A D | hugetlb-madvise.c | 86 if (munmap(addr, huge_page_size) || in main() 87 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size, in main() 89 ksft_exit_fail_perror("munmap"); in main() 107 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 138 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 160 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 213 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 248 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 308 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main() 309 (void)munmap(addr 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() 106 ksft_exit_fail_msg("munmap failed\n"); 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 | 184 munmap(map_ptr, map_size); in allocate_memory() 341 munmap(map_ptr, page_size * page_count); in check_ksm_merge() 348 munmap(map_ptr, page_size * page_count); in check_ksm_merge() 381 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge() 386 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge() 424 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge() 428 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge() 581 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time() 585 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time() 621 munmap(map_pt in ksm_merge_time() [all...] |
| H A D | ksm_functional_tests.c | 154 munmap(map, size); in __mmap_and_merge_range() 195 munmap(map, size); in test_unmerge() 257 munmap(map, size); in test_unmerge_zero_pages() 286 munmap(map, size); in test_unmerge_discarded() 373 munmap(map, size); in test_unmerge_uffd_wp() 437 munmap(map, size); in test_child_ksm() 621 munmap(map, size); in test_prot_none() 655 munmap(map, size); in test_fork_ksm_merging_page_count() 695 munmap(map, size); in init_global_file_handles()
|
| H A D | soft-dirty.c | 63 munmap(map, pagesize); in test_vma_reuse() 76 munmap(map2, pagesize); in test_vma_reuse() 184 munmap(map, pagesize); in test_mprotect() 208 munmap(reserved, 4 * pagesize); in test_merge() 262 munmap(map, 2 * pagesize); in test_merge() 311 munmap(map, 2 * pagesize); in test_merge()
|
| H A D | hugepage-vmemmap.c | |
| H A D | uffd-wp-mremap.c | 68 munmap(mmap_mem, mem - mmap_mem); in alloc_one_folio() 69 munmap(mem + size, mmap_mem + mmap_size - mem - size); in alloc_one_folio() 127 munmap(mem, size); in alloc_one_folio() 234 munmap(addr, size); in test_one_folio() 251 munmap(mem, size);
|
| 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()
|
| /linux/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() 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 …]
|
| H A D | cgroup_iter_memcg.c | 71 munmap(map, len); in test_anon() 78 munmap(map, len); in test_anon() 115 munmap(map, len); in test_file() 123 munmap(map, len); in test_file() 185 munmap(map, len); in test_pgfault() 192 munmap(map, len); in test_pgfault()
|
| /linux/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/tools/testing/selftests/perf_events/ |
| H A D | mmap.c | 137 munmap(rb, RB_SIZE); in FIXTURE_SETUP() 144 munmap(aux, AUX_SIZE); in FIXTURE_SETUP() 145 munmap(rb, RB_SIZE); in FIXTURE_SETUP() 182 ASSERT_EQ(munmap(self->region, REGION_SIZE), 0); in FIXTURE_TEARDOWN() 210 ASSERT_EQ(munmap(tmp, size), 0); in TEST_F() 218 ASSERT_NE(munmap(self->ptr, HOLE_SIZE), 0); in TEST_F() 219 ASSERT_NE(munmap(self->ptr + HOLE_SIZE, HOLE_SIZE), 0); in TEST_F() 220 ASSERT_NE(munmap(self->ptr + size - HOLE_SIZE, HOLE_SIZE), 0); in TEST_F()
|
| /linux/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/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/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() 284 munmap(addr, FILE_SIZE); 356 munmap(addr, FILE_SIZE);
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | listns_efault_test.c | 61 ret = munmap((char *)map + page_size, page_size); in TEST() 181 munmap(map, page_size); in TEST() 190 munmap(map, page_size); 276 ret = munmap((char *)map + page_size, page_size); in TEST() 397 munmap(map, page_size); 406 munmap(map, page_size); in TEST() 434 ret = munmap((char *)map + page_size, page_size); in TEST() 539 munmap(map, page_size); 547 munmap(map, page_size);
|
| /linux/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/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/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);
|