/system/core/libion/ |
D | ion_test.c | 34 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()
|
D | ion.c | 91 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, in ion_map() argument 112 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset); in ion_map()
|
/system/core/libcutils/tests/ |
D | AshmemTest.cpp | 25 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { in TestCreateRegion() argument 30 ASSERT_EQ(0, ashmem_set_prot_region(fd, prot)); in TestCreateRegion() 33 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap() argument 34 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); in TestMmap() 38 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { in TestProtDenied() argument 39 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0)); in TestProtDenied() 42 void TestProtIs(const unique_fd& fd, int prot) { in TestProtIs() argument 43 EXPECT_EQ(prot, ioctl(fd, ASHMEM_GET_PROT_MASK)); in TestProtIs()
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 106 mmap_do_io(void *db_node, int prot, off_t offset, size_t len, in mmap_do_io() argument 113 if (!(prot & IOSHARK_PROT_WRITE)) { in mmap_do_io() 172 int prot = file_op->mmap_prot; in ioshark_handle_mmap() local 188 mmap_do_io(db_node, prot, offset, len, in ioshark_handle_mmap() 198 mmap_do_io(db_node, prot, offset, len, bufp, buflen, in ioshark_handle_mmap()
|
D | ioshark.h | 96 #define mmap_prot u.mmap_a.prot 100 int prot; member
|
D | compile_ioshark.c | 244 get_mmap_offset_len_prot(char *buf, int *prot, off_t *offset, u_int64_t *len) in get_mmap_offset_len_prot() argument 273 *prot = 0; in get_mmap_offset_len_prot() 275 *prot |= IOSHARK_PROT_READ; in get_mmap_offset_len_prot() 277 *prot |= IOSHARK_PROT_WRITE; in get_mmap_offset_len_prot()
|
/system/core/libutils/ |
D | FileMap.cpp | 171 int prot, flags, adjust; in create() 195 prot = PROT_READ; in create() 197 prot |= PROT_WRITE; in create() 199 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset); in create()
|
/system/core/libmemunreachable/ |
D | PtracerThread.cpp | 43 int prot = PROT_READ | PROT_WRITE; in Stack() local 47 base_ = mmap(NULL, size_, prot, flags, -1, 0); in Stack()
|
D | Allocator.cpp | 120 const int prot = PROT_READ | PROT_WRITE; in MapAligned() local 131 void* ptr = mmap(NULL, map_size, prot, flags, -1, 0); in MapAligned()
|
/system/core/libcutils/include/cutils/ |
D | ashmem.h | 25 int ashmem_set_prot_region(int fd, int prot);
|
/system/core/libcutils/include_vndk/cutils/ |
D | ashmem.h | 25 int ashmem_set_prot_region(int fd, int prot);
|
/system/core/libcutils/ |
D | ashmem-dev.c | 183 int ashmem_set_prot_region(int fd, int prot) in ashmem_set_prot_region() argument 190 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot)); in ashmem_set_prot_region()
|
D | ashmem-host.c | 58 int ashmem_set_prot_region(int fd __unused, int prot __unused) in ashmem_set_prot_region()
|
/system/core/libion/include/ion/ |
D | ion.h | 39 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot,
|
/system/extras/simpleperf/ |
D | record.h | 295 uint32_t prot, flags; member
|
D | record.cpp | 288 PrintIndented(indent, "prot %u, flags %u, filenames %s\n", data->prot, in DumpData()
|