Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 11 of 11) sorted by relevance

/system/core/libion/
Dion_test.c34 int prot = PROT_READ | PROT_WRITE; variable
83 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd); in ion_map_test()
110 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd); in ion_map_test()
144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test()
201 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0); in ion_share_test()
251 prot = 0; in main()
252 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; in main()
253 prot |= strstr(optarg, "MAP_SHARED") ? MAP_PRIVATE : 0; in main()
273 " alloc_flags %d\n", test, len, align, map_flags, prot, in main()
Dion.c90 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, in ion_map() argument
111 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset); in ion_map()
/system/core/libutils/
DFileMap.cpp163 int prot, flags, adjust; in create()
187 prot = PROT_READ; in create()
189 prot |= PROT_WRITE; in create()
191 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset); in create()
/system/core/libmemunreachable/
DPtracerThread.cpp41 int prot = PROT_READ | PROT_WRITE; in Stack() local
45 base_ = mmap(NULL, size_, prot, flags, -1, 0); in Stack()
DAllocator.cpp122 const int prot = PROT_READ | PROT_WRITE; in MapAligned() local
133 void* ptr = mmap(NULL, map_size, prot, flags, -1, 0); in MapAligned()
/system/core/include/cutils/
Dashmem.h20 int ashmem_set_prot_region(int fd, int prot);
/system/core/libcutils/
Dashmem-dev.c176 int ashmem_set_prot_region(int fd, int prot) in ashmem_set_prot_region() argument
183 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot)); in ashmem_set_prot_region()
Dashmem-host.c58 int ashmem_set_prot_region(int fd __unused, int prot __unused) in ashmem_set_prot_region()
/system/core/libion/include/ion/
Dion.h39 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot,
/system/extras/simpleperf/
Drecord.h193 uint32_t prot, flags; member
Drecord.cpp251 PrintIndented(indent, "prot %u, flags %u, filenames %s\n", data.prot, data.flags, in DumpData()