Home
last modified time | relevance | path

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

12345

/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dmmap.c41 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/
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()
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()
Dcheck_user_mem.c104 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()
Dcheck_ksm_options.c154 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/
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-v5.10/arch/arm/mm/
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-v5.10/arch/xtensa/kernel/
Dsyscall.c70 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/
Dmman-common-tools.h18 #ifndef MAP_SHARED
19 #define MAP_SHARED 0x01 /* Share changes */ macro
/Linux-v5.10/tools/testing/selftests/vm/
Dhugepage-mmap.c33 #define FLAGS (MAP_SHARED | MAP_FIXED)
36 #define FLAGS (MAP_SHARED)
Dwrite_to_hugetlbfs.c172 (private ? MAP_PRIVATE : MAP_SHARED) | in main()
186 MAP_SHARED) | in main()
/Linux-v5.10/arch/csky/abiv1/
Dmmap.c37 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/
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-v5.10/arch/nds32/mm/
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-v5.10/tools/io_uring/
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-v5.10/tools/testing/selftests/memfd/
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-v5.10/arch/mips/mm/
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-v5.10/tools/testing/selftests/mincore/
Dmincore_selftest.c52 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/
Dsys_parisc.c96 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/
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()
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-v5.10/arch/s390/mm/
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-v5.10/include/uapi/linux/
Dmman.h16 #define MAP_SHARED 0x01 /* Share changes */ macro
/Linux-v5.10/tools/include/uapi/linux/
Dmman.h16 #define MAP_SHARED 0x01 /* Share changes */ macro
/Linux-v5.10/tools/testing/selftests/android/ion/
Dionutils.c118 MAP_SHARED, buffer_fd, 0); in ion_export_buffer_fd()
171 MAP_SHARED, buffd, 0); in ion_import_buffer_fd()

12345