Searched defs:prot (Results 1 - 4 of 4) 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);
/system/core/libion/
H A Dion.c89 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, argument
110 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
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);
200 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0);
227 {"prot", required_argument, 0, 'p'},
249 prot = 0;
250 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0;
251 prot |= strstr(optarg, "MAP_SHARED") ? MAP_PRIVATE : 0;
270 printf("test %d, len %zu, align %zu, map_flags %d, prot
[all...]
/system/core/libutils/
H A DFileMap.cpp133 int prot, flags, adjust; local
164 prot = PROT_READ;
166 prot |= PROT_WRITE;
168 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset);

Completed in 106 milliseconds