Home
last modified time | relevance | path

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

12345678910>>...18

/external/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c88 {PROT_READ, MAP_ANONYMOUS | MAP_SHARED, -1},
90 {PROT_READ, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1},
92 {PROT_READ, MAP_SHARED, 0},
95 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1},
97 {PROT_WRITE, MAP_SHARED, 0},
99 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1},
102 {PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED, -1},
104 {PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1},
106 {PROT_EXEC, MAP_SHARED, 0},
109 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1},
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c41 {.flags = MAP_SHARED,.prot = PROT_NONE},
42 {.flags = MAP_SHARED,.prot = PROT_READ},
43 {.flags = MAP_SHARED,.prot = PROT_WRITE},
44 {.flags = MAP_SHARED,.prot = PROT_EXEC},
45 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE},
46 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_EXEC},
47 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE},
48 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
77 case MAP_SHARED: in print_error()
D7-1.c63 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
80 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
D27-1.c73 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
79 pa = mmap(pa, len / 2, PROT_READ, MAP_SHARED | MAP_FIXED, fd, 0); in main()
D24-2.c71 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
93 pa = mmap(addr, len, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_SHARED, fd, in main()
D11-4.c97 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
138 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
D3-1.c95 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
109 mmap(pa, size2, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd2, in main()
/external/igt-gpu-tools/tests/
Dprime_mmap.c90 ptr2 = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_correct()
117 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap()
123 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap()
146 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime()
155 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime()
179 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_forked()
206 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); in test_correct_cpu_write()
236 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE , MAP_SHARED, dma_buf_fd, 0); in test_forked_cpu_write()
264 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_refcounting()
285 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_dup()
[all …]
Dprime_mmap_coherency.c79 MAP_SHARED, dma_buf_fd, 0); in test_read_flush()
139 MAP_SHARED, dma_buf_fd, 0); in test_write_flush()
159 MAP_SHARED, dma_buf2_fd, 0); in test_write_flush()
204 MAP_SHARED, dma_buf_fd, 0); in blit_and_cmp()
211 MAP_SHARED, dma_buf2_fd, 0); in blit_and_cmp()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dmmap.c59 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()
124 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap()
137 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap()
152 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
171 tmp1 = mmap(NULL, 3 * page_size, PROT_READ, MAP_SHARED, in test_mmap()
185 MAP_SHARED | MAP_FIXED, data_map_fd, 0); in test_mmap()
195 tmp2 = mmap(tmp1, 4 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D3-1-buildonly.c18 #ifndef MAP_SHARED
19 #error MAP_SHARED not defined
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap02.c79 MAP_SHARED, nfildes, 0); in test_hugemmap()
91 MAP_SHARED | MAP_FIXED, nfildes, 0); in test_hugemmap()
103 MAP_SHARED, fildes, 0); in test_hugemmap()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D14-2.c50 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
64 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D28-3.c52 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
74 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D1-1.c51 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
67 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D5-1.c60 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in child_process()
93 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
D28-1.c51 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in main()
84 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in main()
/external/linux-kselftest/tools/testing/selftests/vm/
Dhugepage-mmap.c33 #define FLAGS (MAP_SHARED | MAP_FIXED)
36 #define FLAGS (MAP_SHARED)
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise02.c149 file1 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup()
150 file2 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup()
152 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.c333 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable()
340 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_writeable()
349 PROT_READ, MAP_SHARED, fd, 0); in check_mfd_writeable()
383 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable()
387 PROT_WRITE, MAP_SHARED, fd, 0); in check_mfd_non_writeable()
392 p = mmap(NULL, MFD_DEF_SIZE, PROT_READ, MAP_SHARED, fd, 0); in check_mfd_non_writeable()
/external/linux-kselftest/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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/
D2-1.c74 MAP_SHARED, shm_fd, 0); in main()
133 MAP_SHARED, shm_fd, 0); in main()
D2-2.c82 MAP_SHARED, shm_fd, 0); in main()
139 MAP_SHARED, shm_fd, 0); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/
D2-1.c99 MAP_SHARED, shm_fd, 0); in main()
164 MAP_SHARED, shm_fd, 0); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/
D2-1.c119 MAP_SHARED, shm_fd, 0); in main()
149 PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()

12345678910>>...18