Searched refs:prot (Results 1 - 17 of 17) sorted by relevance

/system/core/include/cutils/
H A Dashmem.h25 int ashmem_set_prot_region(int fd, int prot);
/system/core/libcutils/include/cutils/
H A Dashmem.h25 int ashmem_set_prot_region(int fd, int prot);
/system/core/libcutils/include_vndk/cutils/
H A Dashmem.h25 int ashmem_set_prot_region(int fd, int prot);
/system/core/libion/
H A Dion_test.c34 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 Dion.c91 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 Dioshark.h64 /* 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 Dioshark_bench_mmap.c106 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 Dcompile_ioshark.c244 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 Dion.h39 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot,
/system/core/libcutils/tests/
H A DAshmemTest.cpp24 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 DPtracerThread.cpp41 int prot = PROT_READ | PROT_WRITE; local
45 base_ = mmap(NULL, size_, prot, flags, -1, 0);
H A DAllocator.cpp120 const int prot = PROT_READ | PROT_WRITE; local
131 void* ptr = mmap(NULL, map_size, prot, flags, -1, 0);
/system/core/libcutils/
H A Dashmem-host.c58 int ashmem_set_prot_region(int fd __unused, int prot __unused)
H A Dashmem-dev.c182 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 DFileMap.cpp163 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 Drecord.h295 uint32_t prot, flags; member in struct:Mmap2Record::Mmap2RecordDataType
H A Drecord.cpp288 PrintIndented(indent, "prot %u, flags %u, filenames %s\n", data->prot,

Completed in 1013 milliseconds