/external/ltp/testcases/kernel/syscalls/pkeys/ |
D | pkey01.c | 88 {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/ |
D | 5-1.c | 41 {.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()
|
D | 7-1.c | 63 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()
|
D | 27-1.c | 73 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()
|
D | 24-2.c | 71 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()
|
D | 11-4.c | 97 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()
|
D | 3-1.c | 95 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/ |
D | prime_mmap.c | 90 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 …]
|
D | prime_mmap_coherency.c | 79 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/ |
D | mmap.c | 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() 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/ |
D | 3-1-buildonly.c | 18 #ifndef MAP_SHARED 19 #error MAP_SHARED not defined
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap02.c | 79 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/ |
D | 14-2.c | 50 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()
|
D | 28-3.c | 52 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()
|
D | 1-1.c | 51 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()
|
D | 5-1.c | 60 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()
|
D | 28-1.c | 51 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/ |
D | hugepage-mmap.c | 33 #define FLAGS (MAP_SHARED | MAP_FIXED) 36 #define FLAGS (MAP_SHARED)
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise02.c | 149 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/ |
D | memfd_create_common.c | 333 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/ |
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()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
D | 2-1.c | 74 MAP_SHARED, shm_fd, 0); in main() 133 MAP_SHARED, shm_fd, 0); in main()
|
D | 2-2.c | 82 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/ |
D | 2-1.c | 99 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/ |
D | 2-1.c | 119 MAP_SHARED, shm_fd, 0); in main() 149 PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()
|