/openbmc/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 | 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() 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 …]
|
H A D | cow.c | 147 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 …]
|
H A D | hugetlb-madvise.c | 123 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()
|
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() 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 | mremap_test.c | 86 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 …]
|
H A 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 …]
|
H A D | ksm_functional_tests.c | 217 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()
|
H A D | mlock2-tests.c | 224 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()
|
H A D | hugepage-vmemmap.c | 127 munmap(addr, maplength); in main() 135 munmap(addr, maplength); in main() 141 if (munmap(addr, maplength)) { in main()
|
H A D | map_fixed_noreplace.c | 36 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()
|
/openbmc/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 …]
|
/openbmc/qemu/tests/tcg/multiarch/ |
H A D | test-mmap.c | 101 munmap(p1, len); in check_aligned_anonymous_unfixed_mmaps() 102 munmap(p2, len); in check_aligned_anonymous_unfixed_mmaps() 103 munmap(p3, len); in check_aligned_anonymous_unfixed_mmaps() 104 munmap(p4, len); in check_aligned_anonymous_unfixed_mmaps() 105 munmap(p5, len); in check_aligned_anonymous_unfixed_mmaps() 130 munmap (p1, len); in check_large_anonymous_unfixed_mmap() 160 munmap(p1, pagesize); in check_aligned_anonymous_unfixed_colliding_mmaps() 180 munmap(p2, pagesize); in check_aligned_anonymous_unfixed_colliding_mmaps() 181 munmap(p3, nlen); in check_aligned_anonymous_unfixed_colliding_mmaps() 212 munmap (p1, pagesize); in check_aligned_anonymous_fixed_mmaps() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/pxaregs/pxaregs-1.14/ |
H A D | munmap.patch | 11 - munmap(0,MAP_SIZE); 12 + munmap(map,MAP_SIZE); 20 - munmap(0,MAP_SIZE); 21 + munmap(map,MAP_SIZE);
|
/openbmc/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
|
/openbmc/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
|
/openbmc/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()
|
/openbmc/qemu/ebpf/ |
H A D | ebpf_rss.c | 84 munmap(ctx->mmap_toeplitz_key, qemu_real_host_page_size()); in ebpf_rss_mmap() 87 munmap(ctx->mmap_configuration, qemu_real_host_page_size()); in ebpf_rss_mmap() 96 munmap(ctx->mmap_indirections_table, qemu_real_host_page_size()); in ebpf_rss_munmap() 97 munmap(ctx->mmap_toeplitz_key, qemu_real_host_page_size()); in ebpf_rss_munmap() 98 munmap(ctx->mmap_configuration, qemu_real_host_page_size()); in ebpf_rss_munmap()
|
/openbmc/qemu/util/ |
H A D | mmap-alloc.c | 277 munmap(guardptr, total); in qemu_ram_mmap() 282 munmap(guardptr, offset); in qemu_ram_mmap() 291 munmap(ptr + size + guard_pagesize, total - size - guard_pagesize); in qemu_ram_mmap() 301 munmap(ptr, size + mmap_guard_pagesize(fd)); in qemu_ram_munmap()
|
/openbmc/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() 279 munmap(addr, FILE_SIZE); in TEST() 363 munmap(addr, FILE_SIZE); in TEST()
|
/openbmc/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()
|
/openbmc/linux/arch/um/kernel/ |
H A 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()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libx86-1/libx86-1.1/ |
H A D | libx86-mmap-offset.patch | 98 - munmap((void *)REAL_MEM_BASE, REAL_MEM_SIZE); 99 + munmap(mem_info.offset, REAL_MEM_SIZE); 170 - munmap((void *)0, 0x502); 171 + munmap(offset, 0x502);
|
/openbmc/u-boot/tools/ |
H A D | fit_check_sign.c | 90 (void) munmap((void *)fit_blob, fsbuf.st_size); in main() 91 (void) munmap((void *)key_blob, ksbuf.st_size); in main()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xsk.c | 217 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()
|