Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 780) sorted by relevance

12345678910>>...32

/Linux-v4.19/tools/perf/arch/x86/util/
Devent.c21 union perf_event *event = zalloc(sizeof(event->mmap) + in perf_event__synthesize_extra_kmaps()
39 size = sizeof(event->mmap) - sizeof(event->mmap.filename) + in perf_event__synthesize_extra_kmaps()
45 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_extra_kmaps()
56 event->mmap.header.size = size; in perf_event__synthesize_extra_kmaps()
58 event->mmap.start = pos->start; in perf_event__synthesize_extra_kmaps()
59 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_extra_kmaps()
60 event->mmap.pgoff = pos->pgoff; in perf_event__synthesize_extra_kmaps()
61 event->mmap.pid = machine->pid; in perf_event__synthesize_extra_kmaps()
63 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps()
/Linux-v4.19/Documentation/media/uapi/dvb/
Ddmx-munmap.rst32 :ref:`mmap() <dmx-mmap>` function.
36 :ref:`mmap() <dmx-mmap>`.
42 Unmaps a previously with the :ref:`mmap() <dmx-mmap>` function mapped
Ddmx-mmap.rst1 .. _dmx-mmap:
4 Digital TV mmap()
10 dmx-mmap - Map device memory into application address space
23 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset )
24 :name: dmx-mmap
32 multiple of the pagesize and mmap will fail when the specified
55 :ref:`mmap() <dmx-mmap>` will fail. If ``MAP_FIXED`` is specified,
80 The :ref:`mmap() <dmx-mmap>` function asks to map ``length`` bytes starting at
95 On success :ref:`mmap() <dmx-mmap>` returns a pointer to the mapped buffer. On
/Linux-v4.19/Documentation/devicetree/bindings/arm/
Dxen.txt29 xen,uefi-mmap-start | 64-bit | Guest physical address of the UEFI memory
32 xen,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map
35 xen,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI
38 xen,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format.
49 xen,uefi-mmap-start = <0xXXXXXXXX>;
50 xen,uefi-mmap-size = <0xXXXXXXXX>;
51 xen,uefi-mmap-desc-size = <0xXXXXXXXX>;
52 xen,uefi-mmap-desc-ver = <0xXXXXXXXX>;
/Linux-v4.19/Documentation/media/uapi/v4l/
Dfunc-munmap.rst32 :ref:`mmap() <func-mmap>` function.
36 :ref:`mmap() <func-mmap>` and returned by the driver in the struct
46 Unmaps a previously with the :ref:`mmap() <func-mmap>` function mapped
Dfunc-mmap.rst3 .. _func-mmap:
6 V4L2 mmap()
12 v4l2-mmap - Map device memory into application address space
24 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset )
25 :name: v4l2-mmap
33 multiple of the pagesize and mmap will fail when the specified
57 :ref:`mmap() <func-mmap>` function fails.
73 :ref:`mmap() <func-mmap>` will fail. If ``MAP_FIXED`` is specified,
104 The :ref:`mmap() <func-mmap>` function asks to map ``length`` bytes starting at
120 On success :ref:`mmap() <func-mmap>` returns a pointer to the mapped buffer. On
Dmmap.rst38 address space with the :ref:`mmap() <func-mmap>` function. The
43 parameter to the :ref:`mmap() <func-mmap>` function. When using the
48 separately, so the number of calls to :ref:`mmap() <func-mmap>` should
74 printf("Video capturing or mmap-streaming is not supported\\n");
107 buffers[i].start = mmap(NULL, buffer.length,
115 perror("mmap");
148 printf("Video capturing or mmap-streaming is not supported\\n");
188 buffers[i].start[j] = mmap(NULL, buffer.m.planes[j].length,
196 perror("mmap");
261 and :ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` ioctls, the :ref:`mmap()
[all …]
/Linux-v4.19/arch/um/kernel/
Dtlb.c28 } mmap; member
71 ret = map(hvc->id, op->u.mmap.addr, op->u.mmap.len, in do_ops()
72 op->u.mmap.prot, op->u.mmap.fd, in do_ops()
73 op->u.mmap.offset, finished, &hvc->data); in do_ops()
109 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
110 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap()
111 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap()
112 last->u.mmap.len += len; in add_mmap()
124 .u = { .mmap = { .addr = virt, in add_mmap()
145 (last->u.munmap.addr + last->u.mmap.len == addr)) { in add_munmap()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/tools/perf/util/
Devent.c440 event->mmap2.len -= event->mmap.start; in perf_event__synthesize_mmap_events()
468 union perf_event *event = zalloc((sizeof(event->mmap) + in perf_event__synthesize_modules()
494 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_modules()
495 event->mmap.header.size = (sizeof(event->mmap) - in perf_event__synthesize_modules()
496 (sizeof(event->mmap.filename) - size)); in perf_event__synthesize_modules()
497 memset(event->mmap.filename + size, 0, machine->id_hdr_size); in perf_event__synthesize_modules()
498 event->mmap.header.size += machine->id_hdr_size; in perf_event__synthesize_modules()
499 event->mmap.start = pos->start; in perf_event__synthesize_modules()
500 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_modules()
501 event->mmap.pid = machine->pid; in perf_event__synthesize_modules()
[all …]
Dmachine.c1434 is_entry_trampoline(event->mmap.filename); in perf_event__is_extra_kernel_mmap()
1443 .start = event->mmap.start, in machine__process_extra_kernel_map()
1444 .end = event->mmap.start + event->mmap.len, in machine__process_extra_kernel_map()
1445 .pgoff = event->mmap.pgoff, in machine__process_extra_kernel_map()
1451 strlcpy(xm.name, event->mmap.filename, KMAP_NAME_LEN); in machine__process_extra_kernel_map()
1472 is_kernel_mmap = memcmp(event->mmap.filename, in machine__process_kernel_mmap_event()
1475 if (event->mmap.filename[0] == '/' || in machine__process_kernel_mmap_event()
1476 (!is_kernel_mmap && event->mmap.filename[0] == '[')) { in machine__process_kernel_mmap_event()
1477 map = machine__findnew_module_map(machine, event->mmap.start, in machine__process_kernel_mmap_event()
1478 event->mmap.filename); in machine__process_kernel_mmap_event()
[all …]
/Linux-v4.19/tools/testing/selftests/vm/
Dvirtual_address_range.c88 ptr = mmap((void *) (1UL << 45), MAP_CHUNK_SIZE, PROT_READ | in validate_lower_address_hint()
105 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
121 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
Dmlock2-tests.c298 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock()
407 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault()
450 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present()
497 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall()
523 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall()
578 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management()
Dmap_populate.c57 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f()
87 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main()
/Linux-v4.19/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.
/Linux-v4.19/Documentation/mic/
Dscif_overview.txt18 6. Remote memory mapping for low latency CPU accesses via mmap
28 DMA, CPU copies or remote memory mapping via mmap. SCIF supports both user and
60 SCIF allows memory sharing via mmap(..) between processes on different PCIe
61 nodes and thus provides bare-metal PCIe latency. The round trip SCIF mmap
93 mmap(..) mmap(..)
/Linux-v4.19/tools/testing/selftests/memfd/
Dmemfd_test.c159 p = mmap(NULL, in mfd_assert_mmap_shared()
177 p = mmap(NULL, in mfd_assert_mmap_private()
232 p = mmap(NULL, in mfd_assert_read()
245 p = mmap(NULL, in mfd_assert_read()
278 p = mmap(NULL, in mfd_assert_write()
292 p = mmap(NULL, in mfd_assert_write()
307 p = mmap(NULL, in mfd_assert_write()
352 p = mmap(NULL, in mfd_fail_write()
364 p = mmap(NULL, in mfd_fail_write()
377 p = mmap(NULL, in mfd_fail_write()
/Linux-v4.19/tools/testing/selftests/powerpc/mm/
Dhugetlb_vs_thp_test.c18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
/Linux-v4.19/drivers/vfio/mdev/
Dvfio_mdev.c98 if (unlikely(!parent->ops->mmap)) in vfio_mdev_mmap()
101 return parent->ops->mmap(mdev, vma); in vfio_mdev_mmap()
111 .mmap = vfio_mdev_mmap,
/Linux-v4.19/tools/perf/python/
Dtwatch.py23 task = 1, comm = 1, mmap = 0, freq = 0,
38 evlist.mmap()
/Linux-v4.19/fs/proc/
Dinode.c299 int (*mmap)(struct file *, struct vm_area_struct *); in proc_reg_mmap() local
301 mmap = pde->proc_fops->mmap; in proc_reg_mmap()
302 if (mmap) in proc_reg_mmap()
303 rv = mmap(file, vma); in proc_reg_mmap()
412 .mmap = proc_reg_mmap,
425 .mmap = proc_reg_mmap,
/Linux-v4.19/Documentation/filesystems/
Dsysfs-pci.txt43 resource0..N PCI resource N, if present (binary, mmap, rw[1])
44 resource0_wc..N_wc PCI WC map resource N, if prefetchable (binary, mmap)
54 mmap - file is mmapable
64 mmapable files are available via an mmap of the file at offset 0 and can be
67 value from any attempted mmap. The most notable of these are I/O port
118 mmap() through files in /proc/bus/pci, platforms may also set HAVE_PCI_MMAP.
/Linux-v4.19/drivers/firmware/efi/
Darm-init.c240 data.phys_map = params.mmap; in efi_init()
263 memblock_reserve(params.mmap & PAGE_MASK, in efi_init()
265 (params.mmap & ~PAGE_MASK))); in efi_init()
/Linux-v4.19/Documentation/vm/
Dovercommit-accounting.rst46 guarantees and run close to the edge you MUST mmap your stack for the
68 | Pages made writable copies by mmap
74 * We account mmap memory mappings
/Linux-v4.19/fs/9p/
Dvfs_file.c646 .mmap = v9fs_file_mmap,
658 .mmap = v9fs_file_mmap,
669 .mmap = generic_file_readonly_mmap,
681 .mmap = generic_file_readonly_mmap,
692 .mmap = v9fs_mmap_file_mmap,
704 .mmap = v9fs_mmap_file_mmap,

12345678910>>...32