/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | mmap.c | 41 tmp1 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, rdmap_fd, 0); in test_mmap() 47 tmp1 = mmap(NULL, 4096, PROT_READ, MAP_SHARED, rdmap_fd, 0); in test_mmap() 59 bss_mmaped = mmap(NULL, bss_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 67 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 132 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap() 151 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap() 166 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 186 tmp0 = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED | MAP_ANONYMOUS, in test_mmap() 192 tmp1 = mmap(tmp0, 3 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() 208 MAP_SHARED | MAP_FIXED, data_map_fd, 0); in test_mmap() [all …]
|
/Linux-v5.10/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 | 228 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()
|
D | check_user_mem.c | 104 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), in main() 109 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED), in main()
|
D | check_ksm_options.c | 154 evaluate_test(check_madvise_options(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), in main() 156 evaluate_test(check_madvise_options(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED), in main()
|
/Linux-v5.10/arch/sh/mm/ |
D | mmap.c | 46 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-v5.10/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-v5.10/arch/xtensa/kernel/ |
D | syscall.c | 70 if ((flags & MAP_SHARED) && in arch_get_unmapped_area() 81 if (flags & MAP_SHARED) in arch_get_unmapped_area() 93 if (flags & MAP_SHARED) in arch_get_unmapped_area()
|
/Linux-v5.10/tools/include/uapi/asm-generic/ |
D | mman-common-tools.h | 18 #ifndef MAP_SHARED 19 #define MAP_SHARED 0x01 /* Share changes */ macro
|
/Linux-v5.10/tools/testing/selftests/vm/ |
D | hugepage-mmap.c | 33 #define FLAGS (MAP_SHARED | MAP_FIXED) 36 #define FLAGS (MAP_SHARED)
|
D | write_to_hugetlbfs.c | 172 (private ? MAP_PRIVATE : MAP_SHARED) | in main() 186 MAP_SHARED) | in main()
|
/Linux-v5.10/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-v5.10/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-v5.10/arch/nds32/mm/ |
D | mmap.c | 39 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area() 45 if (aliasing && flags & MAP_SHARED && in arch_get_unmapped_area()
|
/Linux-v5.10/tools/io_uring/ |
D | setup.c | 19 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-v5.10/tools/testing/selftests/memfd/ |
D | memfd_test.c | 178 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-v5.10/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-v5.10/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 52 MAP_SHARED | MAP_ANONYMOUS, -1, 0); in TEST() 227 MAP_SHARED, fd, 0); in TEST() 324 MAP_SHARED, fd, 0); in TEST()
|
/Linux-v5.10/arch/parisc/kernel/ |
D | sys_parisc.c | 96 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area() 101 if ((flags & MAP_SHARED) && last_mmap && in arch_get_unmapped_area() 152 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown() 157 if ((flags & MAP_SHARED) && last_mmap && in arch_get_unmapped_area_topdown()
|
/Linux-v5.10/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-v5.10/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-v5.10/include/uapi/linux/ |
D | mman.h | 16 #define MAP_SHARED 0x01 /* Share changes */ macro
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | mman.h | 16 #define MAP_SHARED 0x01 /* Share changes */ macro
|
/Linux-v5.10/tools/testing/selftests/android/ion/ |
D | ionutils.c | 118 MAP_SHARED, buffer_fd, 0); in ion_export_buffer_fd() 171 MAP_SHARED, buffd, 0); in ion_import_buffer_fd()
|