/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_PRIVATE : 0; 272 printf("test %d, len %zu, align %zu, map_flags %d, prot [all...] |
H A D | ion.c | 91 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, argument 112 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset);
|
/system/extras/ioshark/ |
H A D | ioshark.h | 64 /* mmap prot flags */ 96 #define mmap_prot u.mmap_a.prot 100 int prot; member in struct:ioshark_file_operation::__anon1713::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 | 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 | 24 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { argument 29 ASSERT_EQ(0, ashmem_set_prot_region(fd, prot)); 32 void TestMmap(const unique_fd &fd, size_t size, int prot, void **region) { argument 33 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, 0); 37 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { argument 38 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0));
|
/system/core/libmemunreachable/ |
H A D | PtracerThread.cpp | 41 int prot = PROT_READ | PROT_WRITE; local 45 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/libcutils/ |
H A D | ashmem-host.c | 58 int ashmem_set_prot_region(int fd __unused, int prot __unused)
|
H A D | ashmem-dev.c | 182 int ashmem_set_prot_region(int fd, int prot) argument 189 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot));
|
/system/core/libutils/ |
H A D | FileMap.cpp | 163 int prot, flags, adjust; 187 prot = PROT_READ; 189 prot |= PROT_WRITE; 191 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset);
|
/system/extras/simpleperf/ |
H A D | record.h | 295 uint32_t prot, flags; member in struct:Mmap2Record::Mmap2RecordDataType
|
H A D | record.cpp | 288 PrintIndented(indent, "prot %u, flags %u, filenames %s\n", data->prot,
|