/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | mmap.c | 55 tmp1 = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rdmap_fd, 0); in test_mmap() 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() 200 tmp0 = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED | MAP_ANONYMOUS, 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() [all …]
|
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()
|
D | user_ringbuf.c | 111 mmap_ptr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rb_fd, 0); in test_user_ringbuf_mappings() 121 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, in test_user_ringbuf_mappings() 130 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, in test_user_ringbuf_mappings() 214 MAP_SHARED, rb_fd, page_size); in manually_write_test_invalid_sample() 218 data_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in manually_write_test_invalid_sample()
|
/Linux-v6.6/tools/testing/selftests/arm64/mte/ |
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()
|
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()
|
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()
|
D | check_user_mem.c | 178 case MAP_SHARED: in format_test_name() 199 int maps[] = {MAP_SHARED, MAP_PRIVATE}; in main()
|
/Linux-v6.6/arch/arm/mm/ |
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()
|
/Linux-v6.6/arch/xtensa/kernel/ |
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()
|
/Linux-v6.6/tools/include/uapi/asm-generic/ |
D | mman-common-tools.h | 18 #ifndef MAP_SHARED 19 #define MAP_SHARED 0x01 /* Share changes */ macro
|
/Linux-v6.6/arch/sh/mm/ |
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()
|
/Linux-v6.6/tools/testing/selftests/mm/ |
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()
|
D | hugepage-mmap.c | 32 #define FLAGS (MAP_SHARED | MAP_FIXED) 35 #define FLAGS (MAP_SHARED)
|
D | write_to_hugetlbfs.c | 172 (private ? MAP_PRIVATE : MAP_SHARED) | in main() 186 MAP_SHARED) | in main()
|
/Linux-v6.6/arch/csky/abiv1/ |
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()
|
/Linux-v6.6/arch/arc/mm/ |
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()
|
/Linux-v6.6/arch/mips/mm/ |
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()
|
/Linux-v6.6/arch/loongarch/mm/ |
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()
|
/Linux-v6.6/tools/testing/selftests/mincore/ |
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()
|
/Linux-v6.6/arch/sparc/kernel/ |
D | sys_sparc_64.c | 102 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()
|
D | sys_sparc_32.c | 50 if ((flags & MAP_SHARED) && in arch_get_unmapped_area() 66 info.align_mask = (flags & MAP_SHARED) ? in arch_get_unmapped_area()
|
/Linux-v6.6/arch/s390/mm/ |
D | mmap.c | 100 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area() 141 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
|
/Linux-v6.6/tools/testing/selftests/memfd/ |
D | memfd_test.c | 276 MAP_SHARED, in mfd_assert_mmap_shared() 381 MAP_SHARED, in mfd_assert_read_shared() 448 MAP_SHARED, in mfd_assert_write() 462 MAP_SHARED, in mfd_assert_write() 477 MAP_SHARED, in mfd_assert_write() 522 MAP_SHARED, in mfd_fail_write() 534 MAP_SHARED, in mfd_fail_write() 547 MAP_SHARED, in mfd_fail_write()
|
/Linux-v6.6/tools/lib/bpf/ |
D | ringbuf.c | 119 tmp = mmap(NULL, rb->page_size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in ring_buffer__add() 137 tmp = mmap(NULL, (size_t)mmap_sz, PROT_READ, MAP_SHARED, map_fd, rb->page_size); in ring_buffer__add() 378 tmp = mmap(NULL, rb->page_size, PROT_READ, MAP_SHARED, map_fd, 0); in user_ringbuf_map() 397 tmp = mmap(NULL, (size_t)mmap_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in user_ringbuf_map()
|
/Linux-v6.6/tools/testing/selftests/dmabuf-heaps/ |
D | dmabuf-heap.c | 165 MAP_SHARED, in test_alloc_and_import() 240 p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd[i], 0); in test_alloc_zeroed() 264 p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd[i], 0); in test_alloc_zeroed()
|