Searched refs:munmap (Results 1 - 81 of 81) sorted by relevance

/linux-4.1.27/tools/testing/selftests/powerpc/mm/
H A Dhugetlb_vs_thp_test.c24 * munmap here before continuing. munmap() length of test_body()
27 if (munmap(addr, SIZE)) { test_body()
28 perror("munmap"); test_body()
56 munmap(addr, SIZE); test_body()
/linux-4.1.27/tools/testing/selftests/vm/
H A Dmap_hugetlb.c76 /* munmap() length of MAP_HUGETLB memory must be hugepage aligned */ main()
77 if (munmap(addr, LENGTH)) { main()
78 perror("munmap"); main()
H A Dhugetlbfstest.c48 ret = munmap(p, length); do_mmap()
49 assert(!ret || !"munmap returned an unexpected error"); do_mmap()
H A Dhugepage-mmap.c87 munmap(addr, LENGTH); main()
H A Dthuge-gen.c156 err = munmap(map, size); test_mmap()
/linux-4.1.27/arch/arc/include/asm/
H A Dtlb.h19 * This pair is called at time of munmap/exit to flush cache and TLB entries
H A Dcacheflush.h11 * -likewise for flush_cache_{range,page} (munmap, exit, COW-break)
60 #define flush_cache_mm(mm) /* called on munmap/exit */
/linux-4.1.27/tools/perf/util/
H A Dzlib.c73 munmap(ptr, stbuf.st_size); gzip_decompress_to_file()
H A Dutil.c133 munmap(addr, st.st_size); copyfile_mode()
H A Devlist.c731 munmap(evlist->mmap[idx].base, evlist->mmap_len); __perf_evlist__munmap()
H A Dsession.c1367 munmap(mmaps[map_idx], mmap_size); __perf_session__process_events()
/linux-4.1.27/arch/hexagon/include/asm/
H A Dtlbflush.h46 * "This is called in munmap when we have freed up some page-table pages.
53 * will have been purged from that structure by the munmap. Seems like
/linux-4.1.27/arch/um/kernel/
H A Dtlb.c31 } munmap; member in union:host_vm_change::host_vm_op::__anon2946
68 ret = unmap(hvc->id, op->u.munmap.addr, do_ops()
69 op->u.munmap.len, finished, &hvc->data); do_ops()
134 (last->u.munmap.addr + last->u.mmap.len == addr)) { add_munmap()
135 last->u.munmap.len += len; add_munmap()
147 .u = { .munmap = { .addr = addr, add_munmap()
320 panic("munmap failed, errno = %d\n", flush_tlb_kernel_range_common()
337 panic("munmap failed, errno = %d\n", flush_tlb_kernel_range_common()
354 panic("munmap failed, errno = %d\n", flush_tlb_kernel_range_common()
367 panic("munmap failed, errno = %d\n", flush_tlb_kernel_range_common()
/linux-4.1.27/arch/microblaze/include/asm/
H A Dtlbflush.h50 * This is called in munmap when we have freed up some page-table
/linux-4.1.27/tools/testing/selftests/memfd/
H A Dmemfd_test.c234 munmap(p, MFD_DEF_SIZE); mfd_assert_read()
247 munmap(p, MFD_DEF_SIZE); mfd_assert_read()
275 munmap(p, MFD_DEF_SIZE); mfd_assert_write()
289 munmap(p, MFD_DEF_SIZE); mfd_assert_write()
311 munmap(p, MFD_DEF_SIZE); mfd_assert_write()
786 munmap(p, MFD_DEF_SIZE); test_share_mmap()
792 munmap(p, MFD_DEF_SIZE); test_share_mmap()
H A Dfuse_test.c180 munmap(global_p, MFD_DEF_SIZE); sealing_thread_fn()
/linux-4.1.27/arch/um/os-Linux/
H A Dprocess.c163 err = munmap(addr, len); os_unmap_memory()
213 munmap(addr, UM_KERN_PAGE_SIZE); can_drop_memory()
H A Dmem.c202 munmap(addr, UM_KERN_PAGE_SIZE); check_tmpexec()
/linux-4.1.27/tools/perf/tests/
H A Dmmap-thread-lookup.c69 munmap(td->map, page_size); thread_fn()
116 munmap(td0->map, page_size); threads_destroy()
H A Drdpmc.c142 munmap(addr, page_size); __test__rdpmc()
/linux-4.1.27/include/uapi/xen/
H A Dgntdev.h65 * of gntdev. N.B. munmap() must be called on the relevant virtual address(es)
81 * to @vaddr. This can be used to perform a munmap(), followed by an
88 * an error will result. It is only possible to munmap() the entire
/linux-4.1.27/arch/x86/um/os-Linux/
H A Dtask_size.c63 munmap(mapped, UM_KERN_PAGE_SIZE); page_ok()
/linux-4.1.27/arch/sh/include/asm/
H A Dtlb.h70 * case where we're doing a full MM flush. When we're doing a munmap,
/linux-4.1.27/tools/power/cpupower/debug/i386/
H A Ddump_psb.c194 munmap(mem, LEN); main()
/linux-4.1.27/arch/x86/vdso/
H A Dvdso2c.c248 munmap(raw_addr, raw_len); main()
249 munmap(stripped_addr, stripped_len); main()
/linux-4.1.27/arch/arm/include/asm/
H A Dtlb.h15 * the munmap-large-area case.
191 * case where we're doing a full MM flush. When we're doing a munmap,
/linux-4.1.27/Documentation/ia64/
H A Daliasing-test.c55 rc = munmap(addr, length); map_mem()
57 perror("munmap"); map_mem()
/linux-4.1.27/tools/testing/selftests/net/
H A Dpsock_fanout.c238 if (munmap(rings[1], RING_NUM_FRAMES * getpagesize()) || test_datapath()
239 munmap(rings[0], RING_NUM_FRAMES * getpagesize())) { test_datapath()
H A Dpsock_tpacket.c709 munmap(ring->mm_space, ring->mm_len); unmap_ring()
/linux-4.1.27/include/linux/
H A Dhost1x.h66 void (*munmap)(struct host1x_bo *bo, void *addr); member in struct:host1x_bo_ops
109 bo->ops->munmap(bo, addr); host1x_bo_munmap()
H A Drmap.h209 * called in munlock()/munmap() path to check for other vmas holding
/linux-4.1.27/include/linux/raid/
H A Dpq.h160 # define free_pages(x, y) munmap((void *)(x), PAGE_SIZE << (y))
/linux-4.1.27/Documentation/auxdisplay/
H A Dcfag12864b-example.c86 munmap(cfag12864b_mem, CFAG12864B_SIZE); cfag12864b_exit()
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
H A Dosunixmap.c150 munmap((u8 *)where - offset, (length + offset)); acpi_os_unmap_memory()
/linux-4.1.27/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c100 munmap(addr_rw, 2 * PAGE_SIZE); check_error_paths()
/linux-4.1.27/mm/
H A Dmlock.c162 * called from munlock()/munmap() path with page supposedly on the LRU.
164 * munlock()ed or munmap()ed, we want to check whether other vmas hold the
410 * For mremap(), munmap() and exit().
H A Dnommu.c1686 "munmap of memory not mmapped by process %d" do_munmap()
1754 SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len) SYSCALL_DEFINE2()
H A Dswap.c681 * munmap or exit, while it's not on the lru, we want to add the page
H A Dmmap.c2434 * munmap path where it doesn't make sense to fail.
2553 * Make sure that map_count on return from munmap() will do_munmap()
2615 SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len) SYSCALL_DEFINE2()
/linux-4.1.27/Documentation/mic/mpssd/
H A Dmpssd.c1022 munmap(mic->mic_virtblk.backend_addr, mic->mic_virtblk.backend_size); close_backend()
1053 ret = munmap(mic->mic_virtblk.block_dp, stop_virtblk()
1056 mpsslog("%s munmap errno %d\n", mic->name, errno); stop_virtblk()
1523 munmap(map, len); set_log_buf_info()
1533 munmap(map, len); set_log_buf_info()
1540 munmap(map, len); set_log_buf_info()
/linux-4.1.27/arch/um/os-Linux/skas/
H A Dprocess.c302 if (munmap(stack, UM_KERN_PAGE_SIZE) < 0) { start_userspace()
304 printk(UM_KERN_ERR "start_userspace : munmap failed, " start_userspace()
/linux-4.1.27/scripts/basic/
H A Dfixdep.c307 munmap(map, st.st_size); do_config_file()
430 munmap(map, st.st_size); print_deps()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dvideobuf-vmalloc.c77 dprintk(1, "munmap %p q=%p\n", map, q); videobuf_vm_close()
H A Dvideobuf-dma-contig.c89 dev_dbg(q->dev, "munmap %p q=%p\n", map, q); videobuf_vm_close()
H A Dvideobuf-dma-sg.c406 dprintk(1, "munmap %p q=%p\n", map, q); videobuf_vm_close()
/linux-4.1.27/arch/x86/include/asm/
H A Dmmu_context.h236 * observed to affect munmap() performance on hardware arch_unmap()
/linux-4.1.27/arch/x86/mm/
H A Dmpx.c754 * A virtual address region being munmap()ed might share bounds table
788 * This virtual address region being munmap()ed is only unmap_edge_bts()
803 * address region being munmap()ed, we need to separately check unmap_edge_bts()
880 * munmap()ed. Assume end > start.
H A Dpgtable.c235 * Normally they will be freed by munmap/exit_mmap, but any pmd we
/linux-4.1.27/arch/powerpc/include/asm/
H A Dsystbl.h98 SYSCALL_SPU(munmap)
/linux-4.1.27/scripts/
H A Dsortextable.c68 munmap(ehdr_curr, sb.st_size); cleanup()
H A Drecordmcount.c70 munmap(ehdr_curr, sb.st_size); cleanup()
/linux-4.1.27/include/asm-generic/
H A Dtlb.h149 * case where we're doing a full MM flush. When we're doing a munmap,
/linux-4.1.27/arch/tile/kernel/
H A Dprocess.c82 * FIXME: we don't munmap step_state->buffer arch_release_thread_info()
86 * means we can't munmap() the buffer, and therefore if we arch_release_thread_info()
/linux-4.1.27/tools/virtio/
H A Dvringh_test.c177 munmap(guest_map, mapsize); parallel_test()
303 munmap(host_map, mapsize); parallel_test()
/linux-4.1.27/drivers/infiniband/core/
H A Dumem.c287 * can happen when a userspace munmap() is the call that drops ib_umem_release()
/linux-4.1.27/drivers/char/
H A Dmspec.c141 * (via fork, munmap, etc.). Increments the reference count on the
/linux-4.1.27/Documentation/DocBook/media/
H A DMakefile51 munmap \
/linux-4.1.27/drivers/infiniband/hw/usnic/
H A Dusnic_uiom.c441 * can happen when a userspace munmap() is the call that drops usnic_uiom_reg_release()
/linux-4.1.27/drivers/gpu/drm/tegra/
H A Dgem.c90 .munmap = tegra_bo_munmap,
/linux-4.1.27/arch/s390/kernel/
H A Dcompat_wrapper.c95 COMPAT_SYSCALL_WRAP2(munmap, unsigned long, addr, size_t, len);
/linux-4.1.27/arch/parisc/kernel/
H A Dsyscall_table.S167 ENTRY_SAME(munmap)
/linux-4.1.27/drivers/xen/
H A Dgntalloc.c41 * Teardown requires munmap() and either close() or ioctl().
H A Dgntdev.c66 /* maps that are not visible; will be freed on munmap.
/linux-4.1.27/ipc/
H A Dshm.c1278 * were modified by partial mlock or munmap calls: SYSCALL_DEFINE1()
1305 * a fragment created by mprotect() and/or munmap(), or it SYSCALL_DEFINE1()
/linux-4.1.27/arch/sparc/kernel/
H A Dsignal32.c365 * munmap() on another cpu can't tear down the page table flush_signal_insns()
/linux-4.1.27/arch/arc/mm/
H A Dcache_arc700.c13 * -likewise for flush_cache_range,flush_cache_page (munmap, exit, COW-break)
H A Dtlb.c247 * flush_mm called during fork,exit,munmap etc, multiple times as well. local_flush_tlb_mm()
/linux-4.1.27/tools/vm/
H A Dpage-types.c901 munmap(ptr, len); walk_file()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Di915_gem_userptr.c771 * i.e. upon free(), munmap() or process termination. However, the userspace
/linux-4.1.27/arch/ia64/kernel/
H A Dfsys.S680 data8 0 // munmap
/linux-4.1.27/tools/net/
H A Dbpf_dbg.c994 munmap(pcap_ptr_va_start, pcap_map_size); try_close_pcap()
/linux-4.1.27/tools/perf/bench/
H A Dnuma.c382 ret = munmap(data, bytes); free_data()
/linux-4.1.27/drivers/gpu/drm/omapdrm/
H A Domap_gem.c525 * on eviction to trigger this. But munmap() or all mappings should omap_gem_fault()
/linux-4.1.27/fs/
H A Daio.c856 * We don't need to bother with munmap() here - exit_mmap(mm) exit_aio()
/linux-4.1.27/arch/x86/lguest/
H A Dboot.c147 * large munmap might update dozens of page table entries: that code calls
/linux-4.1.27/arch/s390/kvm/
H A Dkvm-s390.c2578 and munmap() stuff in this slot after doing this call at any time */ kvm_arch_prepare_memory_region()
/linux-4.1.27/kernel/events/
H A Duprobes.c1114 * Called in context of a munmap of a vma.
/linux-4.1.27/scripts/mod/
H A Dmodpost.c402 munmap(file, size); release_file()
/linux-4.1.27/drivers/media/pci/zoran/
H A Dzoran_driver.c2798 dprintk(3, KERN_INFO "%s: %s - munmap(%s)\n", ZR_DEVNAME(zr), zoran_vm_close()
/linux-4.1.27/tools/perf/
H A Dbuiltin-trace.c1039 { .name = "munmap", .errmsg = true,
/linux-4.1.27/arch/x86/kvm/
H A Dx86.c7696 "failed to munmap memory\n"); kvm_arch_commit_memory_region()

Completed in 2845 milliseconds