Home
last modified time | relevance | path

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

/system/core/libion/
Dion_test.c34 int prot = PROT_READ | PROT_WRITE; variable
83 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd); in ion_map_test()
110 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd); in ion_map_test()
144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test()
200 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0); in ion_share_test()
249 prot = 0; in main()
250 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; in main()
251 prot |= strstr(optarg, "MAP_SHARED") ? MAP_PRIVATE : 0; in main()
271 " alloc_flags %d\n", test, len, align, map_flags, prot, in main()
Dion.c89 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, in ion_map() argument
110 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset); in ion_map()
/system/core/libutils/
DFileMap.cpp133 int prot, flags, adjust; in create() local
164 prot = PROT_READ; in create()
166 prot |= PROT_WRITE; in create()
168 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset); in create()
/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.c87 int ashmem_set_prot_region(int fd __unused, int prot __unused) in ashmem_set_prot_region()
/system/core/include/cutils/
Dashmem.h20 int ashmem_set_prot_region(int fd, int prot);
/system/core/libion/include/ion/
Dion.h39 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot,