/linux-4.4.14/fs/romfs/ |
H A D | Makefile | 10 romfs-$(CONFIG_ROMFS_ON_MTD) += mmap-nommu.o
|
H A D | mmap-nommu.c | 1 /* NOMMU mmap support for RomFS on MTD devices 86 .mmap = romfs_mmap,
|
H A D | internal.h | 31 * mmap-nommu.c
|
/linux-4.4.14/arch/tile/mm/ |
H A D | Makefile | 6 mmap.o homecache.o migrate_$(BITS).o
|
H A D | mmap.c | 25 * Top of mmap area (just below the process stack).
|
H A D | elf.c | 64 for (vma = current->mm->mmap; ; vma = vma->vm_next) { notify_exec()
|
/linux-4.4.14/fs/ecryptfs/ |
H A D | Makefile | 7 ecryptfs-y := dentry.o file.o inode.o main.o super.o mmap.o read_write.o \
|
/linux-4.4.14/arch/mn10300/include/uapi/asm/ |
H A D | mman.h | 3 #define MIN_MAP_ADDR PAGE_SIZE /* minimum fixed mmap address */
|
/linux-4.4.14/arch/arm64/mm/ |
H A D | Makefile | 3 ioremap.o mmap.o pgd.o mmu.o \
|
H A D | mmap.c | 2 * Based on arch/arm/mm/mmap.c 33 * Leave enough space between the mmap area and the stack to honour ulimit in
|
/linux-4.4.14/arch/s390/mm/ |
H A D | Makefile | 5 obj-y := init.o fault.o extmem.o mmap.o vmem.o pgtable.o maccess.o
|
H A D | mmap.c | 2 * flexible mmap layout support 44 * Top of mmap area (just below the process stack). 154 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown() 156 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
|
/linux-4.4.14/tools/testing/selftests/powerpc/mm/ |
H A D | hugetlb_vs_thp_test.c | 17 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, test_body() 21 * Typically the mmap will fail because no huge pages are test_body() 23 * allocated the mmap will succeed. That's fine too, we just test_body() 33 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, test_body() 37 perror("mmap"); test_body()
|
/linux-4.4.14/tools/testing/selftests/vm/ |
H A D | on-fault-limit.c | 28 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, test_limit() 31 printf("mmap should have failed, but didn't\n"); test_limit()
|
H A D | Makefile | 5 BINARIES += hugepage-mmap
|
H A D | hugepage-mmap.c | 2 * hugepage-mmap: 4 * Example of using huge page memory in a user application using the mmap 75 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); main() 77 perror("mmap"); main()
|
H A D | map_hugetlb.c | 2 * Example of using hugepage memory in a user application using the mmap 65 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, 0, 0); main() 67 perror("mmap"); main()
|
H A D | transhuge-stress.c | 35 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, allocate_transhuge() 38 errx(2, "mmap transhuge"); allocate_transhuge() 89 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, main() 92 err(2, "initial mmap"); main()
|
H A D | mlock2-tests.c | 356 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_mlock_lock() 359 perror("test_mlock_locked mmap"); test_mlock_lock() 465 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_mlock_onfault() 468 perror("test_mlock_locked mmap"); test_mlock_onfault() 508 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_lock_onfault_of_present() 511 perror("test_mlock_locked mmap"); test_lock_onfault_of_present() 555 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_munlockall() 559 perror("test_munlockall mmap"); test_munlockall() 581 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_munlockall() 585 perror("test_munlockall second mmap"); test_munlockall() 636 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, test_vma_management() 639 perror("mmap()"); test_vma_management()
|
H A D | thuge-gen.c | 1 /* Test selecting other page sizes for mmap/shmget. 146 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, test_mmap() 149 if (map == (char *)-1) err("mmap"); test_mmap() 235 printf("Testing %luMB mmap with shift %x\n", ps >> 20, arg); main() 238 printf("Testing default huge mmap\n"); main()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
H A D | Makefile | 11 init.o intr.o keys.o mad.o mmap.o mr.o pcie.o pio.o pio_copy.o \
|
H A D | mmap.c | 61 * hfi1_release_mmap_info - free mmap info structure 102 * hfi1_mmap - create a new mmap region 103 * @context: the IB user context of the process making the mmap() call 105 * Return zero if the mmap is OK. Otherwise, return an errno. 116 * Search the device's list of objects waiting for a mmap call. hfi1_mmap() 118 * CQ, QP, or SRQ is soon followed by a call to mmap(). hfi1_mmap() 123 /* Only the creator is allowed to mmap the object */ hfi1_mmap() 126 /* Don't allow a mmap larger than the object. */ hfi1_mmap()
|
H A D | srq.c | 160 * Return the address of the RWQ as the offset to mmap. hfi1_create_srq() 258 /* Check that we can write the offset to mmap. */ hfi1_modify_srq() 330 * Return the offset to mmap. hfi1_modify_srq()
|
H A D | cq.c | 259 * We need to use vmalloc() in order to support mmap and large hfi1_create_cq() 274 * Return the address of the WC as the offset to mmap. hfi1_create_cq() 433 /* Check that we can write the offset to mmap. */ hfi1_resize_cq() 487 * Return the offset to mmap. hfi1_resize_cq()
|
/linux-4.4.14/arch/arc/kernel/ |
H A D | arc_hostlink.c | 28 pr_warn("Hostlink buffer mmap ERROR\n"); arc_hl_mmap() 37 /* we only support, returning the physical addr to mmap in user space */ arc_hl_ioctl() 44 .mmap = arc_hl_mmap, 55 pr_info("ARC Hostlink driver mmap at 0x%p\n", __HOSTLINK__); arc_hl_init()
|
/linux-4.4.14/arch/arc/mm/ |
H A D | Makefile | 10 obj-y += tlb.o tlbex.o cache.o mmap.o
|
H A D | mmap.c | 2 * ARC700 mmap
|
/linux-4.4.14/fs/ncpfs/ |
H A D | Makefile | 7 ncpfs-y := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
|
H A D | mmap.c | 2 * mmap.c 26 * Fill in the supplied page for mmap 103 /* This is used for a general mmap of a ncp file */ ncp_mmap()
|
H A D | ncp_fs.h | 94 /* linux/fs/ncpfs/mmap.c */
|
/linux-4.4.14/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 152 p = mmap(NULL, mfd_assert_mmap_shared() 159 printf("mmap() failed: %m\n"); mfd_assert_mmap_shared() 170 p = mmap(NULL, mfd_assert_mmap_private() 177 printf("mmap() failed: %m\n"); mfd_assert_mmap_private() 225 p = mmap(NULL, mfd_assert_read() 232 printf("mmap() failed: %m\n"); mfd_assert_read() 238 p = mmap(NULL, mfd_assert_read() 245 printf("mmap() failed: %m\n"); mfd_assert_read() 265 p = mmap(NULL, mfd_assert_write() 272 printf("mmap() failed: %m\n"); mfd_assert_write() 279 p = mmap(NULL, mfd_assert_write() 286 printf("mmap() failed: %m\n"); mfd_assert_write() 294 p = mmap(NULL, mfd_assert_write() 301 printf("mmap() failed: %m\n"); mfd_assert_write() 339 p = mmap(NULL, mfd_fail_write() 346 printf("mmap() didn't fail as expected\n"); mfd_fail_write() 351 p = mmap(NULL, mfd_fail_write() 358 printf("mmap() didn't fail as expected\n"); mfd_fail_write() 363 * allowed. Note that for r/w the kernel already prevents the mmap. */ mfd_fail_write() 364 p = mmap(NULL, mfd_fail_write() 373 printf("mmap()+mprotect() didn't fail as expected\n"); mfd_fail_write() 768 * Test sealing with active mmap()s 769 * Modifying seals is only allowed if no other mmap() refs exist.
|
H A D | fuse_test.c | 128 p = mmap(NULL, mfd_assert_mmap_shared() 135 printf("mmap() failed: %m\n"); mfd_assert_mmap_shared() 146 p = mmap(NULL, mfd_assert_mmap_private() 153 printf("mmap() failed: %m\n"); mfd_assert_mmap_private() 254 /* mmap memfd-object for writing */ main()
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
H A D | ipath_mmap.c | 43 * ipath_release_mmap_info - free mmap info structure 84 * ipath_mmap - create a new mmap region 85 * @context: the IB user context of the process making the mmap() call 87 * Return zero if the mmap is OK. Otherwise, return an errno. 98 * Search the device's list of objects waiting for a mmap call. ipath_mmap() 100 * CQ, QP, or SRQ is soon followed by a call to mmap(). ipath_mmap() 105 /* Only the creator is allowed to mmap the object */ ipath_mmap() 108 /* Don't allow a mmap larger than the object. */ ipath_mmap()
|
H A D | ipath_debug.h | 58 /* print mmap/fault stuff, not using VDBG any more */ 85 /* print mmap/fault stuff, not using VDBG any more */
|
H A D | ipath_srq.c | 146 * Return the address of the RWQ as the offset to mmap. ipath_create_srq() 245 /* Check that we can write the offset to mmap. */ ipath_modify_srq() 317 * Return the offset to mmap. ipath_modify_srq()
|
H A D | ipath_cq.c | 231 * We need to use vmalloc() in order to support mmap and large ipath_create_cq() 246 * Return the address of the WC as the offset to mmap. ipath_create_cq() 404 /* Check that we can write the offset to mmap. */ ipath_resize_cq() 458 * Return the offset to mmap. ipath_resize_cq()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
H A D | qib_mmap.c | 43 * qib_release_mmap_info - free mmap info structure 84 * qib_mmap - create a new mmap region 85 * @context: the IB user context of the process making the mmap() call 87 * Return zero if the mmap is OK. Otherwise, return an errno. 98 * Search the device's list of objects waiting for a mmap call. qib_mmap() 100 * CQ, QP, or SRQ is soon followed by a call to mmap(). qib_mmap() 105 /* Only the creator is allowed to mmap the object */ qib_mmap() 108 /* Don't allow a mmap larger than the object. */ qib_mmap()
|
H A D | qib_srq.c | 143 * Return the address of the RWQ as the offset to mmap. qib_create_srq() 241 /* Check that we can write the offset to mmap. */ qib_modify_srq() 313 * Return the offset to mmap. qib_modify_srq()
|
H A D | qib_cq.c | 246 * We need to use vmalloc() in order to support mmap and large qib_create_cq() 261 * Return the address of the WC as the offset to mmap. qib_create_cq() 420 /* Check that we can write the offset to mmap. */ qib_resize_cq() 474 * Return the offset to mmap. qib_resize_cq()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | pci.h | 37 #define PCIIOC_MMAP_IS_IO (PCIIOC_BASE | 0x01) /* Set mmap state to I/O space. */ 38 #define PCIIOC_MMAP_IS_MEM (PCIIOC_BASE | 0x02) /* Set mmap state to MEM space. */
|
H A D | mmtimer.h | 42 * Returns nonzero if the registers can be mmap'd into userspace, 0 otherwise
|
H A D | perf_event.h | 307 mmap : 1, /* include mmap data */ member in struct:perf_event_attr 325 mmap_data : 1, /* non-exec mmap data */ 333 mmap2 : 1, /* include mmap with inode data */ 404 * Structure of the page that can be mapped via mmap 527 * Control data for the mmap() data buffer. 553 * prior to mmap()ing it. Size of the mmap()ed area should be aux_size.
|
H A D | agpgart.h | 82 int prot; /* prot flags for mmap */
|
/linux-4.4.14/fs/adfs/ |
H A D | file.c | 27 .mmap = generic_file_mmap,
|
/linux-4.4.14/fs/ocfs2/ |
H A D | Makefile | 29 mmap.o \
|
H A D | mmap.c | 4 * mmap.c 6 * Code to deal with the mess that is clustered mmap. 42 #include "mmap.h"
|
/linux-4.4.14/arch/um/kernel/ |
H A D | tlb.c | 27 } mmap; member in union:host_vm_change::host_vm_op::__anon2956 70 ret = map(hvc->id, op->u.mmap.addr, op->u.mmap.len, do_ops() 71 op->u.mmap.prot, op->u.mmap.fd, do_ops() 72 op->u.mmap.offset, finished, &hvc->data); do_ops() 108 (last->u.mmap.addr + last->u.mmap.len == virt) && add_mmap() 109 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && add_mmap() 110 (last->u.mmap.offset + last->u.mmap.len == offset)) { add_mmap() 111 last->u.mmap.len += len; add_mmap() 123 .u = { .mmap = { .addr = virt, add_mmap() 144 (last->u.munmap.addr + last->u.mmap.len == addr)) { add_munmap() 541 struct vm_area_struct *vma = mm->mmap; flush_tlb_mm() 552 struct vm_area_struct *vma = mm->mmap; force_flush_all()
|
/linux-4.4.14/arch/x86/mm/ |
H A D | Makefile | 1 obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
|
H A D | mmap.c | 2 * Flexible mmap layout support 50 * Top of mmap area (just below the process stack).
|
H A D | hugetlbpage.c | 108 * A failed mmap() very likely causes application failure, hugetlb_get_unmapped_area_topdown() 110 * can happen with large stack limits and large mmap() hugetlb_get_unmapped_area_topdown()
|
/linux-4.4.14/fs/minix/ |
H A D | file.c | 19 .mmap = generic_file_mmap,
|
/linux-4.4.14/fs/ufs/ |
H A D | file.c | 40 .mmap = generic_file_mmap,
|
/linux-4.4.14/arch/powerpc/mm/ |
H A D | mmap.c | 2 * flexible mmap layout support 31 * Top of mmap area (just below the process stack). 36 * space our mmap start address by a further 1GB, otherwise there is a 37 * chance the mmap area will end up closer to the stack than our ulimit
|
H A D | Makefile | 9 obj-y := fault.o mem.o pgtable.o mmap.o \
|
/linux-4.4.14/tools/perf/util/ |
H A D | event.c | 331 event->mmap2.len -= event->mmap.start; perf_event__synthesize_mmap_events() 360 union perf_event *event = zalloc((sizeof(event->mmap) + perf_event__synthesize_modules() 363 pr_debug("Not enough memory synthesizing mmap event " perf_event__synthesize_modules() 386 event->mmap.header.type = PERF_RECORD_MMAP; perf_event__synthesize_modules() 387 event->mmap.header.size = (sizeof(event->mmap) - perf_event__synthesize_modules() 388 (sizeof(event->mmap.filename) - size)); perf_event__synthesize_modules() 389 memset(event->mmap.filename + size, 0, machine->id_hdr_size); perf_event__synthesize_modules() 390 event->mmap.header.size += machine->id_hdr_size; perf_event__synthesize_modules() 391 event->mmap.start = pos->start; perf_event__synthesize_modules() 392 event->mmap.len = pos->end - pos->start; perf_event__synthesize_modules() 393 event->mmap.pid = machine->pid; perf_event__synthesize_modules() 395 memcpy(event->mmap.filename, pos->dso->long_name, perf_event__synthesize_modules() 498 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); perf_event__synthesize_thread_map() 572 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); perf_event__synthesize_threads() 666 event = zalloc((sizeof(event->mmap) + machine->id_hdr_size)); perf_event__synthesize_kernel_mmap() 668 pr_debug("Not enough memory synthesizing mmap event " perf_event__synthesize_kernel_mmap() 685 size = snprintf(event->mmap.filename, sizeof(event->mmap.filename), perf_event__synthesize_kernel_mmap() 688 event->mmap.header.type = PERF_RECORD_MMAP; perf_event__synthesize_kernel_mmap() 689 event->mmap.header.size = (sizeof(event->mmap) - perf_event__synthesize_kernel_mmap() 690 (sizeof(event->mmap.filename) - size) + machine->id_hdr_size); perf_event__synthesize_kernel_mmap() 691 event->mmap.pgoff = kmap->ref_reloc_sym->addr; perf_event__synthesize_kernel_mmap() 692 event->mmap.start = map->start; perf_event__synthesize_kernel_mmap() 693 event->mmap.len = map->end - event->mmap.start; perf_event__synthesize_kernel_mmap() 694 event->mmap.pid = machine->pid; perf_event__synthesize_kernel_mmap() 765 event->mmap.pid, event->mmap.tid, event->mmap.start, perf_event__fprintf_mmap() 766 event->mmap.len, event->mmap.pgoff, perf_event__fprintf_mmap() 768 event->mmap.filename); perf_event__fprintf_mmap()
|
H A D | tool.h | 40 event_op mmap, member in struct:perf_tool
|
H A D | zlib.c | 36 ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0); gzip_decompress_to_file()
|
H A D | evlist.c | 111 zfree(&evlist->mmap); perf_evlist__exit() 499 * close the associated evlist->mmap[] entry. __perf_evlist__add_pollfd() 714 struct perf_mmap *md = &evlist->mmap[idx]; perf_evlist__mmap_read() 738 fprintf(stderr, "WARNING: failed to keep up with mmap data.\n"); perf_evlist__mmap_read() 754 * Event straddles the mmap boundary -- header should always perf_evlist__mmap_read() 788 atomic_inc(&evlist->mmap[idx].refcnt); perf_evlist__mmap_get() 793 BUG_ON(atomic_read(&evlist->mmap[idx].refcnt) == 0); perf_evlist__mmap_put() 795 if (atomic_dec_and_test(&evlist->mmap[idx].refcnt)) perf_evlist__mmap_put() 801 struct perf_mmap *md = &evlist->mmap[idx]; perf_evlist__mmap_consume() 843 if (evlist->mmap[idx].base != NULL) { __perf_evlist__munmap() 844 munmap(evlist->mmap[idx].base, evlist->mmap_len); __perf_evlist__munmap() 845 evlist->mmap[idx].base = NULL; __perf_evlist__munmap() 846 atomic_set(&evlist->mmap[idx].refcnt, 0); __perf_evlist__munmap() 848 auxtrace_mmap__munmap(&evlist->mmap[idx].auxtrace_mmap); __perf_evlist__munmap() 855 if (evlist->mmap == NULL) perf_evlist__munmap() 861 zfree(&evlist->mmap); perf_evlist__munmap() 869 evlist->mmap = zalloc(evlist->nr_mmaps * sizeof(struct perf_mmap)); perf_evlist__alloc_mmap() 870 return evlist->mmap != NULL ? 0 : -ENOMEM; perf_evlist__alloc_mmap() 895 atomic_set(&evlist->mmap[idx].refcnt, 2); __perf_evlist__mmap() 896 evlist->mmap[idx].prev = 0; __perf_evlist__mmap() 897 evlist->mmap[idx].mask = mp->mask; __perf_evlist__mmap() 898 evlist->mmap[idx].base = mmap(NULL, evlist->mmap_len, mp->prot, __perf_evlist__mmap() 900 if (evlist->mmap[idx].base == MAP_FAILED) { __perf_evlist__mmap() 901 pr_debug2("failed to mmap perf event ring buffer, error %d\n", __perf_evlist__mmap() 903 evlist->mmap[idx].base = NULL; __perf_evlist__mmap() 907 if (auxtrace_mmap__mmap(&evlist->mmap[idx].auxtrace_mmap, __perf_evlist__mmap() 908 &mp->auxtrace_mp, evlist->mmap[idx].base, fd)) __perf_evlist__mmap() 1078 pr_info("rounding mmap pages size to %lu bytes (%lu pages)\n", parse_pages_arg() 1140 if (evlist->mmap == NULL && perf_evlist__alloc_mmap(evlist) < 0) perf_evlist__mmap_ex() 1148 pr_debug("mmap size %zuB\n", evlist->mmap_len); perf_evlist__mmap_ex() 1714 "Hint:\tTry using a smaller -m/--mmap-pages value."); perf_evlist__strerror_mmap()
|
H A D | auxtrace.h | 147 * @mmap_addr: mmap address at which the buffer can be read 148 * @mmap_size: size of the mmap at @mmap_addr 236 * struct auxtrace_mmap - records an mmap of the auxtrace buffer. 242 * @idx: index of this mmap 243 * @tid: tid for a per-thread mmap (also set if there is only 1 tid on a per-cpu 244 * mmap) otherwise %0 245 * @cpu: cpu number for a per-cpu mmap otherwise %-1 263 * @prot: mmap memory protection 264 * @idx: index of this mmap 265 * @tid: tid for a per-thread mmap (also set if there is only 1 tid on a per-cpu 266 * mmap) otherwise %0 267 * @cpu: cpu number for a per-cpu mmap otherwise %-1 287 * @find_snapshot: find data to snapshot within auxtrace mmap 290 * @read_finish: called after reading from an auxtrace mmap
|
H A D | python.c | 65 static char pyrf_mmap_event__doc[] = PyDoc_STR("perf mmap event object."); 85 if (asprintf(&s, "{ type: mmap, pid: %u, tid: %u, start: %#" PRIx64 ", " pyrf_mmap_event__repr() 88 pevent->event.mmap.pid, pevent->event.mmap.tid, pyrf_mmap_event__repr() 89 pevent->event.mmap.start, pevent->event.mmap.len, pyrf_mmap_event__repr() 90 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { pyrf_mmap_event__repr() 576 "mmap", pyrf_evsel__init() 602 mmap = 0, pyrf_evsel__init() local 622 &mmap, &context_switch, &comm, &freq, &inherit_stat, pyrf_evsel__init() 645 attr.mmap = mmap; pyrf_evsel__init() 907 .ml_name = "mmap", 910 .ml_doc = PyDoc_STR("mmap the file descriptor table.")
|
H A D | machine.c | 1123 machine->vmlinux_maps[i]->start = event->mmap.start; machine__set_kernel_mmap_len() 1124 machine->vmlinux_maps[i]->end = (event->mmap.start + machine__set_kernel_mmap_len() 1125 event->mmap.len); machine__set_kernel_mmap_len() 1165 is_kernel_mmap = memcmp(event->mmap.filename, machine__process_kernel_mmap_event() 1168 if (event->mmap.filename[0] == '/' || machine__process_kernel_mmap_event() 1169 (!is_kernel_mmap && event->mmap.filename[0] == '[')) { machine__process_kernel_mmap_event() 1170 map = machine__findnew_module_map(machine, event->mmap.start, machine__process_kernel_mmap_event() 1171 event->mmap.filename); machine__process_kernel_mmap_event() 1175 map->end = map->start + event->mmap.len; machine__process_kernel_mmap_event() 1177 const char *symbol_name = (event->mmap.filename + machine__process_kernel_mmap_event() 1239 if (event->mmap.pgoff != 0) { machine__process_kernel_mmap_event() 1242 event->mmap.pgoff); machine__process_kernel_mmap_event() 1332 thread = machine__findnew_thread(machine, event->mmap.pid, machine__process_mmap_event() 1333 event->mmap.tid); machine__process_mmap_event() 1342 map = map__new(machine, event->mmap.start, machine__process_mmap_event() 1343 event->mmap.len, event->mmap.pgoff, machine__process_mmap_event() 1344 event->mmap.pid, 0, 0, 0, 0, 0, 0, machine__process_mmap_event() 1345 event->mmap.filename, machine__process_mmap_event()
|
H A D | session.c | 303 if (tool->mmap == NULL) perf_tool__fill_defaults() 304 tool->mmap = process_event_stub; perf_tool__fill_defaults() 383 event->mmap.pid = bswap_32(event->mmap.pid); perf_event__mmap_swap() 384 event->mmap.tid = bswap_32(event->mmap.tid); perf_event__mmap_swap() 385 event->mmap.start = bswap_64(event->mmap.start); perf_event__mmap_swap() 386 event->mmap.len = bswap_64(event->mmap.len); perf_event__mmap_swap() 387 event->mmap.pgoff = bswap_64(event->mmap.pgoff); perf_event__mmap_swap() 390 void *data = &event->mmap.filename; perf_event__mmap_swap() 969 pid = event->mmap.pid; machines__find_for_cpumode() 1078 return tool->mmap(tool, event, sample, machine); machines__deliver_event() 1164 /* setup for reading amidst mmap */ perf_session__process_user_event() 1176 /* setup for reading amidst mmap */ perf_session__process_user_event() 1546 * On 64bit we can mmap the data file in one go. No need for tiny mmap 1602 buf = mmap(NULL, mmap_size, mmap_prot, mmap_flags, fd, __perf_session__process_events() 1605 pr_err("failed to mmap file\n"); __perf_session__process_events()
|
/linux-4.4.14/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_gem.h | 36 /* drm driver mmap file operations */ 39 /* mmap a gem object to userspace. */
|
/linux-4.4.14/include/linux/ |
H A D | mman.h | 70 * Combine the mmap "prot" argument into "vm_flags" used internally. 82 * Combine the mmap "flags" argument into "vm_flags" used internally.
|
H A D | vfio.h | 30 * @mmap: Perform mmap(2) on a region of the device file descriptor 43 int (*mmap)(void *device_data, struct vm_area_struct *vma); member in struct:vfio_device_ops 70 int (*mmap)(void *iommu_data, struct vm_area_struct *vma); member in struct:vfio_iommu_driver_ops
|
H A D | uio_driver.h | 89 * @mmap: mmap operation for this uio device 104 int (*mmap)(struct uio_info *info, struct vm_area_struct *vma); member in struct:uio_info
|
H A D | posix-clock.h | 50 * @mmap: Optional character device mmap method 88 int (*mmap) (struct posix_clock *pc, member in struct:posix_clock_operations
|
H A D | stm.h | 52 * @sw_mmiosz: size of one channel's IO space, for mmap, optional 54 * @mmio_addr: mmap callback, optional
|
H A D | agpgart.h | 56 int prot; /* prot flags for mmap */
|
/linux-4.4.14/tools/perf/tests/ |
H A D | parse-no-sample-id-all.c | 63 * mmap events) do not have an id sample appended, and consequently logic 66 * attributes representing the selected events and one mmap event.
|
H A D | mmap-basic.c | 10 * then establish an mmap for a group of events that are created to monitor 13 * It will receive the events, using mmap, use its PERF_SAMPLE_ID generated 91 pr_debug("failed to mmap events: %d (%s)\n", errno, test__basic_mmap()
|
H A D | hists_common.c | 104 .mmap = { setup_fake_machine() 114 strcpy(fake_mmap_event.mmap.filename, setup_fake_machine()
|
H A D | perf-record.c | 85 * on all the fds) and then mmap them. test__PERF_RECORD() 132 * mmap the first fd on a given CPU and ask for events for the other test__PERF_RECORD() 133 * fds in the same CPU to be injected in the same mmap ring buffer test__PERF_RECORD() 235 mmap_filename = event->mmap.filename; test__PERF_RECORD()
|
H A D | mmap-thread-lookup.c | 32 map = mmap(NULL, page_size, thread_init() 37 perror("mmap failed"); thread_init()
|
H A D | sw-clock.c | 80 pr_debug("failed to mmap event: %d (%s)\n", errno, __test__sw_clock_freq()
|
H A D | task-exit.c | 99 pr_debug("failed to mmap events: %d (%s)\n", errno, test__task_exit()
|
/linux-4.4.14/arch/sh/mm/ |
H A D | mmap.c | 2 * arch/sh/mm/mmap.c 129 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown() 131 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
|
H A D | Makefile | 5 obj-y := alignment.o cache.o init.o consistent.o mmap.o
|
/linux-4.4.14/arch/tile/include/hv/ |
H A D | drv_uart_intf.h | 27 /** The mmap file offset (PA) of the UART MMIO region. */
|
H A D | drv_trio_intf.h | 88 /** The mmap file offset (PA) of the TRIO config region. */ 106 /** The mmap file offset (PA) of a scatter queue region. */ 120 /** The mmap file offset (PA) of a PIO region. */ 129 /** The mmap file offset (PA) of a push DMA region. */ 135 /** The mmap file offset (PA) of a pull DMA region. */ 146 /** The mmap file offset (PA) of a Mem-Map interrupt region. */
|
/linux-4.4.14/arch/um/kernel/skas/ |
H A D | clone.c | 46 * child: retcode of mmap already saved and it jumps around this stub_clone_handler()
|
/linux-4.4.14/fs/coda/ |
H A D | file.c | 96 if (!host_file->f_op->mmap) coda_file_mmap() 120 return host_file->f_op->mmap(host_file, vma); coda_file_mmap() 174 /* did we mmap this file? */ coda_release() 224 .mmap = coda_file_mmap,
|
/linux-4.4.14/fs/ramfs/ |
H A D | file-mmu.c | 36 .mmap = generic_file_mmap,
|
H A D | file-nommu.c | 45 .mmap = ramfs_nommu_mmap, 63 * size 0 on the assumption that it's going to be used for an mmap of shared 141 * shared mmap */ ramfs_nommu_resize()
|
/linux-4.4.14/fs/sysv/ |
H A D | file.c | 26 .mmap = generic_file_mmap,
|
/linux-4.4.14/include/media/ |
H A D | videobuf-vmalloc.h | 28 * after mmap() on some cases */
|
H A D | videobuf-core.h | 38 * about the mmap helpers (videobuf_mmap_*): 41 * This includes one mmap() call for all buffers (which the original 42 * video4linux API uses) as well as one mmap() for every single buffer 91 /* buffer offset (mmap + overlay) */ 97 /* for mmap'ed buffers */ 154 /* capture via mmap() + ioctl(QBUF/DQBUF) */
|
H A D | videobuf-dma-sg.h | 73 /* for mmap'ed buffers */
|
/linux-4.4.14/arch/arm/mm/ |
H A D | mmap.c | 2 * linux/arch/arm/mm/mmap.c 18 /* gap between mmap and stack */ 156 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown() 158 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
|
H A D | Makefile | 9 mmap.o pgd.o mmu.o pageattr.o
|
/linux-4.4.14/drivers/xen/xenfs/ |
H A D | xenstored.c | 50 .mmap = xsd_kva_mmap,
|
/linux-4.4.14/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 53 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, check_error_paths() 56 err("mmap() failed: %m\n"); check_error_paths() 60 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, check_error_paths() 63 err("mmap() failed: %m\n"); check_error_paths()
|
/linux-4.4.14/include/uapi/xen/ |
H A D | gntalloc.h | 30 /* The offset to be used on a subsequent call to mmap(). */ 68 * used in mmap). If using UNMAP_NOTIFY_CLEAR_BYTE, this is the byte to
|
H A D | gntdev.h | 48 * until mmap() is called with @index as the offset. 58 /* The offset to be used on a subsequent call to mmap(). */ 100 /* The offset that was used in the initial mmap() operation. */ 136 * used in mmap). If using UNMAP_NOTIFY_CLEAR_BYTE, this is the byte to
|
/linux-4.4.14/tools/perf/arch/x86/tests/ |
H A D | intel-cqm.c | 104 event = mmap(NULL, mmap_len, PROT_READ, MAP_SHARED, fd[0], 0); test__intel_cqm_count_nmi_context() 106 pr_debug("failed to mmap %d\n", errno); test__intel_cqm_count_nmi_context()
|
H A D | rdpmc.c | 117 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); __test__rdpmc() 119 pr_err("Error: mmap() syscall returned with (%s)\n", __test__rdpmc()
|
/linux-4.4.14/tools/perf/python/ |
H A D | twatch.py | 23 task = 1, comm = 1, mmap = 0, freq = 0, 38 evlist.mmap()
|
/linux-4.4.14/tools/testing/selftests/futex/functional/ |
H A D | futex_wait_uninitialized_heap.c | 94 buf = mmap(NULL, page_size, PROT_READ|PROT_WRITE, main() 97 error("mmap\n", errno); main()
|
/linux-4.4.14/include/sound/ |
H A D | compress_driver.h | 41 * @buffer: pointer to kernel buffer, valid only when not in mmap mode or 103 * Can't be implemented if DSP supports mmap 104 * @mmap: DSP mmap method to mmap DSP memory 126 int (*mmap)(struct snd_compr_stream *stream, member in struct:snd_compr_ops
|
H A D | hwdep.h | 46 int (*mmap)(struct snd_hwdep *hw, struct file *file, member in struct:snd_hwdep_ops
|
/linux-4.4.14/sound/oss/ |
H A D | soundcard.c | 434 printk(KERN_ERR "Sound: mmap() not supported for other than audio devices\n"); sound_mmap() 443 printk(KERN_ERR "Sound: Undefined mmap() access\n"); sound_mmap() 449 printk(KERN_ERR "Sound: mmap() error. dmap == NULL\n"); sound_mmap() 454 printk(KERN_ERR "Sound: mmap() called when raw_buf == NULL\n"); sound_mmap() 459 printk(KERN_ERR "Sound: mmap() called twice for the same DMA buffer\n"); sound_mmap() 464 printk(KERN_ERR "Sound: mmap() offset must be 0.\n"); sound_mmap() 471 printk(KERN_WARNING "Sound: mmap() size = %ld. Should be %d\n", size, dmap->bytes_in_use); sound_mmap() 482 if( audio_devs[dev]->d->mmap) sound_mmap() 483 audio_devs[dev]->d->mmap(dev); sound_mmap() 499 .mmap = sound_mmap,
|
/linux-4.4.14/fs/proc/ |
H A D | inode.c | 270 int (*mmap)(struct file *, struct vm_area_struct *); proc_reg_mmap() 272 mmap = pde->proc_fops->mmap; proc_reg_mmap() 273 if (mmap) proc_reg_mmap() 274 rv = mmap(file, vma); proc_reg_mmap() 376 .mmap = proc_reg_mmap, 389 .mmap = proc_reg_mmap,
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | sys_x86_64.c | 86 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, SYSCALL_DEFINE6() 110 malloc knows how to fall back to mmap. Give it 1GB find_start_end() 180 /* for MAP_32BIT mappings we force the legacy mmap base */ arch_get_unmapped_area_topdown() 210 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown() 212 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
|
/linux-4.4.14/drivers/sbus/char/ |
H A D | flash.c | 1 /* flash.c: Allow mmap access to the OBP Flash, for OBP updates. 148 /* no write to the Flash, use mmap 154 .mmap = flash_mmap,
|
/linux-4.4.14/arch/sparc/kernel/ |
H A D | sys_sparc_32.c | 96 /* Linux version of mmap */ 120 /* This works on an existing mmap so we don't need to validate sparc_remap_file_pages() 121 * the range as that was done at the original mmap call. sparc_remap_file_pages()
|
H A D | sys_sparc_64.c | 69 * mm/mmap.c in two ways: 71 * 1) For file backed MAP_SHARED mmap()'s we D-cache color align, 197 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown() 199 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown() 447 /* Linux version of mmap */ SYSCALL_DEFINE6() 448 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, SYSCALL_DEFINE6()
|
/linux-4.4.14/include/uapi/drm/ |
H A D | omap_drm.h | 91 uint64_t offset; /* mmap offset (out) */ 96 * mmap() the buffer: 98 uint32_t size; /* virtual size for mmap'ing (out) */
|
/linux-4.4.14/arch/mips/mm/ |
H A D | mmap.c | 21 /* gap between mmap and stack */ 113 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_common() 115 * can happen with large stack limits and large mmap() arch_get_unmapped_area_common()
|
/linux-4.4.14/fs/ |
H A D | binfmt_aout.c | 220 * Requires a mmap handler. This prevents people from using a.out load_aout_binary() 223 if (!bprm->file->f_op->mmap) load_aout_binary() 299 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { load_aout_binary() 360 * Requires a mmap handler. This prevents people from using a.out load_aout_library() 363 if (!file->f_op->mmap) load_aout_library() 388 /* Now use mmap to map the library into memory. */ load_aout_library()
|
H A D | binfmt_em86.c | 41 !bprm->file->f_op->mmap) { load_em86()
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_prime.c | 101 WARN_ONCE(true, "Attempted use of dmabuf mmap. Bad.\n"); vmw_prime_dmabuf_mmap() 115 .mmap = vmw_prime_dmabuf_mmap,
|
H A D | vmwgfx_ttm_glue.c | 37 DRM_ERROR("Illegal attempt to mmap old fifo space.\n"); vmw_mmap()
|
/linux-4.4.14/arch/unicore32/include/asm/ |
H A D | mmu_context.h | 66 * (the macro is used as remove_vma() is static to mm/mmap.c) 76 mm->mmap = NULL; \
|
H A D | memory.h | 31 * TASK_UNMAPPED_BASE - the lower boundary of the mmap VM area
|
/linux-4.4.14/arch/x86/um/os-Linux/ |
H A D | task_size.c | 28 * the mmap succeeds, but gives us an address different from page_ok() 34 mapped = mmap(address, UM_KERN_PAGE_SIZE, page_ok()
|
/linux-4.4.14/arch/c6x/include/asm/ |
H A D | processor.h | 34 * Since calls like mmap() can return an address or an error, we 50 * space during mmap's. We won't be using it
|
/linux-4.4.14/samples/bpf/ |
H A D | trace_output_user.c | 41 base = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); perf_event_mmap() 43 printf("mmap err\n"); perf_event_mmap()
|
H A D | tracex5_kern.c | 69 char fmt[] = "mmap\n"; __NR_mmap()
|
/linux-4.4.14/security/selinux/ss/ |
H A D | status.c | 2 * mmap based event notifications for SELinux 21 * using mmap interface on /selinux/status.
|
/linux-4.4.14/include/uapi/linux/hsi/ |
H A D | cs-protocol.h | 88 * Struct describing the layout and contents of the driver mmap area. 97 /* array of offsets within the mmap area for each RX and TX buffer */
|
/linux-4.4.14/tools/build/ |
H A D | fixdep.c | 141 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); print_deps() 143 perror("fixdep: mmap"); print_deps()
|
/linux-4.4.14/tools/testing/selftests/x86/ |
H A D | sysret_ss_attrs.c | 74 unsigned char *stack32 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, main() 78 err(1, "mmap"); main()
|
/linux-4.4.14/drivers/gpu/drm/ |
H A D | drm_gem.c | 55 * the DRI2 implementation wants to have at least allocate/mmap be generic. 74 * mmap time. 77 /* pgoff in mmap is an unsigned long, so we need to make sure that 386 * drm_gem_free_mmap_offset - release a fake mmap offset for an object 401 * drm_gem_create_mmap_offset_size - create a fake mmap offset for an object 405 * GEM memory mapping works by handing back to userspace a fake mmap offset 406 * it can use in a subsequent mmap(2) call. The DRM core code then looks 425 * drm_gem_create_mmap_offset - create a fake mmap offset for an object 428 * GEM memory mapping works by handing back to userspace a fake mmap offset 429 * it can use in a subsequent mmap(2) call. The DRM core code then looks 803 * register allocation, or performance monitoring), or mmap the buffer memory 806 * This function is mainly intended to implement the DMABUF mmap operation, when 808 * DRM mmap operation, drivers should use the drm_gem_mmap() function. 835 * handler can dereference the mmap offset's pointer to the object. drm_gem_mmap_obj() 851 * If a driver supports GEM object mapping, mmap calls on the DRM file 858 * If the caller is not granted access to the buffer object, the mmap will fail
|
/linux-4.4.14/arch/um/include/asm/ |
H A D | processor-generic.h | 87 * space during mmap's.
|
/linux-4.4.14/arch/alpha/include/asm/ |
H A D | processor.h | 29 * space during mmap's.
|
/linux-4.4.14/mm/ |
H A D | Makefile | 10 mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
|
H A D | debug.c | 171 pr_emerg("mm %p mmap %p seqnum %d task_size %lu\n" dump_mm() 201 mm, mm->mmap, mm->vmacache_seqnum, mm->task_size, dump_mm()
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | pci_64.h | 42 /* Platform support for /proc/bus/pci/X/Y mmap()s. */
|
/linux-4.4.14/arch/microblaze/kernel/ |
H A D | sys_microblaze.c | 36 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, SYSCALL_DEFINE6()
|
/linux-4.4.14/arch/cris/include/asm/ |
H A D | processor.h | 24 * space during mmap's.
|
/linux-4.4.14/arch/arm64/kernel/ |
H A D | efi.c | 212 memblock_reserve(params.mmap & PAGE_MASK, efi_init() 213 PAGE_ALIGN(params.mmap_size + (params.mmap & ~PAGE_MASK))); efi_init() 214 memmap.phys_map = params.mmap; efi_init() 215 memmap.map = early_memremap(params.mmap, params.mmap_size); efi_init()
|
/linux-4.4.14/arch/arm/mach-nspire/ |
H A D | nspire.c | 47 .mmap = nspire_clcd_mmap,
|
/linux-4.4.14/tools/perf/arch/x86/util/ |
H A D | intel-bts.c | 87 pc = session->evlist->mmap[0].base; intel_bts_info_fill() 176 pr_err("Snapshot size %zu must not be greater than AUX area tracing mmap size %zu\n", 182 pr_err("Failed to calculate default snapshot size and/or AUX area tracing mmap pages\n"); 211 pr_err("Invalid mmap size for Intel BTS: must be at least %zuKiB and a power of 2\n", 374 pr_debug3("%s: mmap index %d old head %zu new head %zu\n", intel_bts_find_snapshot()
|
H A D | intel-pt.c | 321 pc = session->evlist->mmap[0].base; intel_pt_info_fill() 569 pr_err("Snapshot size %zu must not be greater than AUX area tracing mmap size %zu\n", 575 pr_err("Failed to calculate default snapshot size and/or AUX area tracing mmap pages\n"); 609 pr_err("Invalid mmap size for Intel Processor Trace: must be at least %zuKiB and a power of 2\n", 701 /* In per-cpu case, always need the time of mmap events etc */ 945 pr_debug3("%s: mmap index %d old head %zu new head %zu\n", intel_pt_find_snapshot()
|
/linux-4.4.14/arch/sparc/mm/ |
H A D | hugetlbpage.c | 76 * A failed mmap() very likely causes application failure, hugetlb_get_unmapped_area_topdown() 78 * can happen with large stack limits and large mmap() hugetlb_get_unmapped_area_topdown()
|
/linux-4.4.14/arch/um/os-Linux/ |
H A D | mem.c | 190 addr = mmap(NULL, UM_KERN_PAGE_SIZE, check_tmpexec() 192 printf("Checking PROT_EXEC mmap in %s...", tempdir); check_tmpexec()
|
/linux-4.4.14/arch/xtensa/include/uapi/asm/ |
H A D | mman.h | 34 * Flags for mmap 59 # define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be
|
/linux-4.4.14/drivers/char/ |
H A D | uv_mmtimer.c | 52 .mmap = uv_mmtimer_mmap, 79 * %MMTIMER_MMAPAVAIL - Returns 1 if registers can be mmap'd into userspace
|
H A D | mspec.c | 140 * Called when a device mapping is created by a means other than mmap 317 .mmap = fetchop_mmap, 329 .mmap = cached_mmap, 341 .mmap = uncached_mmap,
|
/linux-4.4.14/arch/microblaze/include/asm/ |
H A D | processor.h | 57 * space during mmap's. We won't be using it 95 * space during mmap's.
|
/linux-4.4.14/Documentation/auxdisplay/ |
H A D | cfag12864b-example.c | 63 * Unable to mmap: return = -2 71 cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE, cfag12864b_init()
|
/linux-4.4.14/tools/build/feature/ |
H A D | Makefile | 20 test-libelf-mmap.bin \ 83 test-libelf-mmap.bin:
|
H A D | test-all.c | 33 # include "test-libelf-mmap.c"
|
/linux-4.4.14/tools/lib/bpf/ |
H A D | Makefile | 68 FEATURE_TESTS = libelf libelf-getphdrnum libelf-mmap bpf 101 ifeq ($(feature-libelf-mmap), 1)
|
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/ |
H A D | osunixmap.c | 110 /* Align the offset to use mmap */ acpi_os_map_memory() 117 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, acpi_os_map_memory()
|
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | trace.c | 24 tb = mmap(NULL, size, PROT_READ | PROT_WRITE, trace_buffer_allocate() 27 perror("mmap"); trace_buffer_allocate()
|
/linux-4.4.14/drivers/gpu/drm/savage/ |
H A D | savage_drv.c | 43 .mmap = drm_legacy_mmap,
|
/linux-4.4.14/drivers/gpu/drm/tdfx/ |
H A D | tdfx_drv.c | 50 .mmap = drm_legacy_mmap,
|
/linux-4.4.14/drivers/gpu/drm/udl/ |
H A D | udl_drv.c | 28 .mmap = udl_drm_gem_mmap,
|
/linux-4.4.14/drivers/gpu/drm/mgag200/ |
H A D | mgag200_drv.c | 83 .mmap = mgag200_mmap,
|
/linux-4.4.14/arch/tile/include/asm/ |
H A D | syscalls.h | 42 #ifndef __tilegx__ /* No mmap() in the 32-bit kernel. */
|
/linux-4.4.14/arch/um/drivers/ |
H A D | mmapper_kern.c | 87 .mmap = mmapper_mmap,
|
/linux-4.4.14/sound/arm/ |
H A D | pxa2xx-pcm.c | 80 .mmap = pxa2xx_pcm_mmap,
|
/linux-4.4.14/fs/exofs/ |
H A D | file.c | 72 .mmap = generic_file_mmap,
|
/linux-4.4.14/include/uapi/asm-generic/ |
H A D | mman-common.h | 23 # define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be uninitialized */
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | dma-swiotlb.c | 52 .mmap = dma_direct_mmap_coherent,
|
H A D | proc_powerpc.c | 58 .mmap = page_map_mmap
|
H A D | dma-iommu.c | 111 .mmap = dma_direct_mmap_coherent,
|
/linux-4.4.14/arch/s390/kernel/ |
H A D | sys_s390.c | 34 * Perform the mmap() system call. Linux for S/390 isn't able to handle more
|
/linux-4.4.14/arch/score/include/asm/ |
H A D | processor.h | 38 * space during mmap's.
|
/linux-4.4.14/arch/mips/loongson64/common/ |
H A D | pci.c | 56 LOONGSON_PCIBASE0 = 0x80000000ul; /* base: 2G -> mmap: 0M */ setup_pcimap()
|
/linux-4.4.14/drivers/firmware/efi/libstub/ |
H A D | fdt.c | 127 status = fdt_setprop(fdt, node, "linux,uefi-mmap-start", update_fdt() 133 status = fdt_setprop(fdt, node, "linux,uefi-mmap-size", update_fdt() 139 status = fdt_setprop(fdt, node, "linux,uefi-mmap-desc-size", update_fdt() 145 status = fdt_setprop(fdt, node, "linux,uefi-mmap-desc-ver", update_fdt()
|
/linux-4.4.14/net/irda/irnet/ |
H A D | irnet_ppp.h | 108 /* Also : llseek, readdir, mmap, flush, fsync, fasync, lock, readv, writev */
|
/linux-4.4.14/sound/soc/pxa/ |
H A D | pxa2xx-pcm.c | 57 .mmap = pxa2xx_pcm_mmap,
|
/linux-4.4.14/drivers/staging/android/uapi/ |
H A D | ion.h | 69 * at mmap time, if this is set 156 * DOC: ION_IOC_MAP - get a file descriptor to mmap 161 * can then be used as an argument to mmap.
|
/linux-4.4.14/drivers/gpu/drm/omapdrm/ |
H A D | omap_fbdev.c | 162 * but is needed as long as we use fb_mmap() to mmap to userspace omap_fbdev_create() 164 * implement our own mmap using GEM mmap support to avoid this omap_fbdev_create()
|
/linux-4.4.14/drivers/media/v4l2-core/ |
H A D | videobuf-vmalloc.c | 214 printk(KERN_ERR "mmap: remap failed with error %d", rc); __videobuf_iolock() 267 printk(KERN_ERR "mmap: remap failed with error %d. ", retval); __videobuf_mmap_mapper() 276 dprintk(1, "mmap %p: q=%p %08lx-%08lx (%lx) pgoff %08lx buf %d\n", __videobuf_mmap_mapper()
|
/linux-4.4.14/fs/kernfs/ |
H A D | file.c | 472 * mmap path and of->mutex are prone to triggering spurious lockdep kernfs_fop_mmap() 474 * between the two. Check whether mmap is actually implemented kernfs_fop_mmap() 488 rc = ops->mmap(of, vma); kernfs_fop_mmap() 494 * to satisfy versions of X which crash if the mmap fails: that kernfs_fop_mmap() 626 has_read = ops->seq_show || ops->read || ops->mmap; kernfs_fop_open() 627 has_write = ops->write || ops->mmap; kernfs_fop_open() 628 has_mmap = ops->mmap; kernfs_fop_open() 649 * @of->mutex for files which implement mmap. This is a rather kernfs_fop_open() 651 * mm->mmap_sem - mmap nests @of->mutex under mm->mmap_sem and kernfs_fop_open() 657 * whether the file has mmap or not for now. kernfs_fop_open() 889 .mmap = kernfs_fop_mmap, 944 if (ops->mmap) __kernfs_create_file()
|
/linux-4.4.14/scripts/ |
H A D | sortextable.c | 85 * malloc+lseek+read+free of many pieces. If successful, then mmap 102 addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, mmap_file() 106 fprintf(stderr, "Could not mmap file: %s\n", fname); mmap_file()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_doorbell.c | 47 * Although the mapping is done by KFD, it is equivalent to an mmap of 48 * the /dev/kfd with the particular device encoded in the mmap offset. 49 * There will be other uses for mmap of /dev/kfd, so only a range of
|
/linux-4.4.14/sound/usb/usx2y/ |
H A D | usX2Yhwdep.c | 66 // FIXME this hwdep interface is used twice: fpga download and mmap for controlling Lights etc. Maybe better using 2 hwdep devs? snd_us428ctls_mmap() 71 /* if userspace tries to mmap beyond end of our buffer, fail */ snd_us428ctls_mmap() 259 hw->ops.mmap = snd_us428ctls_mmap; usX2Y_hwdep_new()
|
/linux-4.4.14/tools/perf/ |
H A D | builtin-record.c | 78 struct perf_mmap *md = &rec->evlist->mmap[idx]; record__mmap_read() 224 &rec->evlist->mmap[i].auxtrace_mmap; record__auxtrace_read_snapshot_all() 320 pr_err("failed to mmap with %d (%s)\n", errno, 374 *we arrange module mmap prior to guest kernel mmap and trigger perf_event__synthesize_guest_os() 409 struct auxtrace_mmap *mm = &rec->evlist->mmap[i].auxtrace_mmap; record__mmap_read_all() 411 if (rec->evlist->mmap[i].base) { record__mmap_read_all() 1008 .mmap = perf_event__process_mmap, 1054 OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]", 1055 "number of mmap data pages and AUX area tracing mmap pages", 1113 "per thread proc mmap processing timeout in ms"),
|
/linux-4.4.14/drivers/firmware/efi/ |
H A D | efi.c | 509 UEFI_PARAM("MemMap Address", "linux,uefi-mmap-start", mmap), 510 UEFI_PARAM("MemMap Size", "linux,uefi-mmap-size", mmap_size), 511 UEFI_PARAM("MemMap Desc. Size", "linux,uefi-mmap-desc-size", desc_size), 512 UEFI_PARAM("MemMap Desc. Version", "linux,uefi-mmap-desc-ver", desc_ver)
|
/linux-4.4.14/drivers/xen/ |
H A D | gntalloc.c | 34 * 5. A program in X mmap()s a segment of the gntalloc device that corresponds 39 * The grant allocation and mmap()ing are, naturally, two separate operations. 40 * You set up the sharing by calling the create ioctl() and then the mmap(). 93 uint64_t file_index; /* File offset for mmap() */ 565 .mmap = gntalloc_mmap
|
/linux-4.4.14/fs/9p/ |
H A D | vfs_file.c | 514 * we do it during mmap instead of v9fs_mmap_file_mmap() 646 .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,
|
/linux-4.4.14/drivers/misc/mic/scif/ |
H A D | scif_mmap.c | 213 * aperture base for mmap to work correctly scif_get_phys() 500 * The private data field of each VMA used to mmap a remote window 507 * mmap request was for a single page 527 * The one exception happens when the VMA is first created by mmap; 528 * in this case, the driver's mmap method is called instead. 622 "SCIFAPI mmap: ep %p start_offset 0x%llx nr_pages 0x%x\n", scif_mmap()
|
/linux-4.4.14/drivers/pcmcia/ |
H A D | tcic.c | 737 u_long base, len, mmap; tcic_set_mem_map() local 759 mmap = mem->card_start - mem->res->start; tcic_set_mem_map() 760 mmap = (mmap >> TCIC_MMAP_CA_SHFT) & TCIC_MMAP_CA_MASK; tcic_set_mem_map() 761 if (mem->flags & MAP_ATTRIB) mmap |= TCIC_MMAP_REG; tcic_set_mem_map() 763 tcic_setw(TCIC_DATA, mmap); tcic_set_mem_map()
|
/linux-4.4.14/arch/xtensa/kernel/ |
H A D | pci.c | 269 * Platform support for /proc/bus/pci/X/Y mmap()s, 279 * to mmap. They read the 32-bit value from the config space base register, 281 * offset parameter of mmap on /proc/bus/pci/XXX for that device.
|
/linux-4.4.14/kernel/time/ |
H A D | posix-clock.c | 109 if (clk->ops.mmap) posix_clock_mmap() 110 err = clk->ops.mmap(clk, vma); posix_clock_mmap() 203 .mmap = posix_clock_mmap,
|
/linux-4.4.14/arch/parisc/kernel/ |
H A D | sys_parisc.c | 68 * Top of mmap area (just below the process stack). 196 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown() 198 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
H A D | c2_qp.c | 426 void __iomem *mmap; c2_alloc_qp() local 519 mmap = ioremap_nocache(peer_pa, mmap_size); c2_alloc_qp() 520 if (!mmap) { c2_alloc_qp() 529 mmap + sizeof(struct c2_mq_shared), /* pool start */ c2_alloc_qp() 530 mmap, /* peer */ c2_alloc_qp() 538 mmap = ioremap_nocache(peer_pa, mmap_size); c2_alloc_qp() 539 if (!mmap) { c2_alloc_qp() 548 mmap + sizeof(struct c2_mq_shared), /* pool start */ c2_alloc_qp() 549 mmap, /* peer */ c2_alloc_qp()
|
/linux-4.4.14/drivers/mtd/chips/ |
H A D | map_ram.c | 86 * Allow NOMMU mmap() to directly map the device (if not NULL)
|
H A D | map_rom.c | 70 * Allow NOMMU mmap() to directly map the device (if not NULL)
|
/linux-4.4.14/drivers/gpu/drm/sis/ |
H A D | sis_drv.c | 73 .mmap = drm_legacy_mmap,
|
/linux-4.4.14/drivers/gpu/drm/via/ |
H A D | via_drv.c | 65 .mmap = drm_legacy_mmap,
|
/linux-4.4.14/drivers/gpu/drm/r128/ |
H A D | r128_drv.c | 49 .mmap = drm_legacy_mmap,
|
/linux-4.4.14/drivers/gpu/drm/bochs/ |
H A D | bochs_drv.c | 78 .mmap = bochs_mmap,
|
/linux-4.4.14/drivers/gpu/drm/cirrus/ |
H A D | cirrus_drv.c | 126 .mmap = cirrus_mmap,
|
/linux-4.4.14/drivers/gpu/drm/i810/ |
H A D | i810_drv.c | 50 .mmap = drm_legacy_mmap,
|
/linux-4.4.14/arch/um/os-Linux/skas/ |
H A D | process.c | 203 printk(UM_KERN_ERR "mapping mmap stub at 0x%lx failed, " userspace_tramp() 210 addr = mmap((void *) STUB_DATA, userspace_tramp() 254 stack = mmap(NULL, UM_KERN_PAGE_SIZE, start_userspace() 259 printk(UM_KERN_ERR "start_userspace : mmap failed, " start_userspace()
|
/linux-4.4.14/arch/arc/include/asm/ |
H A D | processor.h | 129 * space during mmap's.
|
/linux-4.4.14/net/atm/ |
H A D | pvc.c | 127 .mmap = sock_no_mmap,
|
/linux-4.4.14/scripts/basic/ |
H A D | fixdep.c | 282 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); do_config_file() 284 perror("fixdep: mmap"); do_config_file() 403 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); print_deps() 405 perror("fixdep: mmap"); print_deps()
|
/linux-4.4.14/arch/powerpc/kvm/ |
H A D | book3s_64_vio.c | 96 .mmap = kvm_spapr_tce_mmap,
|
/linux-4.4.14/arch/openrisc/include/asm/ |
H A D | processor.h | 47 * space during mmap's.
|
/linux-4.4.14/arch/h8300/include/asm/ |
H A D | processor.h | 52 * space during mmap's. We won't be using it
|
/linux-4.4.14/arch/m32r/include/asm/ |
H A D | processor.h | 69 * space during mmap's.
|
/linux-4.4.14/arch/avr32/include/asm/ |
H A D | processor.h | 90 * space during mmap's
|
/linux-4.4.14/arch/arm/mach-netx/ |
H A D | nxdb500.c | 96 .mmap = netx_clcd_mmap,
|
H A D | nxeb500hmi.c | 99 .mmap = netx_clcd_mmap,
|