/system/core/include/cutils/ |
H A D | ashmem.h | 25 int ashmem_set_prot_region(int fd, int prot);
|
/system/core/libcutils/include/cutils/ |
H A D | ashmem.h | 25 int ashmem_set_prot_region(int fd, int prot);
|
/system/core/libcutils/include_vndk/cutils/ |
H A D | ashmem.h | 25 int ashmem_set_prot_region(int fd, int prot);
|
/system/core/libion/ |
H A 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); 110 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd); 144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); 201 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0); 229 {"prot", required_argument, 0, 'p'}, 251 prot = 0; 252 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; 253 prot |= strstr(optarg, "MAP_SHARED") ? MAP_SHARED : 0; 272 printf("test %d, len %zu, align %zu, map_flags %d, prot [all...] |
H A D | ion.c | 103 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, int flags, off_t offset, argument 121 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset);
|
/system/extras/ioshark/ |
H A D | ioshark.h | 68 /* mmap prot flags */ 104 #define mmap_prot u.mmap_a.prot 108 u_int32_t prot; member in struct:ioshark_file_operation::__anon1871::mmap_args
|
H A D | ioshark_bench_mmap.c | 106 mmap_do_io(void *db_node, int prot, off_t offset, size_t len, argument 113 if (!(prot & IOSHARK_PROT_WRITE)) { 172 int prot = file_op->mmap_prot; local 188 mmap_do_io(db_node, prot, offset, len, 198 mmap_do_io(db_node, prot, offset, len, bufp, buflen,
|
H A D | convert_format.c | 62 #define mmap_prot_old u.mmap_a.prot 66 int prot; member in struct:ioshark_file_operation_old::__anon1869::mmap_args_old
|
H A D | compile_ioshark.c | 244 get_mmap_offset_len_prot(char *buf, int *prot, off_t *offset, u_int64_t *len) argument 273 *prot = 0; 275 *prot |= IOSHARK_PROT_READ; 277 *prot |= IOSHARK_PROT_WRITE;
|
/system/core/libion/include/ion/ |
H A D | ion.h | 39 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot,
|
/system/core/libcutils/tests/ |
H A D | AshmemTest.cpp | 32 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { argument 37 ASSERT_EQ(0, ashmem_set_prot_region(fd, prot)); 40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { argument 43 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); 47 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { argument 50 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0)); 53 void TestProtIs(const unique_fd& fd, int prot) { argument 56 EXPECT_EQ(prot, ioctl(fd, ASHMEM_GET_PROT_MASK));
|
/system/core/libmemunreachable/ |
H A D | PtracerThread.cpp | 43 int prot = PROT_READ | PROT_WRITE; local 47 base_ = mmap(NULL, size_, prot, flags, -1, 0);
|
H A D | Allocator.cpp | 120 const int prot = PROT_READ | PROT_WRITE; local 131 void* ptr = mmap(NULL, map_size, prot, flags, -1, 0);
|
/system/core/libutils/ |
H A D | FileMap.cpp | 171 int prot, flags, adjust; 195 prot = PROT_READ; 197 prot |= PROT_WRITE; 199 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset);
|
/system/core/libcutils/ |
H A D | ashmem-dev.cpp | 183 int ashmem_set_prot_region(int fd, int prot) argument 190 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot));
|
/system/extras/simpleperf/ |
H A D | record.h | 300 uint32_t prot, flags; member in struct:Mmap2Record::Mmap2RecordDataType
|
H A D | record.cpp | 292 PrintIndented(indent, "prot %u, flags %u, filenames %s\n", data->prot,
|