/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | mmap.c | 61 tmp1 = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rdmap_fd, 0); in test_mmap() 73 bss_mmaped = mmap(NULL, bss_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 81 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 146 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap() 165 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap() 180 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 206 tmp1 = mmap(tmp0, 3 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() 222 MAP_SHARED | MAP_FIXED, data_map_fd, 0); in test_mmap() 232 tmp2 = mmap(tmp1, 4 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() 253 tmp1 = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() [all …]
|
H A D | ringbuf.c | 107 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 116 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, page_size); in ringbuf_subtest() 122 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in ringbuf_subtest() 126 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 3 * page_size); in ringbuf_subtest() 128 mmap_ptr = mmap(NULL, 2 * page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in ringbuf_subtest() 132 mmap_ptr = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 142 mmap_ptr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rb_fd, page_size); in ringbuf_subtest()
|
/openbmc/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_child_memory.c | 171 evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), in main() 175 evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED), in main() 179 evaluate_test(check_child_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_SHARED), in main() 184 evaluate_test(check_child_file_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), in main() 188 evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED), in main() 192 evaluate_test(check_child_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_SHARED), in main()
|
H A D | check_mmap_options.c | 227 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main() 229 evaluate_test(check_anonymous_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main() 235 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main() 237 …evaluate_test(check_anonymous_memory_mapping(USE_MPROTECT, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON… in main() 244 evaluate_test(check_file_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main() 246 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main() 252 evaluate_test(check_file_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main() 254 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
|
H A D | check_ksm_options.c | 157 evaluate_test(check_madvise_options(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), in main() 159 evaluate_test(check_madvise_options(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED), in main()
|
/openbmc/linux/arch/arm/mm/ |
H A D | mmap.c | 44 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area() 50 if (aliasing && flags & MAP_SHARED && in arch_get_unmapped_area() 97 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area_topdown() 104 if (aliasing && flags & MAP_SHARED && in arch_get_unmapped_area_topdown()
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | syscall.c | 67 if ((flags & MAP_SHARED) && in arch_get_unmapped_area() 78 if (flags & MAP_SHARED) in arch_get_unmapped_area() 90 if (flags & MAP_SHARED) in arch_get_unmapped_area()
|
/openbmc/linux/tools/include/uapi/asm-generic/ |
H A D | mman-common-tools.h | 18 #ifndef MAP_SHARED 19 #define MAP_SHARED 0x01 /* Share changes */ macro
|
/openbmc/linux/arch/sh/mm/ |
H A D | mmap.c | 66 if ((flags & MAP_SHARED) && in arch_get_unmapped_area() 76 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area() 115 if ((flags & MAP_SHARED) && in arch_get_unmapped_area_topdown() 125 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libx86-1/libx86-1.1/ |
H A D | libx86-mmap-offset.patch | 67 + int fd_zero, flags = MAP_SHARED; 80 - MAP_FIXED | MAP_SHARED, fd_zero, 0); 151 - MAP_FIXED | MAP_SHARED, fd_mem, 0); 154 + MAP_FIXED | MAP_SHARED, fd_mem, 0); 167 MAP_FIXED | MAP_SHARED, fd_mem, 0xa0000);
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | hugepage-mremap.c | 33 #define FLAGS (MAP_SHARED | MAP_ANONYMOUS) 134 MAP_HUGETLB | MAP_SHARED | MAP_POPULATE, fd, 0); in main() 144 MAP_HUGETLB | MAP_SHARED | MAP_POPULATE, fd, 0); in main()
|
H A D | hugepage-mmap.c | 32 #define FLAGS (MAP_SHARED | MAP_FIXED) 35 #define FLAGS (MAP_SHARED)
|
H A D | write_to_hugetlbfs.c | 174 (private ? MAP_PRIVATE : MAP_SHARED) | in main() 188 MAP_SHARED) | in main()
|
/openbmc/linux/arch/csky/abiv1/ |
H A D | mmap.c | 37 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area() 43 if (flags & MAP_SHARED && in arch_get_unmapped_area()
|
/openbmc/hiomapd/vpnor/test/ |
H A D | write_patch.cpp | 65 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main() 74 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
|
H A D | write_rw.cpp | 54 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main() 90 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
|
/openbmc/phosphor-mboxd/vpnor/test/ |
H A D | write_patch.cpp | 62 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main() 71 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
|
H A D | write_rw.cpp | 50 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main() 86 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
|
/openbmc/linux/arch/arc/mm/ |
H A D | mmap.c | 42 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area() 48 if (aliasing && flags & MAP_SHARED && in arch_get_unmapped_area()
|
/openbmc/linux/arch/mips/mm/ |
H A D | mmap.c | 51 if ((flags & MAP_SHARED) && in arch_get_unmapped_area_common() 58 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_common()
|
/openbmc/qemu/ebpf/ |
H A D | ebpf_rss.c | 57 PROT_READ | PROT_WRITE, MAP_SHARED, in ebpf_rss_mmap() 64 PROT_READ | PROT_WRITE, MAP_SHARED, in ebpf_rss_mmap() 71 PROT_READ | PROT_WRITE, MAP_SHARED, in ebpf_rss_mmap()
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | mmap.c | 41 if ((flags & MAP_SHARED) && in arch_get_unmapped_area_common() 48 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_common()
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/ |
H A D | lpc_nuvoton.cpp | 57 0, memoryRegionSize, PROT_READ, MAP_SHARED, mappedFd, regionAddress)); in open() 176 sys->mmap(nullptr, pageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, in mapWindow()
|
/openbmc/phosphor-ipmi-flash/tools/ |
H A D | io.cpp | 31 devMemMapped = sys->mmap(0, alignedSize, PROT_READ, MAP_SHARED, devMemFd, in read() 70 devMemMapped = sys->mmap(0, alignedSize, PROT_WRITE, MAP_SHARED, devMemFd, in write()
|
/openbmc/linux/tools/testing/selftests/mincore/ |
H A D | mincore_selftest.c | 51 MAP_SHARED | MAP_ANONYMOUS, -1, 0); in TEST() 232 MAP_SHARED, fd, 0); in TEST() 331 MAP_SHARED, fd, 0); in TEST()
|