MAP_SHARED 42 arch/arc/mm/mmap.c do_align = filp || (flags & MAP_SHARED); MAP_SHARED 48 arch/arc/mm/mmap.c if (aliasing && flags & MAP_SHARED && MAP_SHARED 44 arch/arm/mm/mmap.c do_align = filp || (flags & MAP_SHARED); MAP_SHARED 50 arch/arm/mm/mmap.c if (aliasing && flags & MAP_SHARED && MAP_SHARED 97 arch/arm/mm/mmap.c do_align = filp || (flags & MAP_SHARED); MAP_SHARED 104 arch/arm/mm/mmap.c if (aliasing && flags & MAP_SHARED && MAP_SHARED 186 arch/arm/vdso/vdsomunge.c outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, MAP_SHARED 37 arch/csky/abiv1/mmap.c do_align = filp || (flags & MAP_SHARED); MAP_SHARED 43 arch/csky/abiv1/mmap.c if (flags & MAP_SHARED && MAP_SHARED 30 arch/ia64/kernel/sys_ia64.c long map_shared = (flags & MAP_SHARED); MAP_SHARED 51 arch/mips/mm/mmap.c if ((flags & MAP_SHARED) && MAP_SHARED 58 arch/mips/mm/mmap.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 128 arch/mips/vdso/genvdso.c addr = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, MAP_SHARED 39 arch/nds32/mm/mmap.c do_align = filp || (flags & MAP_SHARED); MAP_SHARED 45 arch/nds32/mm/mmap.c if (aliasing && flags & MAP_SHARED && MAP_SHARED 95 arch/parisc/kernel/sys_parisc.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 100 arch/parisc/kernel/sys_parisc.c if ((flags & MAP_SHARED) && last_mmap && MAP_SHARED 151 arch/parisc/kernel/sys_parisc.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 156 arch/parisc/kernel/sys_parisc.c if ((flags & MAP_SHARED) && last_mmap && MAP_SHARED 102 arch/s390/mm/mmap.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 153 arch/s390/mm/mmap.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 46 arch/sh/mm/mmap.c if ((flags & MAP_SHARED) && MAP_SHARED 56 arch/sh/mm/mmap.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 95 arch/sh/mm/mmap.c if ((flags & MAP_SHARED) && MAP_SHARED 105 arch/sh/mm/mmap.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 50 arch/sparc/kernel/sys_sparc_32.c if ((flags & MAP_SHARED) && MAP_SHARED 66 arch/sparc/kernel/sys_sparc_32.c info.align_mask = (flags & MAP_SHARED) ? MAP_SHARED 102 arch/sparc/kernel/sys_sparc_64.c if ((flags & MAP_SHARED) && MAP_SHARED 114 arch/sparc/kernel/sys_sparc_64.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 166 arch/sparc/kernel/sys_sparc_64.c if ((flags & MAP_SHARED) && MAP_SHARED 176 arch/sparc/kernel/sys_sparc_64.c if (filp || (flags & MAP_SHARED)) MAP_SHARED 230 arch/sparc/kernel/sys_sparc_64.c flags &= ~MAP_SHARED; MAP_SHARED 147 arch/um/os-Linux/process.c loc = mmap64((void *) virt, len, prot, MAP_SHARED | MAP_FIXED, MAP_SHARED 203 arch/um/os-Linux/process.c MAP_SHARED, fd, 0); MAP_SHARED 175 arch/um/os-Linux/skas/mem.c MAP_SHARED | MAP_FIXED, phys_fd, MAP_SHARED 220 arch/um/os-Linux/skas/process.c MAP_FIXED | MAP_SHARED, fd, offset); MAP_SHARED 390 arch/x86/boot/tools/build.c kernel = mmap(NULL, sz, PROT_READ, MAP_SHARED, fd, 0); MAP_SHARED 9643 arch/x86/kvm/x86.c MAP_SHARED | MAP_ANONYMOUS, 0); MAP_SHARED 87 arch/x86/um/shared/sysdep/stub_32.h "S" (MAP_FIXED | MAP_SHARED), "D" (fd), MAP_SHARED 93 arch/x86/um/shared/sysdep/stub_64.h "g" (MAP_FIXED | MAP_SHARED), "g" (fd), MAP_SHARED 70 arch/xtensa/kernel/syscall.c if ((flags & MAP_SHARED) && MAP_SHARED 81 arch/xtensa/kernel/syscall.c if (flags & MAP_SHARED) MAP_SHARED 93 arch/xtensa/kernel/syscall.c if (flags & MAP_SHARED) MAP_SHARED 741 drivers/char/mem.c if (flags & MAP_SHARED) { MAP_SHARED 567 drivers/gpu/drm/amd/amdkfd/kfd_process.c MAP_SHARED, offset); MAP_SHARED 313 drivers/gpu/drm/armada/armada_gem.c MAP_SHARED, args->offset); MAP_SHARED 1523 drivers/gpu/drm/drm_bufs.c MAP_SHARED, MAP_SHARED 1528 drivers/gpu/drm/drm_bufs.c MAP_SHARED, 0); MAP_SHARED 144 drivers/gpu/drm/i810/i810_dma.c MAP_SHARED, buf->bus_address); MAP_SHARED 82 drivers/gpu/drm/i915/gem/i915_gem_mman.c PROT_READ | PROT_WRITE, MAP_SHARED, MAP_SHARED 531 fs/aio.c MAP_SHARED, 0, &unused, NULL); MAP_SHARED 35 include/linux/mman.h #define LEGACY_MAP_MASK (MAP_SHARED \ MAP_SHARED 1426 ipc/shm.c unsigned long flags = MAP_SHARED; MAP_SHARED 7461 kernel/events/core.c flags = MAP_SHARED; MAP_SHARED 1477 mm/mmap.c case MAP_SHARED: MAP_SHARED 1535 mm/mmap.c case MAP_SHARED: MAP_SHARED 2209 mm/mmap.c } else if (flags & MAP_SHARED) { MAP_SHARED 2954 mm/mmap.c flags |= MAP_SHARED | MAP_FIXED | MAP_POPULATE; MAP_SHARED 556 mm/mremap.c map_flags |= MAP_SHARED; MAP_SHARED 712 mm/mremap.c map_flags |= MAP_SHARED; MAP_SHARED 800 mm/nommu.c (flags & MAP_TYPE) != MAP_SHARED) MAP_SHARED 858 mm/nommu.c if (flags & MAP_SHARED) { MAP_SHARED 894 mm/nommu.c if (flags & MAP_SHARED) { MAP_SHARED 965 mm/nommu.c if (flags & MAP_SHARED) MAP_SHARED 58 samples/auxdisplay/cfag12864b-example.c MAP_SHARED, cfag12864b_fd, 0); MAP_SHARED 426 samples/mic/mpssd/mpssd.c PROT_READ, MAP_SHARED, fd, 0); MAP_SHARED 1019 samples/mic/mpssd/mpssd.c PROT_READ|PROT_WRITE, MAP_SHARED, MAP_SHARED 218 scripts/insert-sys-cert.c map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); MAP_SHARED 102 scripts/sortextable.c addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, MAP_SHARED 3724 security/selinux/hooks.c (flags & MAP_TYPE) == MAP_SHARED); MAP_SHARED 973 tools/bpf/bpf_dbg.c MAP_SHARED | MAP_LOCKED, pcap_fd, 0); MAP_SHARED 111 tools/firmware/ihex2fw.c data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0); MAP_SHARED 18 tools/include/uapi/asm-generic/mman-common-tools.h #ifndef MAP_SHARED MAP_SHARED 433 tools/io_uring/io_uring-bench.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, MAP_SHARED 445 tools/io_uring/io_uring-bench.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, MAP_SHARED 450 tools/io_uring/io_uring-bench.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, MAP_SHARED 19 tools/io_uring/setup.c MAP_SHARED | MAP_POPULATE, fd, IORING_OFF_SQ_RING); MAP_SHARED 32 tools/io_uring/setup.c MAP_SHARED | MAP_POPULATE, fd, MAP_SHARED 43 tools/io_uring/setup.c MAP_SHARED | MAP_POPULATE, fd, IORING_OFF_CQ_RING); MAP_SHARED 5401 tools/lib/bpf/libbpf.c PROT_READ | PROT_WRITE, MAP_SHARED, MAP_SHARED 266 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, umem->fd, MAP_SHARED 283 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, umem->fd, MAP_SHARED 634 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, MAP_SHARED 653 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, MAP_SHARED 108 tools/perf/arch/x86/tests/intel-cqm.c event = mmap(NULL, mmap_len, PROT_READ, MAP_SHARED, fd[0], 0); MAP_SHARED 125 tools/perf/arch/x86/tests/rdpmc.c addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); MAP_SHARED 450 tools/perf/bench/numa.c return alloc_data(bytes, MAP_SHARED, 1, g->p.init_cpu0, g->p.thp, g->p.init_random); MAP_SHARED 458 tools/perf/bench/numa.c return alloc_data(bytes, MAP_SHARED, 0, g->p.init_cpu0, g->p.thp, g->p.init_random); MAP_SHARED 1389 tools/perf/bench/numa.c g = (void *)alloc_data(sizeof(*g), MAP_SHARED, 1, 0, 0 /* THP */, 0); MAP_SHARED 739 tools/perf/builtin-report.c map->flags & MAP_SHARED ? 's' : 'p', MAP_SHARED 40 tools/perf/tests/mmap-thread-lookup.c MAP_SHARED|MAP_ANONYMOUS, -1, 0); MAP_SHARED 95 tools/perf/util/auxtrace.c mm->base = mmap(NULL, mp->len, mp->prot, MAP_SHARED, fd, mp->offset); MAP_SHARED 824 tools/perf/util/auxtrace.c addr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, file_offset); MAP_SHARED 275 tools/perf/util/event.c (event->mmap2.flags & MAP_SHARED) ? 's' : 'p', MAP_SHARED 466 tools/perf/util/jitdump.c event->mmap2.flags = MAP_SHARED; MAP_SHARED 558 tools/perf/util/jitdump.c event->mmap2.flags = MAP_SHARED; MAP_SHARED 375 tools/perf/util/mmap.c MAP_SHARED, fd, 0); MAP_SHARED 2086 tools/perf/util/session.c mmap_flags = MAP_SHARED; MAP_SHARED 1242 tools/perf/util/sort.c (!(l_map->flags & MAP_SHARED)) && MAP_SHARED 1279 tools/perf/util/sort.c (map->flags & MAP_SHARED) && MAP_SHARED 137 tools/perf/util/srccode.c h->map = mmap(NULL, sz, PROT_READ, MAP_SHARED, fd, 0); MAP_SHARED 368 tools/perf/util/synthetic-events.c event->mmap2.flags |= MAP_SHARED; MAP_SHARED 24 tools/power/acpi/os_specific/service_layers/osunixmap.c #define MMAP_FLAGS MAP_SHARED MAP_SHARED 184 tools/power/cpupower/debug/i386/dump_psb.c mem = mmap(mem, 0x100000 - 0xc0000, PROT_READ, MAP_SHARED, fd, 0xc0000); MAP_SHARED 118 tools/testing/selftests/android/ion/ionutils.c MAP_SHARED, buffer_fd, 0); MAP_SHARED 171 tools/testing/selftests/android/ion/ionutils.c MAP_SHARED, buffd, 0); MAP_SHARED 42 tools/testing/selftests/ia64/aliasing-test.c addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); MAP_SHARED 829 tools/testing/selftests/kvm/lib/kvm_util.c PROT_READ | PROT_WRITE, MAP_SHARED, vcpu->fd, 0); MAP_SHARED 66 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c run = (struct kvm_run *)mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, MAP_SHARED 130 tools/testing/selftests/memfd/fuse_test.c MAP_SHARED, MAP_SHARED 178 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 283 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 316 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 330 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 345 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 390 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 402 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 415 tools/testing/selftests/memfd/memfd_test.c MAP_SHARED, MAP_SHARED 199 tools/testing/selftests/net/psock_fanout.c PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); MAP_SHARED 713 tools/testing/selftests/net/psock_tpacket.c MAP_SHARED | MAP_LOCKED | MAP_POPULATE, sock, 0); MAP_SHARED 126 tools/testing/selftests/net/tcp_mmap.c int flags = MAP_SHARED; MAP_SHARED 115 tools/testing/selftests/net/txring_overwrite.c PROT_READ | PROT_WRITE, MAP_SHARED, fdt, 0); MAP_SHARED 477 tools/testing/selftests/pidfd/pidfd_test.c MAP_SHARED | MAP_ANONYMOUS, -1, 0); MAP_SHARED 205 tools/testing/selftests/powerpc/alignment/alignment_handler.c ci0 = mmap(NULL, bufsize, PROT_WRITE, MAP_SHARED, MAP_SHARED 207 tools/testing/selftests/powerpc/alignment/alignment_handler.c ci1 = mmap(NULL, bufsize, PROT_WRITE, MAP_SHARED, MAP_SHARED 209 tools/testing/selftests/powerpc/mm/subpage_prot.c MAP_SHARED, fd, 0); MAP_SHARED 71 tools/testing/selftests/vm/gup_benchmark.c flags |= MAP_SHARED; MAP_SHARED 33 tools/testing/selftests/vm/hugepage-mmap.c #define FLAGS (MAP_SHARED | MAP_FIXED) MAP_SHARED 36 tools/testing/selftests/vm/hugepage-mmap.c #define FLAGS (MAP_SHARED) MAP_SHARED 88 tools/testing/selftests/vm/map_populate.c MAP_SHARED, fileno(ftmp), 0); MAP_SHARED 174 tools/testing/selftests/vm/userfaultfd.c (map_shared ? MAP_SHARED : MAP_PRIVATE) | MAP_SHARED 185 tools/testing/selftests/vm/userfaultfd.c MAP_SHARED | MAP_HUGETLB, MAP_SHARED 234 tools/testing/selftests/vm/userfaultfd.c MAP_ANONYMOUS | MAP_SHARED, -1, 0); MAP_SHARED 509 tools/testing/selftests/x86/fsgsbase.c MAP_ANONYMOUS | MAP_SHARED, -1, 0); MAP_SHARED 874 tools/testing/selftests/x86/protection_keys.c ptr = mmap(0, size, prot, MAP_SHARED, fd, 0); MAP_SHARED 161 tools/virtio/vringh_test.c host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); MAP_SHARED 162 tools/virtio/vringh_test.c guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); MAP_SHARED 989 tools/vm/page-types.c ptr = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, off);