Home
last modified time | relevance | path

Searched refs:PROT_READ (Results 1 – 25 of 77) sorted by relevance

1234

/tools/testing/selftests/vm/
Dvirtual_address_range.c88 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()
Dmlock2-tests.c197 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()
Dmap_populate.c57 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f()
87 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main()
Don-fault-limit.c29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
Dtranshuge-stress.c35 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()
Dhugepage-mmap.c28 #define PROTECTION (PROT_READ | PROT_WRITE)
/tools/testing/selftests/powerpc/mm/
Dhugetlb_vs_thp_test.c18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
Dprot_sao.c29 p = mmap(NULL, SIZE, PROT_READ | PROT_WRITE | PROT_SAO, in test_prot_sao()
/tools/testing/selftests/memfd/
Dmemfd_test.c177 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 …]
Dfuse_test.c130 PROT_READ | PROT_WRITE, in mfd_assert_mmap_shared()
148 PROT_READ | PROT_WRITE, in mfd_assert_mmap_private()
/tools/io_uring/
Dsetup.c18 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/
Dload_unaligned_zeropad.c53 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/
Dtm-signal-context-force-tm.c60 PROT_READ | PROT_WRITE, in usr_signal_handler()
130 ss.ss_sp = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, in tm_trap_test()
Dtm-vmxcopy.c60 a = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in test_vmxcopy()
/tools/arch/mips/include/uapi/asm/
Dmman.h36 #define PROT_READ 0x01 macro
/tools/arch/alpha/include/uapi/asm/
Dmman.h35 #define PROT_READ 0x1 macro
/tools/arch/parisc/include/uapi/asm/
Dmman.h35 #define PROT_READ 0x1 macro
/tools/arch/xtensa/include/uapi/asm/
Dmman.h35 #define PROT_READ 0x1 macro
/tools/testing/selftests/x86/
Dsysret_ss_attrs.c66 unsigned char *stack32 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, in main()
/tools/include/uapi/asm-generic/
Dmman-common.h10 #define PROT_READ 0x1 /* page can be read */ macro
/tools/testing/selftests/proc/
Dthread-self.c56 stack = mmap(NULL, 2 * PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
/tools/testing/selftests/sigaltstack/
Dsas.c115 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/
Dmmap_bench.c42 char *c = mmap(NULL, MEMSIZE, PROT_READ|PROT_WRITE, in test_mmap()
/tools/power/acpi/os_specific/service_layers/
Dosunixmap.c83 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, in acpi_os_map_memory()
/tools/testing/selftests/ptrace/
Dpeeksiginfo.c54 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()

1234