Searched defs:prot (Results 1 - 7 of 7) sorted by relevance

/system/core/libcutils/
H A Dashmem-dev.c70 int ashmem_set_prot_region(int fd, int prot) argument
72 return ioctl(fd, ASHMEM_SET_PROT_MASK, prot);
H A Dashmem-host.c81 int ashmem_set_prot_region(int fd, int prot) argument
/system/core/libion/
H A Dion.c83 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, argument
98 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
H A Dion_test.c19 int prot = PROT_READ | PROT_WRITE; variable
68 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
95 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
129 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0);
185 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0);
212 {"prot", required_argument, 0, 'p'},
238 prot = 0;
239 prot |= strstr(optarg, "MAP_PRIVATE") ?
241 prot |= strstr(optarg, "MAP_SHARED") ?
261 printf("test %d, len %u, align %u, map_flags %d, prot
[all...]
/system/core/libutils/
H A DFileMap.cpp134 int prot, flags, adjust; local
165 prot = PROT_READ;
167 prot |= PROT_WRITE;
169 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset);
/system/extras/ext4_utils/
H A Dext4_utils.h50 static inline void *mmap64(void *addr, size_t length, int prot, int flags, argument
53 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
/system/core/libsparse/
H A Doutput_file.c51 static inline void *mmap64(void *addr, size_t length, int prot, int flags, argument
54 return __mmap2(addr, length, prot, flags, fd, offset >> 12);

Completed in 2239 milliseconds