Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 8 of 8) sorted by relevance

/system/core/libion/
Dion_test.c19 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()
Dion.c83 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/
Dashmem-dev.c70 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()
Dashmem-host.c81 int ashmem_set_prot_region(int fd, int prot) in ashmem_set_prot_region() argument
/system/core/include/cutils/
Dashmem.h20 int ashmem_set_prot_region(int fd, int prot);
/system/core/include/ion/
Dion.h36 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
/system/extras/ext4_utils/
Dext4_utils.h50 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/
Doutput_file.c51 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()