/tools/testing/selftests/vm/ |
D | virtual_address_range.c | 88 ptr = mmap((void *) (1UL << 45), MAP_CHUNK_SIZE, PROT_READ | 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()
|
/tools/testing/selftests/memfd/ |
D | memfd_test.c | 177 PROT_READ | PROT_WRITE, in mfd_assert_mmap_shared() 195 PROT_READ, in mfd_assert_mmap_private() 250 PROT_READ, in mfd_assert_read() 263 PROT_READ | PROT_WRITE, in mfd_assert_read() 282 PROT_READ, in mfd_assert_read_shared() 315 PROT_READ | PROT_WRITE, in mfd_assert_write() 344 PROT_READ, 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() 414 PROT_READ, in mfd_fail_write() [all …]
|
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/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 | 36 #define PROT_READ 0x01 macro
|
/tools/arch/alpha/include/uapi/asm/ |
D | mman.h | 35 #define PROT_READ 0x1 macro
|
/tools/arch/parisc/include/uapi/asm/ |
D | mman.h | 35 #define PROT_READ 0x1 macro
|
/tools/arch/xtensa/include/uapi/asm/ |
D | mman.h | 35 #define PROT_READ 0x1 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 | 10 #define PROT_READ 0x1 /* page can be read */ macro
|
/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/power/acpi/os_specific/service_layers/ |
D | osunixmap.c | 83 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, in acpi_os_map_memory()
|
/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 54 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, in check_error_paths() 61 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, in check_error_paths()
|