/tools/testing/selftests/vm/ |
D | virtual_address_range.c | 89 PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in validate_lower_address_hint() 105 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main() 121 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
|
D | mlock2-tests.c | 197 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock() 260 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault() 302 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present() 338 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 364 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 419 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management()
|
D | map_populate.c | 57 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f() 87 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main()
|
D | on-fault-limit.c | 29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
|
D | transhuge-stress.c | 35 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge() 89 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in main()
|
D | hugepage-mmap.c | 28 #define PROTECTION (PROT_READ | PROT_WRITE)
|
/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
|
D | prot_sao.c | 29 p = mmap(NULL, SIZE, PROT_READ | PROT_WRITE | PROT_SAO, in test_prot_sao()
|
D | large_vm_fork_separation.c | 34 p = mmap((void *)(512ul << 40), page_size, PROT_READ | PROT_WRITE, in test()
|
/tools/io_uring/ |
D | setup.c | 18 ptr = mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap() 31 sq->sqes = mmap(0, size, PROT_READ | PROT_WRITE, in io_uring_mmap() 42 ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap()
|
/tools/testing/selftests/powerpc/primitives/ |
D | load_unaligned_zeropad.c | 53 if (mprotect(mem_region + page_size, page_size, PROT_READ|PROT_WRITE)) { in unprotect_region() 126 mem_region = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE, in test_body()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-force-tm.c | 60 PROT_READ | PROT_WRITE, in usr_signal_handler() 130 ss.ss_sp = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, in tm_trap_test()
|
D | tm-vmxcopy.c | 60 a = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in test_vmxcopy()
|
/tools/arch/mips/include/uapi/asm/ |
D | mman.h | 38 #define PROT_WRITE 0x02 macro
|
/tools/arch/alpha/include/uapi/asm/ |
D | mman.h | 37 #define PROT_WRITE 0x2 macro
|
/tools/arch/parisc/include/uapi/asm/ |
D | mman.h | 37 #define PROT_WRITE 0x2 macro
|
/tools/arch/xtensa/include/uapi/asm/ |
D | mman.h | 37 #define PROT_WRITE 0x2 macro
|
/tools/testing/selftests/x86/ |
D | sysret_ss_attrs.c | 66 unsigned char *stack32 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, in main()
|
/tools/include/uapi/asm-generic/ |
D | mman-common.h | 11 #define PROT_WRITE 0x2 /* page can be written */ macro
|
/tools/testing/selftests/memfd/ |
D | memfd_test.c | 177 PROT_READ | PROT_WRITE, in mfd_assert_mmap_shared() 263 PROT_READ | PROT_WRITE, in mfd_assert_read() 315 PROT_READ | PROT_WRITE, in mfd_assert_write() 329 PROT_WRITE, in mfd_assert_write() 353 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_assert_write() 389 PROT_READ | PROT_WRITE, in mfd_fail_write() 401 PROT_WRITE, in mfd_fail_write() 419 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_fail_write()
|
D | fuse_test.c | 130 PROT_READ | PROT_WRITE, in mfd_assert_mmap_shared() 148 PROT_READ | PROT_WRITE, in mfd_assert_mmap_private()
|
/tools/testing/selftests/proc/ |
D | thread-self.c | 56 stack = mmap(NULL, 2 * PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
|
/tools/testing/selftests/sigaltstack/ |
D | sas.c | 115 sstack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, in main() 159 ustack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, in main()
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | mmap_bench.c | 42 char *c = mmap(NULL, MEMSIZE, PROT_READ|PROT_WRITE, in test_mmap()
|
/tools/testing/selftests/futex/functional/ |
D | futex_wait_uninitialized_heap.c | 91 buf = mmap(NULL, page_size, PROT_READ|PROT_WRITE, in main()
|