Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 200 of 605) sorted by relevance

1234

/linux-4.1.27/tools/perf/util/
Devent.c304 event->mmap2.len -= event->mmap.start; in perf_event__synthesize_mmap_events()
329 union perf_event *event = zalloc((sizeof(event->mmap) + in perf_event__synthesize_modules()
357 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_modules()
358 event->mmap.header.size = (sizeof(event->mmap) - in perf_event__synthesize_modules()
359 (sizeof(event->mmap.filename) - size)); in perf_event__synthesize_modules()
360 memset(event->mmap.filename + size, 0, machine->id_hdr_size); in perf_event__synthesize_modules()
361 event->mmap.header.size += machine->id_hdr_size; in perf_event__synthesize_modules()
362 event->mmap.start = pos->start; in perf_event__synthesize_modules()
363 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_modules()
364 event->mmap.pid = machine->pid; in perf_event__synthesize_modules()
[all …]
Devlist.c109 zfree(&evlist->mmap); in perf_evlist__exit()
636 struct perf_mmap *md = &evlist->mmap[idx]; in perf_evlist__mmap_read()
703 ++evlist->mmap[idx].refcnt; in perf_evlist__mmap_get()
708 BUG_ON(evlist->mmap[idx].refcnt == 0); in perf_evlist__mmap_put()
710 if (--evlist->mmap[idx].refcnt == 0) in perf_evlist__mmap_put()
716 struct perf_mmap *md = &evlist->mmap[idx]; in perf_evlist__mmap_consume()
730 if (evlist->mmap[idx].base != NULL) { in __perf_evlist__munmap()
731 munmap(evlist->mmap[idx].base, evlist->mmap_len); in __perf_evlist__munmap()
732 evlist->mmap[idx].base = NULL; in __perf_evlist__munmap()
733 evlist->mmap[idx].refcnt = 0; in __perf_evlist__munmap()
[all …]
Dmachine.c1049 machine->vmlinux_maps[i]->start = event->mmap.start; in machine__set_kernel_mmap_len()
1050 machine->vmlinux_maps[i]->end = (event->mmap.start + in machine__set_kernel_mmap_len()
1051 event->mmap.len); in machine__set_kernel_mmap_len()
1091 is_kernel_mmap = memcmp(event->mmap.filename, in machine__process_kernel_mmap_event()
1094 if (event->mmap.filename[0] == '/' || in machine__process_kernel_mmap_event()
1095 (!is_kernel_mmap && event->mmap.filename[0] == '[')) { in machine__process_kernel_mmap_event()
1096 map = machine__new_module(machine, event->mmap.start, in machine__process_kernel_mmap_event()
1097 event->mmap.filename); in machine__process_kernel_mmap_event()
1101 map->end = map->start + event->mmap.len; in machine__process_kernel_mmap_event()
1103 const char *symbol_name = (event->mmap.filename + in machine__process_kernel_mmap_event()
[all …]
Dpython.c87 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr()
88 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr()
89 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr()
555 mmap = 0, in pyrf_evsel__init() local
574 &mmap, &comm, &freq, &inherit_stat, in pyrf_evsel__init()
597 attr.mmap = mmap; in pyrf_evsel__init()
Dsession.c269 if (tool->mmap == NULL) in perf_tool__fill_defaults()
270 tool->mmap = process_event_stub; in perf_tool__fill_defaults()
335 event->mmap.pid = bswap_32(event->mmap.pid); in perf_event__mmap_swap()
336 event->mmap.tid = bswap_32(event->mmap.tid); in perf_event__mmap_swap()
337 event->mmap.start = bswap_64(event->mmap.start); in perf_event__mmap_swap()
338 event->mmap.len = bswap_64(event->mmap.len); in perf_event__mmap_swap()
339 event->mmap.pgoff = bswap_64(event->mmap.pgoff); in perf_event__mmap_swap()
342 void *data = &event->mmap.filename; in perf_event__mmap_swap()
813 pid = event->mmap.pid; in machines__find_for_cpumode()
922 return tool->mmap(tool, event, sample, machine); in machines__deliver_event()
[all …]
Dtool.h35 event_op mmap, member
Dzlib.c36 ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0); in gzip_decompress_to_file()
/linux-4.1.27/arch/um/kernel/
Dtlb.c27 } mmap; member
63 ret = map(hvc->id, op->u.mmap.addr, op->u.mmap.len, in do_ops()
64 op->u.mmap.prot, op->u.mmap.fd, in do_ops()
65 op->u.mmap.offset, finished, &hvc->data); in do_ops()
98 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
99 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap()
100 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap()
101 last->u.mmap.len += len; in add_mmap()
113 .u = { .mmap = { .addr = virt, in add_mmap()
134 (last->u.munmap.addr + last->u.mmap.len == addr)) { in add_munmap()
[all …]
/linux-4.1.27/Documentation/ia64/
Daliasing.txt87 mmap of /dev/mem
101 mmap of /sys/class/pci_bus/.../legacy_mem
103 This is very similar to mmap of /dev/mem, except that legacy_mem
104 only allows mmap of the one megabyte "legacy MMIO" area for a
113 The /dev/mem mmap constraints apply.
115 mmap of /proc/bus/pci/.../??.?
117 This is an MMIO mmap of PCI functions, which additionally may or
160 mmap of various MMIO regions from /dev/mem by "X" on Intel platforms
165 when the EFI memory map is incomplete, every /dev/mem mmap must
169 mmap of 0x0-0x9FFFF /dev/mem by "hwinfo" on HP sx1000 with VGA enabled
[all …]
Daliasing-test.c45 addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); in map_mem()
/linux-4.1.27/Documentation/arm/
Duefi.txt50 linux,uefi-mmap-start | 64-bit | Physical address of the UEFI memory map,
53 linux,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map
56 linux,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI
59 linux,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format.
Dmemory.txt73 the mmap() system call.
88 must set up their own mappings using open() and mmap().
/linux-4.1.27/tools/testing/selftests/memfd/
Dmemfd_test.c151 p = mmap(NULL, in mfd_assert_mmap_shared()
169 p = mmap(NULL, in mfd_assert_mmap_private()
224 p = mmap(NULL, in mfd_assert_read()
237 p = mmap(NULL, in mfd_assert_read()
264 p = mmap(NULL, in mfd_assert_write()
278 p = mmap(NULL, in mfd_assert_write()
293 p = mmap(NULL, in mfd_assert_write()
338 p = mmap(NULL, in mfd_fail_write()
350 p = mmap(NULL, in mfd_fail_write()
363 p = mmap(NULL, in mfd_fail_write()
Dfuse_test.c128 p = mmap(NULL, in mfd_assert_mmap_shared()
146 p = mmap(NULL, in mfd_assert_mmap_private()
/linux-4.1.27/tools/testing/selftests/powerpc/mm/
Dhugetlb_vs_thp_test.c17 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
33 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
Dsubpage_prot.c194 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, in test_file()
/linux-4.1.27/tools/perf/python/
Dtwatch.py21 evsel = perf.evsel(task = 1, comm = 1, mmap = 0,
28 evlist.mmap()
/linux-4.1.27/fs/proc/
Dinode.c271 int (*mmap)(struct file *, struct vm_area_struct *); in proc_reg_mmap() local
273 mmap = pde->proc_fops->mmap; in proc_reg_mmap()
274 if (mmap) in proc_reg_mmap()
275 rv = mmap(file, vma); in proc_reg_mmap()
377 .mmap = proc_reg_mmap,
390 .mmap = proc_reg_mmap,
/linux-4.1.27/Documentation/filesystems/
Dsysfs-pci.txt42 resource0..N PCI resource N, if present (binary, mmap, rw[1])
43 resource0_wc..N_wc PCI WC map resource N, if prefetchable (binary, mmap)
52 mmap - file is mmapable
62 mmapable files are available via an mmap of the file at offset 0 and can be
65 value from any attempted mmap. The most notable of these are I/O port
115 Platforms are free to only support subsets of the mmap functionality, but
Dmandatory-locking.txt25 and mmap similarly unreliable.
99 mmap() is another interesting case. All the operating systems mentioned
100 prevent mandatory locks from being applied to an mmap()'ed file, but HP-UX
139 shared (via mmap() with MAP_SHARED) will be rejected with the error status
142 6. Attempts to create a shared memory map of a file (via mmap() with MAP_SHARED)
150 write(), readv(), writev(), open(), creat(), mmap(), truncate() and
Ddax.txt9 by a call to mmap.
60 - implementing an mmap file operation for DAX files which sets the
D9p.txt78 mmap = minimal cache that is only used for read-write
79 mmap. Northing else is cached, like cache=none
/linux-4.1.27/arch/arm64/kernel/
Defi.c217 memblock_reserve(params.mmap & PAGE_MASK, in efi_init()
218 PAGE_ALIGN(params.mmap_size + (params.mmap & ~PAGE_MASK))); in efi_init()
219 memmap.phys_map = (void *)params.mmap; in efi_init()
220 memmap.map = early_memremap(params.mmap, params.mmap_size); in efi_init()
/linux-4.1.27/include/linux/
Dvfio.h43 int (*mmap)(void *device_data, struct vm_area_struct *vma); member
70 int (*mmap)(void *iommu_data, struct vm_area_struct *vma); member
Dhost1x.h65 void *(*mmap)(struct host1x_bo *bo); member
104 return bo->ops->mmap(bo); in host1x_bo_mmap()
Duio_driver.h104 int (*mmap)(struct uio_info *info, struct vm_area_struct *vma); member
Dposix-clock.h88 int (*mmap) (struct posix_clock *pc, member
Ddma-buf.h105 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma); member
Dmm_types.h342 struct vm_area_struct *mmap; /* list of VMAs */ member
/linux-4.1.27/Documentation/x86/
Dpat.txt62 mmap SYNC flag | | | |
65 mmap !SYNC flag | |(from exist-| (from exist- |
70 mmap !SYNC flag | | | |
76 mmap !SYNC flag | | | |
88 Drivers wanting to export some pages to userspace do it by using mmap
/linux-4.1.27/Documentation/vm/
Dovercommit-accounting39 guarantees and run close to the edge you MUST mmap your stack for the
61 Pages made writable copies by mmap
67 o We account mmap memory mappings
Dunevictable-lru.txt26 - mmap(MAP_LOCKED) system call handling.
209 list at mlock() or mmap() time, vmscan will not encounter the pages until they
279 (2) in the mmap() system call handler when mmapping a region with the
465 mmap(MAP_LOCKED) SYSTEM CALL HANDLING
469 that a region of memory be mlocked supplying the MAP_LOCKED flag to the mmap()
470 call. Furthermore, any mmap() call or brk() call that expands the heap by a
477 mmap() handler and task address space expansion functions call
539 try_to_unmap_anon() attempts to acquire in read mode the mmap semaphore of
545 If the mmap semaphore cannot be acquired, we are not sure whether the page
559 mm_struct's mmap semaphore to mlock the page, returning SWAP_MLOCK if this
[all …]
Dhugetlbpage.txt13 Users can use the huge page support in Linux kernel by either using the mmap
65 pool, a user with appropriate privilege can use either the mmap system call
265 If the user applications are going to request huge pages using mmap system
306 applications are going to use only shmat/shmget system calls or mmap with
307 MAP_HUGETLB. For an example of how to use mmap with MAP_HUGETLB see map_hugetlb
314 filesystem will be required for using mmap calls without MAP_HUGETLB.
330 3) hugepage-mmap: see tools/testing/selftests/vm/hugepage-mmap.c
Dremap_file_pages.txt4 over using repeated calls to mmap(2) is that the former approach does not
/linux-4.1.27/drivers/infiniband/hw/amso1100/
Dc2_qp.c426 void __iomem *mmap; in c2_alloc_qp() local
519 mmap = ioremap_nocache(peer_pa, mmap_size); in c2_alloc_qp()
520 if (!mmap) { in c2_alloc_qp()
529 mmap + sizeof(struct c2_mq_shared), /* pool start */ in c2_alloc_qp()
530 mmap, /* peer */ in c2_alloc_qp()
538 mmap = ioremap_nocache(peer_pa, mmap_size); in c2_alloc_qp()
539 if (!mmap) { in c2_alloc_qp()
548 mmap + sizeof(struct c2_mq_shared), /* pool start */ in c2_alloc_qp()
549 mmap, /* peer */ in c2_alloc_qp()
/linux-4.1.27/fs/9p/
Dvfs_file.c645 .mmap = v9fs_file_mmap,
657 .mmap = v9fs_file_mmap,
668 .mmap = generic_file_readonly_mmap,
680 .mmap = generic_file_readonly_mmap,
691 .mmap = v9fs_mmap_file_mmap,
703 .mmap = v9fs_mmap_file_mmap,
/linux-4.1.27/tools/perf/tests/
DBuild9 perf-y += mmap-basic.o
26 perf-y += mmap-thread-lookup.o
Dhists_common.c103 .mmap = { in setup_fake_machine()
113 strcpy(fake_mmap_event.mmap.filename, in setup_fake_machine()
Dattr.c104 WRITE_ASS(mmap, "d"); in store_event()
Dperf-time-to-tsc.c85 pc = evlist->mmap[0].base; in test__perf_time_to_tsc()
Drdpmc.c118 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); in __test__rdpmc()
Dmmap-thread-lookup.c32 map = mmap(NULL, page_size, in thread_init()
Dswitch-tracking.c429 if (!tracking_evsel->attr.mmap || !tracking_evsel->attr.comm) { in test__switch_tracking()
437 if (evsel->attr.mmap || evsel->attr.comm) { in test__switch_tracking()
/linux-4.1.27/fs/coda/
Dfile.c96 if (!host_file->f_op->mmap) in coda_file_mmap()
120 return host_file->f_op->mmap(host_file, vma); in coda_file_mmap()
224 .mmap = coda_file_mmap,
/linux-4.1.27/tools/testing/selftests/vm/
D.gitignore1 hugepage-mmap
Dtranshuge-stress.c35 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge()
89 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in main()
DMakefile4 BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
Dmap_hugetlb.c65 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, 0, 0); in main()
Dhugepage-mmap.c75 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); in main()
Drun_vmtests42 ./hugepage-mmap
Dhugetlbfstest.c40 p = mmap(NULL, length, PROT_READ | PROT_WRITE, flags, fd, 0); in do_mmap()
Dthuge-gen.c146 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap()
/linux-4.1.27/tools/perf/
Ddesign.txt58 mmap : 1, /* include mmap data */
193 available to user-space using mmap() (see below).
225 The 'mmap' and 'munmap' bits allow recording of PROT_EXEC mmap/munmap
277 Like stated, asynchronous events, like counter overflow or PROT_EXEC mmap
279 accessed through mmap().
281 The mmap size should be 1+2^n pages, where the first page is a meta-data page
286 * Structure of the page that can be mapped via mmap
319 * Control data for the mmap() data buffer.
462 should select PERF_USE_VMALLOC in order to avoid these for perf mmap().
Dbuiltin-inject.c358 inject->tool.mmap = perf_event__repipe_mmap; in __cmd_inject()
405 .mmap = perf_event__repipe, in cmd_inject()
Dbuiltin-script.c724 thread = machine__findnew_thread(machine, event->mmap.pid, event->mmap.tid); in process_mmap_event()
733 sample->tid = event->mmap.tid; in process_mmap_event()
734 sample->pid = event->mmap.pid; in process_mmap_event()
791 script->tool.mmap = process_mmap_event; in __cmd_script()
1506 .mmap = perf_event__process_mmap, in cmd_script()
Dbuiltin-record.c72 struct perf_mmap *md = &rec->evlist->mmap[idx]; in record__mmap_read()
273 if (rec->evlist->mmap[i].base) { in record__mmap_read_all()
831 .mmap = perf_event__process_mmap,
/linux-4.1.27/drivers/char/
Dmspec.c317 .mmap = fetchop_mmap,
329 .mmap = cached_mmap,
341 .mmap = uncached_mmap,
Duv_mmtimer.c52 .mmap = uv_mmtimer_mmap,
Dmem.c729 .mmap = mmap_mem,
741 .mmap = mmap_kmem,
770 .mmap = mmap_zero,
/linux-4.1.27/fs/ufs/
Dfile.c40 .mmap = generic_file_mmap,
/linux-4.1.27/fs/adfs/
Dfile.c27 .mmap = generic_file_mmap,
/linux-4.1.27/fs/romfs/
DMakefile10 romfs-$(CONFIG_ROMFS_ON_MTD) += mmap-nommu.o
Dmmap-nommu.c86 .mmap = romfs_mmap,
/linux-4.1.27/arch/arc/mm/
DMakefile10 obj-y += tlb.o tlbex.o cache_arc700.o mmap.o
/linux-4.1.27/fs/ramfs/
Dfile-mmu.c36 .mmap = generic_file_mmap,
Dfile-nommu.c45 .mmap = ramfs_nommu_mmap,
/linux-4.1.27/arch/arm/vdso/
Dvdsomunge.c158 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
199 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
/linux-4.1.27/arch/tile/mm/
DMakefile6 mmap.o homecache.o migrate_$(BITS).o
Delf.c64 for (vma = current->mm->mmap; ; vma = vma->vm_next) { in notify_exec()
/linux-4.1.27/tools/perf/tests/attr/
Dtest-record-group17 mmap=0
Dtest-record-group118 mmap=0
Dbase-stat21 mmap=0
Dbase-record21 mmap=1
Dtest-record-group-sampling26 mmap=0
/linux-4.1.27/fs/kernfs/
Dfile.c488 rc = ops->mmap(of, vma); in kernfs_fop_mmap()
626 has_read = ops->seq_show || ops->read || ops->mmap; in kernfs_fop_open()
627 has_write = ops->write || ops->mmap; in kernfs_fop_open()
628 has_mmap = ops->mmap; in kernfs_fop_open()
890 .mmap = kernfs_fop_mmap,
945 if (ops->mmap) in __kernfs_create_file()
/linux-4.1.27/fs/ecryptfs/
DMakefile7 ecryptfs-y := dentry.o file.o inode.o main.o super.o mmap.o read_write.o \
Dkthread.c174 if ((*lower_file)->f_op->mmap == NULL) { in ecryptfs_privileged_open()
/linux-4.1.27/fs/ncpfs/
DMakefile7 ncpfs-y := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
/linux-4.1.27/arch/arm64/mm/
DMakefile3 ioremap.o mmap.o pgd.o mmu.o \
/linux-4.1.27/arch/s390/mm/
DMakefile5 obj-y := init.o fault.o extmem.o mmap.o vmem.o pgtable.o maccess.o
/linux-4.1.27/arch/microblaze/kernel/
Dsys_microblaze.c36 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
Ddma.c186 .mmap = dma_direct_mmap_coherent,
/linux-4.1.27/Documentation/
Dnommu-mmap.txt7 mapping is made use of in conjunction with the mmap() system call, the shmat()
10 mmap() routines to do the actual work.
82 (such as ramfs or tmpfs) may choose to honour an open, truncate, mmap
102 the mmap() by providing direct access to the underlying device if it
140 returned by malloc() - mmap() can take a MAP_UNINITIALIZED flag to
159 allocated if mmap() chooses not to map the backing device directly. An
211 file->f_op->get_unmapped_area() operation. The mmap() routines will call this
221 The file->f_op->mmap() operation will be called to actually inaugurate the
283 NOMMU mmap automatically rounds up to the nearest power-of-2 number of pages
Ddma-buf-sharing.txt336 Direct Userspace Access/mmap Support
339 Being able to mmap an export dma-buf buffer object has 2 main use-cases:
341 - supporting existing mmap interfaces in importers.
349 from userspace using mmap.
356 No special interfaces, userspace simply calls mmap on the dma-buf fd.
358 2. Supporting existing mmap interfaces in importers
365 mmap a buffer rather invasive.
368 initial mmap is all that's needed. A survey of some of the existing
379 If the importing subsystem simply provides a special-purpose mmap call to set
401 for userspace mappings. But the current assumption is that using mmap is
[all …]
/linux-4.1.27/Documentation/auxdisplay/
Dcfag12864b101 Also, you can mmap the framebuffer: open & mmap, munmap & close...
Dcfag12864b-example.c71 cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE, in cfag12864b_init()
/linux-4.1.27/tools/testing/selftests/ptrace/
Dpeeksiginfo.c53 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, in check_error_paths()
60 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, in check_error_paths()
/linux-4.1.27/drivers/pcmcia/
Dtcic.c737 u_long base, len, mmap; in tcic_set_mem_map() local
759 mmap = mem->card_start - mem->res->start; in tcic_set_mem_map()
760 mmap = (mmap >> TCIC_MMAP_CA_SHFT) & TCIC_MMAP_CA_MASK; in tcic_set_mem_map()
761 if (mem->flags & MAP_ATTRIB) mmap |= TCIC_MMAP_REG; in tcic_set_mem_map()
763 tcic_setw(TCIC_DATA, mmap); in tcic_set_mem_map()
/linux-4.1.27/arch/arc/kernel/
Darc_hostlink.c44 .mmap = arc_hl_mmap,
/linux-4.1.27/Documentation/networking/
Dpacket_mmap.txt5 This file documents the mmap() facility available with the PACKET
47 + How to use mmap() to improve capture process
67 + How to use mmap() directly to improve capture process
77 mmap() ---------> mapping of the allocated buffer to the
103 allocated RX and TX buffer ring with a single mmap() call.
111 + How to use mmap() directly to improve transmission process
119 mmap() ---------> mapping of the allocated buffer to the
410 mmap function. Even the circular buffer is compound of several physically
412 just one call to mmap is needed:
414 mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
[all …]
Dnetlink_mmap.txt36 kernel, then a call to mmap() to map the ring into the processes address space:
40 - ring = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)
204 See commit 4682a0358639b29cf ("netlink: Always copy on mmap TX.").
231 rx_ring = mmap(NULL, 2 * ring_size, PROT_READ | PROT_WRITE,
/linux-4.1.27/fs/minix/
Dfile.c19 .mmap = generic_file_mmap,
/linux-4.1.27/fs/sysv/
Dfile.c26 .mmap = generic_file_mmap,
/linux-4.1.27/arch/arm/mach-nspire/
Dnspire.c49 .mmap = nspire_clcd_mmap,
/linux-4.1.27/drivers/gpu/drm/tdfx/
Dtdfx_drv.c50 .mmap = drm_legacy_mmap,
/linux-4.1.27/fs/exofs/
Dfile.c72 .mmap = generic_file_mmap,
/linux-4.1.27/tools/build/feature/
DMakefile20 test-libelf-mmap.bin \
75 test-libelf-mmap.bin:
/linux-4.1.27/fs/ext3/
Dfile.c59 .mmap = generic_file_mmap,
/linux-4.1.27/drivers/gpu/drm/savage/
Dsavage_drv.c43 .mmap = drm_legacy_mmap,
/linux-4.1.27/arch/unicore32/include/asm/
Dmmu_context.h76 mm->mmap = NULL; \
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Dosunixmap.c117 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, in acpi_os_map_memory()
/linux-4.1.27/drivers/gpu/drm/i810/
Di810_drv.c50 .mmap = drm_legacy_mmap,
/linux-4.1.27/fs/
Dbinfmt_aout.c223 if (!bprm->file->f_op->mmap) in load_aout_binary()
299 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { in load_aout_binary()
363 if (!file->f_op->mmap) in load_aout_library()
Dbinfmt_em86.c41 !bprm->file->f_op->mmap) { in load_em86()
/linux-4.1.27/kernel/time/
Dposix-clock.c109 if (clk->ops.mmap) in posix_clock_mmap()
110 err = clk->ops.mmap(clk, vma); in posix_clock_mmap()
203 .mmap = posix_clock_mmap,
/linux-4.1.27/fs/sysfs/
Dfile.c162 return battr->mmap(of->file, kobj, battr, vma); in sysfs_kf_bin_mmap()
235 .mmap = sysfs_kf_bin_mmap,
279 if (battr->mmap) in sysfs_add_file_mode_ns()
/linux-4.1.27/drivers/xen/xenfs/
Dxenstored.c50 .mmap = xsd_kva_mmap,
/linux-4.1.27/arch/powerpc/kernel/
Dproc_powerpc.c58 .mmap = page_map_mmap
Ddma-swiotlb.c52 .mmap = dma_direct_mmap_coherent,
Ddma-iommu.c111 .mmap = dma_direct_mmap_coherent,
/linux-4.1.27/tools/testing/selftests/x86/
Dentry_from_vm86.c88 unsigned char *addr = mmap((void *)load_addr, 4096, in main()
/linux-4.1.27/include/sound/
Dhwdep.h46 int (*mmap)(struct snd_hwdep *hw, struct file *file, member
Dcompress_driver.h126 int (*mmap)(struct snd_compr_stream *stream, member
Dinfo.h68 int (*mmap)(struct snd_info_entry *entry, void *file_private_data, member
/linux-4.1.27/fs/ocfs2/
DMakefile29 mmap.o \
/linux-4.1.27/drivers/gpu/drm/r128/
Dr128_drv.c49 .mmap = drm_legacy_mmap,
/linux-4.1.27/scripts/basic/
Dfixdep.c298 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in do_config_file()
421 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in print_deps()
/linux-4.1.27/drivers/dma-buf/
Ddma-buf.c93 return dmabuf->ops->mmap(dmabuf, vma); in dma_buf_mmap_internal()
254 .mmap = dma_buf_mmap_internal,
301 || !exp_info->ops->mmap)) { in dma_buf_export()
685 ret = dmabuf->ops->mmap(dmabuf, vma); in dma_buf_mmap()
/linux-4.1.27/Documentation/fb/
Dudlfb.txt44 * Fbdev's mmap interface assumes a real hardware framebuffer is mapped.
49 interface to allow mmap clients to report damage, for the benefit
68 standard fbdev calls. Note that if mmap() is used, by default the user mode
105 Standard fbdev applications that use mmap but that do not
Dtgafb.txt57 mmap(). Running the standard XF86_TGA server from XFree86 3.3.x works fine for
/linux-4.1.27/fs/cifs/
Dcifsfs.c918 .mmap = cifs_file_mmap,
936 .mmap = cifs_file_strict_mmap,
955 .mmap = cifs_file_mmap,
972 .mmap = cifs_file_mmap,
989 .mmap = cifs_file_strict_mmap,
1007 .mmap = cifs_file_mmap,
/linux-4.1.27/arch/tile/kernel/
Dsys.c89 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
/linux-4.1.27/arch/x86/mm/
DMakefile1 obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c115 .mmap = vmw_prime_dmabuf_mmap,
/linux-4.1.27/drivers/gpu/drm/mga/
Dmga_drv.c51 .mmap = drm_legacy_mmap,
/linux-4.1.27/drivers/xen/xenbus/
Dxenbus_dev_backend.c113 .mmap = xenbus_backend_mmap,
/linux-4.1.27/arch/x86/um/os-Linux/
Dtask_size.c34 mapped = mmap(address, UM_KERN_PAGE_SIZE, in page_ok()
/linux-4.1.27/arch/parisc/kernel/
Dcache.c494 for (vma = mm->mmap; vma; vma = vma->vm_next) in mm_total_size()
527 for (vma = mm->mmap; vma; vma = vma->vm_next) { in flush_cache_mm()
537 for (vma = mm->mmap; vma; vma = vma->vm_next) { in flush_cache_mm()
/linux-4.1.27/arch/powerpc/mm/
DMakefile9 obj-y := fault.o mem.o pgtable.o mmap.o \
Dtlb_hash32.c149 for (mp = mm->mmap; mp != NULL; mp = mp->vm_next) in flush_tlb_mm()
/linux-4.1.27/arch/mips/mm/
DMakefile6 gup.o init.o mmap.o page.o page-funcs.o \
/linux-4.1.27/drivers/gpu/drm/via/
Dvia_drv.c65 .mmap = drm_legacy_mmap,
/linux-4.1.27/tools/testing/selftests/powerpc/primitives/
Dload_unaligned_zeropad.c124 mem_region = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE, in test_body()
/linux-4.1.27/fs/ext2/
Dfile.c102 .mmap = ext2_file_mmap,
/linux-4.1.27/arch/um/drivers/
Dmmapper_kern.c87 .mmap = mmapper_mmap,
/linux-4.1.27/mm/
Dnommu.c846 mm->mmap = vma->vm_next; in delete_vma_from_mm()
881 for (vma = mm->mmap; vma; vma = vma->vm_next) { in find_vma()
930 for (vma = mm->mmap; vma; vma = vma->vm_next) { in find_vma_exact()
985 if (!file->f_op->mmap) in validate_mmap_request()
1156 ret = vma->vm_file->f_op->mmap(vma->vm_file, vma); in do_mmap_shared_file()
1187 ret = vma->vm_file->f_op->mmap(vma->vm_file, vma); in do_mmap_private()
1773 while ((vma = mm->mmap)) { in exit_mmap()
1774 mm->mmap = vma->vm_next; in exit_mmap()
Dmmap.c440 struct vm_area_struct *vma = mm->mmap; in validate_mm()
1052 next = mm->mmap; in vma_merge()
1350 if (!file->f_op->mmap) in do_mmap_pgoff()
1619 error = file->f_op->mmap(file, vma); in mmap_region()
2389 struct vm_area_struct *next = prev ? prev->vm_next : mm->mmap; in unmap_region()
2412 insertion_point = (prev ? &prev->vm_next : &mm->mmap); in detach_vmas_to_be_unmapped()
2573 vma = prev ? prev->vm_next : mm->mmap; in do_munmap()
2836 vma = mm->mmap; in exit_mmap()
2846 vma = mm->mmap; in exit_mmap()
3213 for (vma = mm->mmap; vma; vma = vma->vm_next) { in mm_take_all_locks()
[all …]
DMakefile10 mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
Ddebug.c201 mm, mm->mmap, mm->vmacache_seqnum, mm->task_size, in dump_mm()
/linux-4.1.27/drivers/gpu/drm/sis/
Dsis_drv.c73 .mmap = drm_legacy_mmap,
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_drv.c28 .mmap = udl_drm_gem_mmap,
/linux-4.1.27/sound/core/
Dhwdep.c265 if (hw->ops.mmap) in snd_hwdep_mmap()
266 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()
344 .mmap = snd_hwdep_mmap,
/linux-4.1.27/drivers/staging/unisys/visorchipset/
Dfile.c132 .mmap = visorchipset_mmap,
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_drv.c82 .mmap = mgag200_mmap,
/linux-4.1.27/sound/arm/
Dpxa2xx-pcm.c86 .mmap = pxa2xx_pcm_mmap,
/linux-4.1.27/include/asm-generic/
Ddma-mapping-common.h215 if (ops->mmap) in dma_mmap_attrs()
216 return ops->mmap(dev, vma, cpu_addr, dma_addr, size, attrs); in dma_mmap_attrs()
/linux-4.1.27/drivers/vfio/
Dvfio.c1048 if (likely(driver && driver->ops->mmap)) in vfio_fops_mmap()
1049 ret = driver->ops->mmap(container->iommu_data, vma); in vfio_fops_mmap()
1066 .mmap = vfio_fops_mmap,
1424 if (unlikely(!device->ops->mmap)) in vfio_device_fops_mmap()
1427 return device->ops->mmap(device->device_data, vma); in vfio_device_fops_mmap()
1448 .mmap = vfio_device_fops_mmap,
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_64_vio.c96 .mmap = kvm_spapr_tce_mmap,
/linux-4.1.27/arch/arm/mach-netx/
Dnxeb500hmi.c99 .mmap = netx_clcd_mmap,
Dnxdb500.c96 .mmap = netx_clcd_mmap,
/linux-4.1.27/sound/soc/pxa/
Dpxa2xx-pcm.c89 .mmap = pxa2xx_pcm_mmap,
Dmmp-pcm.c141 .mmap = mmp_pcm_mmap,
/linux-4.1.27/fs/nilfs2/
Dfile.c152 .mmap = nilfs_file_mmap,
/linux-4.1.27/sound/oss/
Dsoundcard.c482 if( audio_devs[dev]->d->mmap) in sound_mmap()
483 audio_devs[dev]->d->mmap(dev); in sound_mmap()
499 .mmap = sound_mmap,
/linux-4.1.27/arch/um/os-Linux/
Dmem.c190 addr = mmap(NULL, UM_KERN_PAGE_SIZE, in check_tmpexec()
/linux-4.1.27/crypto/
Dalgif_rng.c105 .mmap = sock_no_mmap,
Dalgif_hash.c225 .mmap = sock_no_mmap,
333 .mmap = sock_no_mmap,
/linux-4.1.27/tools/power/cpupower/debug/i386/
Ddump_psb.c184 mem = mmap(mem, 0x100000 - 0xc0000, PROT_READ, MAP_SHARED, fd, 0xc0000); in main()
/linux-4.1.27/include/linux/raid/
Dpq.h156 # define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
/linux-4.1.27/Documentation/video4linux/
Dmeye.txt101 obtained with a VIDIOCGMBUF call and mmap'ed by the
116 available from the first mmap'ed buffer.
/linux-4.1.27/arch/sh/mm/
DMakefile5 obj-y := alignment.o cache.o init.o consistent.o mmap.o
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_drv.c126 .mmap = cirrus_mmap,
/linux-4.1.27/sound/firewire/dice/
Ddice-pcm.c383 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_dice_create_pcm()
395 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_dice_create_pcm()
/linux-4.1.27/drivers/media/v4l2-core/
Dvideobuf2-vmalloc.c363 .mmap = vb2_vmalloc_dmabuf_ops_mmap,
457 .mmap = vb2_vmalloc_mmap,
/linux-4.1.27/net/nfc/
Drawsock.c295 .mmap = sock_no_mmap,
315 .mmap = sock_no_mmap,
/linux-4.1.27/tools/perf/Documentation/
Dperf-trace.txt70 --mmap-pages=::
71 Number of mmap data pages (must be a power of two) or size
Dperf-kvm.txt123 --mmap-pages=::
124 Number of mmap data pages (must be a power of two) or size
Dperf-top.txt69 --mmap-pages=<pages>::
70 Number of mmap data pages (must be a power of two) or size
/linux-4.1.27/include/media/
Dv4l2-dev.h74 int (*mmap) (struct file *, struct vm_area_struct *); member
/linux-4.1.27/fs/jfs/
Dfile.c156 .mmap = generic_file_mmap,
/linux-4.1.27/net/atm/
Dpvc.c127 .mmap = sock_no_mmap,
/linux-4.1.27/fs/nfs/
Dnfs4file.c175 .mmap = nfs_file_mmap,
/linux-4.1.27/arch/x86/kernel/
Dsys_x86_64.c86 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
/linux-4.1.27/tools/build/
DMakefile.feature42 libelf-mmap \
/linux-4.1.27/drivers/gpu/drm/bochs/
Dbochs_drv.c78 .mmap = bochs_mmap,
/linux-4.1.27/drivers/gpu/drm/ast/
Dast_drv.c189 .mmap = ast_mmap,
/linux-4.1.27/sound/firewire/oxfw/
Doxfw-pcm.c392 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_oxfw_create_pcm()
404 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_oxfw_create_pcm()
/linux-4.1.27/drivers/video/fbdev/
Damba-clcd.c413 fb->board->mmap) in clcdfb_mmap()
414 ret = fb->board->mmap(fb, vma); in clcdfb_mmap()
802 board->mmap = clcdfb_of_vram_mmap; in clcdfb_of_get_board()
806 board->mmap = clcdfb_of_dma_mmap; in clcdfb_of_get_board()
/linux-4.1.27/Documentation/frv/
Dmmu-layout.txt194 00004000-01ffffff ~32MB lower mmap space (grows up)
198 -bfffffff upper mmap space (grows down)
201 are cached by the TLB handler. The lower mmap space is filled first, and then the upper mmap space
/linux-4.1.27/drivers/video/fbdev/omap/
Domapfb.h174 int (*mmap) (struct fb_info *info, member
/linux-4.1.27/arch/arm/mach-lpc32xx/
Dphy3250.c154 .mmap = lpc32xx_clcd_mmap,
/linux-4.1.27/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c168 .mmap = omap_gem_dmabuf_mmap,
/linux-4.1.27/fs/jffs2/
DTODO6 do shared writable mmap, if we can have a fs hook for do_wp_page() to
/linux-4.1.27/fs/bfs/
Dfile.c28 .mmap = generic_file_mmap,
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
Dfile.c364 .mmap = spufs_mem_mmap,
518 .mmap = spufs_cntl_mmap,
1162 .mmap = spufs_signal1_mmap,
1170 .mmap = spufs_signal1_mmap,
1303 .mmap = spufs_signal2_mmap,
1311 .mmap = spufs_signal2_mmap,
1451 .mmap = spufs_mss_mmap,
1509 .mmap = spufs_psmap_mmap,
1880 .mmap = spufs_mfc_mmap,
/linux-4.1.27/arch/um/os-Linux/skas/
Dprocess.c211 addr = mmap((void *) STUB_DATA, in userspace_tramp()
255 stack = mmap(NULL, UM_KERN_PAGE_SIZE, in start_userspace()
/linux-4.1.27/drivers/uio/
Duio.c691 if (idev->info->mmap) { in uio_mmap()
692 ret = idev->info->mmap(idev->info, vma); in uio_mmap()
713 .mmap = uio_mmap,
/linux-4.1.27/net/bluetooth/cmtp/
Dsock.c189 .mmap = sock_no_mmap
/linux-4.1.27/sound/soc/omap/
Domap-pcm.c173 .mmap = omap_pcm_mmap,
/linux-4.1.27/arch/arm/mach-integrator/
Dintegrator_cp.c220 .mmap = versatile_clcd_mmap_dma,
/linux-4.1.27/net/bluetooth/bnep/
Dsock.c186 .mmap = sock_no_mmap
/linux-4.1.27/arch/x86/vdso/
Dvdso2c.c198 *addr = mmap(NULL, tmp_len, prot, MAP_PRIVATE, fd, 0); in map_input()
/linux-4.1.27/drivers/sbus/char/
Dflash.c154 .mmap = flash_mmap,
/linux-4.1.27/sound/soc/blackfin/
DKconfig143 Say y if you want AC97 driver to support mmap mode.
144 We introduce an intermediate buffer to simulate mmap.
/linux-4.1.27/drivers/misc/cxl/
Dfile.c370 .mmap = afu_mmap,
381 .mmap = afu_mmap,
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
Dtrace.c24 tb = mmap(NULL, size, PROT_READ | PROT_WRITE, in trace_buffer_allocate()
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_fanout.c116 ring = mmap(0, req.tp_block_size * req.tp_block_nr, in sock_fanout_open_ring()
/linux-4.1.27/fs/reiserfs/
Dfile.c250 .mmap = generic_file_mmap,
/linux-4.1.27/firmware/
Dihex2fw.c110 data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0); in main()
/linux-4.1.27/drivers/media/usb/pwc/
Dphilips.txt65 buffers to reserve for mmap(), VIDIOCCGMBUF, VIDIOCMCAPTURE and friends.
70 grabbing with a tool that uses mmap(), you might want to increase if.
201 8 0x8 read(), mmap() and associated ioctl() calls Off

1234