Searched refs:share_fd (Results 1 – 3 of 3) sorted by relevance
/system/memory/libion/include/ion/ |
D | ion.h | 41 int ion_share(int fd, ion_user_handle_t handle, int *share_fd); 42 int ion_import(int fd, int share_fd, ion_user_handle_t *handle);
|
/system/memory/libion/ |
D | ion.c | 141 int ion_share(int fd, ion_user_handle_t handle, int* share_fd) { in ion_share() argument 148 if (share_fd == NULL) return -EINVAL; in ion_share() 156 *share_fd = data.fd; in ion_share() 186 int ion_import(int fd, int share_fd, ion_user_handle_t* handle) { in ion_import() argument 189 .fd = share_fd, in ion_import()
|
D | ion_test.c | 136 int fd, share_fd, ret; in ion_share_test() local 141 ret = ion_share(fd, handle, &share_fd); in ion_share_test() 144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test() 153 *(int *)CMSG_DATA(cmsg) = share_fd; in ion_share_test()
|