Home
last modified time | relevance | path

Searched refs:MAP_SHARED (Results 1 – 25 of 236) sorted by relevance

12345678910

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dmmap.c61 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 Dringbuf.c107 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 Dcheck_child_memory.c171 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 Dcheck_mmap_options.c227 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 Dcheck_ksm_options.c157 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 Dmmap.c44 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 Dsyscall.c67 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 Dmman-common-tools.h18 #ifndef MAP_SHARED
19 #define MAP_SHARED 0x01 /* Share changes */ macro
/openbmc/linux/arch/sh/mm/
H A Dmmap.c66 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 Dlibx86-mmap-offset.patch67 + 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 Dhugepage-mremap.c33 #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 Dhugepage-mmap.c32 #define FLAGS (MAP_SHARED | MAP_FIXED)
35 #define FLAGS (MAP_SHARED)
H A Dwrite_to_hugetlbfs.c174 (private ? MAP_PRIVATE : MAP_SHARED) | in main()
188 MAP_SHARED) | in main()
/openbmc/linux/arch/csky/abiv1/
H A Dmmap.c37 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 Dwrite_patch.cpp65 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 Dwrite_rw.cpp54 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 Dwrite_patch.cpp62 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 Dwrite_rw.cpp50 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 Dmmap.c42 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 Dmmap.c51 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 Debpf_rss.c57 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 Dmmap.c41 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 Dlpc_nuvoton.cpp57 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 Dio.cpp31 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 Dmincore_selftest.c51 MAP_SHARED | MAP_ANONYMOUS, -1, 0); in TEST()
232 MAP_SHARED, fd, 0); in TEST()
331 MAP_SHARED, fd, 0); in TEST()

12345678910