Searched refs:prot_flag (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/arm64/mte/ |
D | mte_common_util.c | 124 int prot_flag, map_flag; in __mte_allocate_memory_range() local 135 prot_flag = PROT_READ | PROT_WRITE; in __mte_allocate_memory_range() 137 prot_flag |= PROT_MTE; in __mte_allocate_memory_range() 144 ptr = mmap(NULL, entire_size, prot_flag, map_flag, fd, 0); in __mte_allocate_memory_range() 150 if (mprotect(ptr, entire_size, prot_flag | PROT_MTE)) { in __mte_allocate_memory_range()
|
D | check_mmap_options.c | 134 int run, prot_flag, result, fd, map_size; in check_clear_prot_mte_flag() local 137 prot_flag = PROT_READ | PROT_WRITE; in check_clear_prot_mte_flag() 148 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag() 171 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag()
|