Searched defs:share_fd (Results 1 - 2 of 2) sorted by relevance

/system/core/libion/
H A Dion.c106 int ion_share(int fd, struct ion_handle *handle, int *share_fd) argument
116 *share_fd = data.fd;
117 if (*share_fd < 0) {
137 int ion_import(int fd, int share_fd, struct ion_handle **handle) argument
140 .fd = share_fd,
H A Dion_test.c121 int fd, share_fd, ret; local
126 ret = ion_share(fd, handle, &share_fd);
129 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0);
138 *(int *)CMSG_DATA(cmsg) = share_fd;

Completed in 41 milliseconds