/linux-4.1.27/tools/perf/util/ |
D | event.c | 304 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 …]
|
D | evlist.c | 109 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 …]
|
D | machine.c | 1049 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 …]
|
D | python.c | 87 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()
|
D | session.c | 269 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 …]
|
D | tool.h | 35 event_op mmap, member
|
D | zlib.c | 36 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/ |
D | tlb.c | 27 } 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/ |
D | aliasing.txt | 87 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 …]
|
D | aliasing-test.c | 45 addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); in map_mem()
|
/linux-4.1.27/Documentation/arm/ |
D | uefi.txt | 50 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.
|
D | memory.txt | 73 the mmap() system call. 88 must set up their own mappings using open() and mmap().
|
/linux-4.1.27/tools/testing/selftests/memfd/ |
D | memfd_test.c | 151 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()
|
D | fuse_test.c | 128 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/ |
D | hugetlb_vs_thp_test.c | 17 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 33 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
|
D | subpage_prot.c | 194 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, in test_file()
|
/linux-4.1.27/tools/perf/python/ |
D | twatch.py | 21 evsel = perf.evsel(task = 1, comm = 1, mmap = 0, 28 evlist.mmap()
|
/linux-4.1.27/fs/proc/ |
D | inode.c | 271 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/ |
D | sysfs-pci.txt | 42 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
|
D | mandatory-locking.txt | 25 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
|
D | dax.txt | 9 by a call to mmap. 60 - implementing an mmap file operation for DAX files which sets the
|
D | 9p.txt | 78 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/ |
D | efi.c | 217 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/ |
D | vfio.h | 43 int (*mmap)(void *device_data, struct vm_area_struct *vma); member 70 int (*mmap)(void *iommu_data, struct vm_area_struct *vma); member
|
D | host1x.h | 65 void *(*mmap)(struct host1x_bo *bo); member 104 return bo->ops->mmap(bo); in host1x_bo_mmap()
|
D | uio_driver.h | 104 int (*mmap)(struct uio_info *info, struct vm_area_struct *vma); member
|
D | posix-clock.h | 88 int (*mmap) (struct posix_clock *pc, member
|
D | dma-buf.h | 105 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma); member
|
D | mm_types.h | 342 struct vm_area_struct *mmap; /* list of VMAs */ member
|
/linux-4.1.27/Documentation/x86/ |
D | pat.txt | 62 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/ |
D | overcommit-accounting | 39 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
|
D | unevictable-lru.txt | 26 - 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 …]
|
D | hugetlbpage.txt | 13 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
|
D | remap_file_pages.txt | 4 over using repeated calls to mmap(2) is that the former approach does not
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
D | c2_qp.c | 426 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/ |
D | vfs_file.c | 645 .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/ |
D | Build | 9 perf-y += mmap-basic.o 26 perf-y += mmap-thread-lookup.o
|
D | hists_common.c | 103 .mmap = { in setup_fake_machine() 113 strcpy(fake_mmap_event.mmap.filename, in setup_fake_machine()
|
D | attr.c | 104 WRITE_ASS(mmap, "d"); in store_event()
|
D | perf-time-to-tsc.c | 85 pc = evlist->mmap[0].base; in test__perf_time_to_tsc()
|
D | rdpmc.c | 118 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); in __test__rdpmc()
|
D | mmap-thread-lookup.c | 32 map = mmap(NULL, page_size, in thread_init()
|
D | switch-tracking.c | 429 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/ |
D | file.c | 96 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 | .gitignore | 1 hugepage-mmap
|
D | transhuge-stress.c | 35 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()
|
D | Makefile | 4 BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
|
D | map_hugetlb.c | 65 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, 0, 0); in main()
|
D | hugepage-mmap.c | 75 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); in main()
|
D | run_vmtests | 42 ./hugepage-mmap
|
D | hugetlbfstest.c | 40 p = mmap(NULL, length, PROT_READ | PROT_WRITE, flags, fd, 0); in do_mmap()
|
D | thuge-gen.c | 146 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap()
|
/linux-4.1.27/tools/perf/ |
D | design.txt | 58 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().
|
D | builtin-inject.c | 358 inject->tool.mmap = perf_event__repipe_mmap; in __cmd_inject() 405 .mmap = perf_event__repipe, in cmd_inject()
|
D | builtin-script.c | 724 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()
|
D | builtin-record.c | 72 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/ |
D | mspec.c | 317 .mmap = fetchop_mmap, 329 .mmap = cached_mmap, 341 .mmap = uncached_mmap,
|
D | uv_mmtimer.c | 52 .mmap = uv_mmtimer_mmap,
|
D | mem.c | 729 .mmap = mmap_mem, 741 .mmap = mmap_kmem, 770 .mmap = mmap_zero,
|
/linux-4.1.27/fs/ufs/ |
D | file.c | 40 .mmap = generic_file_mmap,
|
/linux-4.1.27/fs/adfs/ |
D | file.c | 27 .mmap = generic_file_mmap,
|
/linux-4.1.27/fs/romfs/ |
D | Makefile | 10 romfs-$(CONFIG_ROMFS_ON_MTD) += mmap-nommu.o
|
D | mmap-nommu.c | 86 .mmap = romfs_mmap,
|
/linux-4.1.27/arch/arc/mm/ |
D | Makefile | 10 obj-y += tlb.o tlbex.o cache_arc700.o mmap.o
|
/linux-4.1.27/fs/ramfs/ |
D | file-mmu.c | 36 .mmap = generic_file_mmap,
|
D | file-nommu.c | 45 .mmap = ramfs_nommu_mmap,
|
/linux-4.1.27/arch/arm/vdso/ |
D | vdsomunge.c | 158 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/ |
D | Makefile | 6 mmap.o homecache.o migrate_$(BITS).o
|
D | elf.c | 64 for (vma = current->mm->mmap; ; vma = vma->vm_next) { in notify_exec()
|
/linux-4.1.27/tools/perf/tests/attr/ |
D | test-record-group | 17 mmap=0
|
D | test-record-group1 | 18 mmap=0
|
D | base-stat | 21 mmap=0
|
D | base-record | 21 mmap=1
|
D | test-record-group-sampling | 26 mmap=0
|
/linux-4.1.27/fs/kernfs/ |
D | file.c | 488 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/ |
D | Makefile | 7 ecryptfs-y := dentry.o file.o inode.o main.o super.o mmap.o read_write.o \
|
D | kthread.c | 174 if ((*lower_file)->f_op->mmap == NULL) { in ecryptfs_privileged_open()
|
/linux-4.1.27/fs/ncpfs/ |
D | Makefile | 7 ncpfs-y := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
|
/linux-4.1.27/arch/arm64/mm/ |
D | Makefile | 3 ioremap.o mmap.o pgd.o mmu.o \
|
/linux-4.1.27/arch/s390/mm/ |
D | Makefile | 5 obj-y := init.o fault.o extmem.o mmap.o vmem.o pgtable.o maccess.o
|
/linux-4.1.27/arch/microblaze/kernel/ |
D | sys_microblaze.c | 36 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
|
D | dma.c | 186 .mmap = dma_direct_mmap_coherent,
|
/linux-4.1.27/Documentation/ |
D | nommu-mmap.txt | 7 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
|
D | dma-buf-sharing.txt | 336 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/ |
D | cfag12864b | 101 Also, you can mmap the framebuffer: open & mmap, munmap & close...
|
D | cfag12864b-example.c | 71 cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE, in cfag12864b_init()
|
/linux-4.1.27/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 53 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/ |
D | tcic.c | 737 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/ |
D | arc_hostlink.c | 44 .mmap = arc_hl_mmap,
|
/linux-4.1.27/Documentation/networking/ |
D | packet_mmap.txt | 5 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 …]
|
D | netlink_mmap.txt | 36 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/ |
D | file.c | 19 .mmap = generic_file_mmap,
|
/linux-4.1.27/fs/sysv/ |
D | file.c | 26 .mmap = generic_file_mmap,
|
/linux-4.1.27/arch/arm/mach-nspire/ |
D | nspire.c | 49 .mmap = nspire_clcd_mmap,
|
/linux-4.1.27/drivers/gpu/drm/tdfx/ |
D | tdfx_drv.c | 50 .mmap = drm_legacy_mmap,
|
/linux-4.1.27/fs/exofs/ |
D | file.c | 72 .mmap = generic_file_mmap,
|
/linux-4.1.27/tools/build/feature/ |
D | Makefile | 20 test-libelf-mmap.bin \ 75 test-libelf-mmap.bin:
|
/linux-4.1.27/fs/ext3/ |
D | file.c | 59 .mmap = generic_file_mmap,
|
/linux-4.1.27/drivers/gpu/drm/savage/ |
D | savage_drv.c | 43 .mmap = drm_legacy_mmap,
|
/linux-4.1.27/arch/unicore32/include/asm/ |
D | mmu_context.h | 76 mm->mmap = NULL; \
|
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/ |
D | osunixmap.c | 117 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, in acpi_os_map_memory()
|
/linux-4.1.27/drivers/gpu/drm/i810/ |
D | i810_drv.c | 50 .mmap = drm_legacy_mmap,
|
/linux-4.1.27/fs/ |
D | binfmt_aout.c | 223 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()
|
D | binfmt_em86.c | 41 !bprm->file->f_op->mmap) { in load_em86()
|
/linux-4.1.27/kernel/time/ |
D | posix-clock.c | 109 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/ |
D | file.c | 162 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/ |
D | xenstored.c | 50 .mmap = xsd_kva_mmap,
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | proc_powerpc.c | 58 .mmap = page_map_mmap
|
D | dma-swiotlb.c | 52 .mmap = dma_direct_mmap_coherent,
|
D | dma-iommu.c | 111 .mmap = dma_direct_mmap_coherent,
|
/linux-4.1.27/tools/testing/selftests/x86/ |
D | entry_from_vm86.c | 88 unsigned char *addr = mmap((void *)load_addr, 4096, in main()
|
/linux-4.1.27/include/sound/ |
D | hwdep.h | 46 int (*mmap)(struct snd_hwdep *hw, struct file *file, member
|
D | compress_driver.h | 126 int (*mmap)(struct snd_compr_stream *stream, member
|
D | info.h | 68 int (*mmap)(struct snd_info_entry *entry, void *file_private_data, member
|
/linux-4.1.27/fs/ocfs2/ |
D | Makefile | 29 mmap.o \
|
/linux-4.1.27/drivers/gpu/drm/r128/ |
D | r128_drv.c | 49 .mmap = drm_legacy_mmap,
|
/linux-4.1.27/scripts/basic/ |
D | fixdep.c | 298 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/ |
D | dma-buf.c | 93 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/ |
D | udlfb.txt | 44 * 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
|
D | tgafb.txt | 57 mmap(). Running the standard XF86_TGA server from XFree86 3.3.x works fine for
|
/linux-4.1.27/fs/cifs/ |
D | cifsfs.c | 918 .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/ |
D | sys.c | 89 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
|
/linux-4.1.27/arch/x86/mm/ |
D | Makefile | 1 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/ |
D | vmwgfx_prime.c | 115 .mmap = vmw_prime_dmabuf_mmap,
|
/linux-4.1.27/drivers/gpu/drm/mga/ |
D | mga_drv.c | 51 .mmap = drm_legacy_mmap,
|
/linux-4.1.27/drivers/xen/xenbus/ |
D | xenbus_dev_backend.c | 113 .mmap = xenbus_backend_mmap,
|
/linux-4.1.27/arch/x86/um/os-Linux/ |
D | task_size.c | 34 mapped = mmap(address, UM_KERN_PAGE_SIZE, in page_ok()
|
/linux-4.1.27/arch/parisc/kernel/ |
D | cache.c | 494 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/ |
D | Makefile | 9 obj-y := fault.o mem.o pgtable.o mmap.o \
|
D | tlb_hash32.c | 149 for (mp = mm->mmap; mp != NULL; mp = mp->vm_next) in flush_tlb_mm()
|
/linux-4.1.27/arch/mips/mm/ |
D | Makefile | 6 gup.o init.o mmap.o page.o page-funcs.o \
|
/linux-4.1.27/drivers/gpu/drm/via/ |
D | via_drv.c | 65 .mmap = drm_legacy_mmap,
|
/linux-4.1.27/tools/testing/selftests/powerpc/primitives/ |
D | load_unaligned_zeropad.c | 124 mem_region = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE, in test_body()
|
/linux-4.1.27/fs/ext2/ |
D | file.c | 102 .mmap = ext2_file_mmap,
|
/linux-4.1.27/arch/um/drivers/ |
D | mmapper_kern.c | 87 .mmap = mmapper_mmap,
|
/linux-4.1.27/mm/ |
D | nommu.c | 846 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()
|
D | mmap.c | 440 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 …]
|
D | Makefile | 10 mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
|
D | debug.c | 201 mm, mm->mmap, mm->vmacache_seqnum, mm->task_size, in dump_mm()
|
/linux-4.1.27/drivers/gpu/drm/sis/ |
D | sis_drv.c | 73 .mmap = drm_legacy_mmap,
|
/linux-4.1.27/drivers/gpu/drm/udl/ |
D | udl_drv.c | 28 .mmap = udl_drm_gem_mmap,
|
/linux-4.1.27/sound/core/ |
D | hwdep.c | 265 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/ |
D | file.c | 132 .mmap = visorchipset_mmap,
|
/linux-4.1.27/drivers/gpu/drm/mgag200/ |
D | mgag200_drv.c | 82 .mmap = mgag200_mmap,
|
/linux-4.1.27/sound/arm/ |
D | pxa2xx-pcm.c | 86 .mmap = pxa2xx_pcm_mmap,
|
/linux-4.1.27/include/asm-generic/ |
D | dma-mapping-common.h | 215 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/ |
D | vfio.c | 1048 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/ |
D | book3s_64_vio.c | 96 .mmap = kvm_spapr_tce_mmap,
|
/linux-4.1.27/arch/arm/mach-netx/ |
D | nxeb500hmi.c | 99 .mmap = netx_clcd_mmap,
|
D | nxdb500.c | 96 .mmap = netx_clcd_mmap,
|
/linux-4.1.27/sound/soc/pxa/ |
D | pxa2xx-pcm.c | 89 .mmap = pxa2xx_pcm_mmap,
|
D | mmp-pcm.c | 141 .mmap = mmp_pcm_mmap,
|
/linux-4.1.27/fs/nilfs2/ |
D | file.c | 152 .mmap = nilfs_file_mmap,
|
/linux-4.1.27/sound/oss/ |
D | soundcard.c | 482 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/ |
D | mem.c | 190 addr = mmap(NULL, UM_KERN_PAGE_SIZE, in check_tmpexec()
|
/linux-4.1.27/crypto/ |
D | algif_rng.c | 105 .mmap = sock_no_mmap,
|
D | algif_hash.c | 225 .mmap = sock_no_mmap, 333 .mmap = sock_no_mmap,
|
/linux-4.1.27/tools/power/cpupower/debug/i386/ |
D | dump_psb.c | 184 mem = mmap(mem, 0x100000 - 0xc0000, PROT_READ, MAP_SHARED, fd, 0xc0000); in main()
|
/linux-4.1.27/include/linux/raid/ |
D | pq.h | 156 # define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
|
/linux-4.1.27/Documentation/video4linux/ |
D | meye.txt | 101 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/ |
D | Makefile | 5 obj-y := alignment.o cache.o init.o consistent.o mmap.o
|
/linux-4.1.27/drivers/gpu/drm/cirrus/ |
D | cirrus_drv.c | 126 .mmap = cirrus_mmap,
|
/linux-4.1.27/sound/firewire/dice/ |
D | dice-pcm.c | 383 .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/ |
D | videobuf2-vmalloc.c | 363 .mmap = vb2_vmalloc_dmabuf_ops_mmap, 457 .mmap = vb2_vmalloc_mmap,
|
/linux-4.1.27/net/nfc/ |
D | rawsock.c | 295 .mmap = sock_no_mmap, 315 .mmap = sock_no_mmap,
|
/linux-4.1.27/tools/perf/Documentation/ |
D | perf-trace.txt | 70 --mmap-pages=:: 71 Number of mmap data pages (must be a power of two) or size
|
D | perf-kvm.txt | 123 --mmap-pages=:: 124 Number of mmap data pages (must be a power of two) or size
|
D | perf-top.txt | 69 --mmap-pages=<pages>:: 70 Number of mmap data pages (must be a power of two) or size
|
/linux-4.1.27/include/media/ |
D | v4l2-dev.h | 74 int (*mmap) (struct file *, struct vm_area_struct *); member
|
/linux-4.1.27/fs/jfs/ |
D | file.c | 156 .mmap = generic_file_mmap,
|
/linux-4.1.27/net/atm/ |
D | pvc.c | 127 .mmap = sock_no_mmap,
|
/linux-4.1.27/fs/nfs/ |
D | nfs4file.c | 175 .mmap = nfs_file_mmap,
|
/linux-4.1.27/arch/x86/kernel/ |
D | sys_x86_64.c | 86 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
|
/linux-4.1.27/tools/build/ |
D | Makefile.feature | 42 libelf-mmap \
|
/linux-4.1.27/drivers/gpu/drm/bochs/ |
D | bochs_drv.c | 78 .mmap = bochs_mmap,
|
/linux-4.1.27/drivers/gpu/drm/ast/ |
D | ast_drv.c | 189 .mmap = ast_mmap,
|
/linux-4.1.27/sound/firewire/oxfw/ |
D | oxfw-pcm.c | 392 .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/ |
D | amba-clcd.c | 413 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/ |
D | mmu-layout.txt | 194 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/ |
D | omapfb.h | 174 int (*mmap) (struct fb_info *info, member
|
/linux-4.1.27/arch/arm/mach-lpc32xx/ |
D | phy3250.c | 154 .mmap = lpc32xx_clcd_mmap,
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 168 .mmap = omap_gem_dmabuf_mmap,
|
/linux-4.1.27/fs/jffs2/ |
D | TODO | 6 do shared writable mmap, if we can have a fs hook for do_wp_page() to
|
/linux-4.1.27/fs/bfs/ |
D | file.c | 28 .mmap = generic_file_mmap,
|
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/ |
D | file.c | 364 .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/ |
D | process.c | 211 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/ |
D | uio.c | 691 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/ |
D | sock.c | 189 .mmap = sock_no_mmap
|
/linux-4.1.27/sound/soc/omap/ |
D | omap-pcm.c | 173 .mmap = omap_pcm_mmap,
|
/linux-4.1.27/arch/arm/mach-integrator/ |
D | integrator_cp.c | 220 .mmap = versatile_clcd_mmap_dma,
|
/linux-4.1.27/net/bluetooth/bnep/ |
D | sock.c | 186 .mmap = sock_no_mmap
|
/linux-4.1.27/arch/x86/vdso/ |
D | vdso2c.c | 198 *addr = mmap(NULL, tmp_len, prot, MAP_PRIVATE, fd, 0); in map_input()
|
/linux-4.1.27/drivers/sbus/char/ |
D | flash.c | 154 .mmap = flash_mmap,
|
/linux-4.1.27/sound/soc/blackfin/ |
D | Kconfig | 143 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/ |
D | file.c | 370 .mmap = afu_mmap, 381 .mmap = afu_mmap,
|
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/ |
D | trace.c | 24 tb = mmap(NULL, size, PROT_READ | PROT_WRITE, in trace_buffer_allocate()
|
/linux-4.1.27/tools/testing/selftests/net/ |
D | psock_fanout.c | 116 ring = mmap(0, req.tp_block_size * req.tp_block_nr, in sock_fanout_open_ring()
|
/linux-4.1.27/fs/reiserfs/ |
D | file.c | 250 .mmap = generic_file_mmap,
|
/linux-4.1.27/firmware/ |
D | ihex2fw.c | 110 data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0); in main()
|
/linux-4.1.27/drivers/media/usb/pwc/ |
D | philips.txt | 65 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
|