Searched refs:prot (Results 1 – 8 of 8) sorted by relevance
/system/core/libion/ |
D | ion_test.c | 19 int prot = PROT_READ | PROT_WRITE; variable 68 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd); in ion_map_test() 95 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd); in ion_map_test() 129 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test() 185 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0); in ion_share_test() 238 prot = 0; in main() 239 prot |= strstr(optarg, "MAP_PRIVATE") ? in main() 241 prot |= strstr(optarg, "MAP_SHARED") ? in main() 262 " alloc_flags %d\n", test, len, align, map_flags, prot, in main()
|
D | ion.c | 83 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, in ion_map() argument 98 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset); in ion_map()
|
/system/core/libcutils/ |
D | ashmem-dev.c | 70 int ashmem_set_prot_region(int fd, int prot) in ashmem_set_prot_region() argument 72 return ioctl(fd, ASHMEM_SET_PROT_MASK, prot); in ashmem_set_prot_region()
|
D | ashmem-host.c | 81 int ashmem_set_prot_region(int fd, int prot) in ashmem_set_prot_region() argument
|
/system/core/include/cutils/ |
D | ashmem.h | 20 int ashmem_set_prot_region(int fd, int prot);
|
/system/core/include/ion/ |
D | ion.h | 36 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
|
/system/extras/ext4_utils/ |
D | ext4_utils.h | 50 static inline void *mmap64(void *addr, size_t length, int prot, int flags, in mmap64() argument 53 return __mmap2(addr, length, prot, flags, fd, offset >> 12); in mmap64()
|
/system/core/libsparse/ |
D | output_file.c | 51 static inline void *mmap64(void *addr, size_t length, int prot, int flags, in mmap64() argument 54 return __mmap2(addr, length, prot, flags, fd, offset >> 12); in mmap64()
|