Home
last modified time | relevance | path

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

123456

/linux/tools/testing/selftests/bpf/prog_tests/
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 …]
A Dringbuf.c105 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in test_ringbuf()
114 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, page_size); in test_ringbuf()
120 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in test_ringbuf()
124 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 3 * page_size); in test_ringbuf()
126 mmap_ptr = mmap(NULL, 2 * page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in test_ringbuf()
130 mmap_ptr = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED, rb_fd, 0); in test_ringbuf()
140 mmap_ptr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rb_fd, page_size); in test_ringbuf()
/linux/tools/testing/selftests/arm64/mte/
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()
A Dcheck_mmap_options.c228 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
230 evaluate_test(check_anonymous_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
236 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
238 …evaluate_test(check_anonymous_memory_mapping(USE_MPROTECT, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON… in main()
245 evaluate_test(check_file_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
247 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
253 evaluate_test(check_file_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
255 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_ASYNC_ERR, MAP_SHARED, TAG_CHECK_ON), in main()
A Dcheck_user_mem.c105 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), in main()
110 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED), in main()
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()
/linux/arch/sh/mm/
A Dmmap.c46 if ((flags & MAP_SHARED) && in arch_get_unmapped_area()
56 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
95 if ((flags & MAP_SHARED) && in arch_get_unmapped_area_topdown()
105 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
/linux/arch/arm/mm/
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()
/linux/arch/xtensa/kernel/
A Dsyscall.c66 if ((flags & MAP_SHARED) && in arch_get_unmapped_area()
77 if (flags & MAP_SHARED) in arch_get_unmapped_area()
89 if (flags & MAP_SHARED) in arch_get_unmapped_area()
/linux/tools/include/uapi/asm-generic/
A Dmman-common-tools.h18 #ifndef MAP_SHARED
19 #define MAP_SHARED 0x01 /* Share changes */ macro
/linux/tools/testing/selftests/vm/
A Dhugepage-mremap.c24 #define FLAGS (MAP_SHARED | MAP_ANONYMOUS)
116 MAP_HUGETLB | MAP_SHARED | MAP_POPULATE, fd, 0); in main()
126 MAP_HUGETLB | MAP_SHARED | MAP_POPULATE, fd, 0); in main()
A Dhugepage-mmap.c33 #define FLAGS (MAP_SHARED | MAP_FIXED)
36 #define FLAGS (MAP_SHARED)
A Dwrite_to_hugetlbfs.c172 (private ? MAP_PRIVATE : MAP_SHARED) | in main()
186 MAP_SHARED) | in main()
/linux/tools/io_uring/
A Dsetup.c19 MAP_SHARED | MAP_POPULATE, fd, IORING_OFF_SQ_RING); in io_uring_mmap()
32 MAP_SHARED | MAP_POPULATE, fd, in io_uring_mmap()
43 MAP_SHARED | MAP_POPULATE, fd, IORING_OFF_CQ_RING); in io_uring_mmap()
/linux/tools/testing/selftests/memfd/
A Dmemfd_test.c178 MAP_SHARED, in mfd_assert_mmap_shared()
283 MAP_SHARED, in mfd_assert_read_shared()
350 MAP_SHARED, in mfd_assert_write()
364 MAP_SHARED, in mfd_assert_write()
379 MAP_SHARED, in mfd_assert_write()
424 MAP_SHARED, in mfd_fail_write()
436 MAP_SHARED, in mfd_fail_write()
449 MAP_SHARED, in mfd_fail_write()
/linux/arch/csky/abiv1/
A Dmmap.c37 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
43 if (flags & MAP_SHARED && in arch_get_unmapped_area()
/linux/arch/nds32/mm/
A Dmmap.c39 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
45 if (aliasing && flags & MAP_SHARED && in arch_get_unmapped_area()
/linux/arch/arc/mm/
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()
/linux/arch/mips/mm/
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()
/linux/tools/testing/selftests/mincore/
A Dmincore_selftest.c51 MAP_SHARED | MAP_ANONYMOUS, -1, 0); in TEST()
226 MAP_SHARED, fd, 0); in TEST()
323 MAP_SHARED, fd, 0); in TEST()
/linux/arch/parisc/kernel/
A Dsys_parisc.c115 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
120 if ((flags & MAP_SHARED) && last_mmap && in arch_get_unmapped_area()
171 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
176 if ((flags & MAP_SHARED) && last_mmap && in arch_get_unmapped_area_topdown()
/linux/arch/sparc/kernel/
A Dsys_sparc_64.c102 if ((flags & MAP_SHARED) && in arch_get_unmapped_area()
114 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
166 if ((flags & MAP_SHARED) && in arch_get_unmapped_area_topdown()
176 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
230 flags &= ~MAP_SHARED; in get_fb_unmapped_area()
A Dsys_sparc_32.c50 if ((flags & MAP_SHARED) && in arch_get_unmapped_area()
66 info.align_mask = (flags & MAP_SHARED) ? in arch_get_unmapped_area()
/linux/arch/s390/mm/
A Dmmap.c100 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
141 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
/linux/tools/testing/selftests/dmabuf-heaps/
A Ddmabuf-heap.c166 MAP_SHARED, in test_alloc_and_import()
241 p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd[i], 0); in test_alloc_zeroed()
265 p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd[i], 0); in test_alloc_zeroed()

Completed in 38 milliseconds

123456