/external/linux-kselftest/tools/testing/selftests/android/ion/ |
ionapp_import.c | 32 int sockfd, shared_fd; local 54 shared_fd = skinfo.datafd; 55 printf("Received buffer fd: %d\n", shared_fd); 56 if (shared_fd <= 0) { 63 info.buffd = shared_fd;
|
ionapp_export.c | 41 int sockfd, client_fd, shared_fd; local 112 shared_fd = info.buffd; 118 printf("Sharing fd: %d, Client fd: %d\n", shared_fd, client_fd); 119 skinfo.datafd = shared_fd;
|
/device/google/cuttlefish_common/host/commands/kernel_log_monitor/ |
main.cc | 26 #include <common/libs/fs/shared_fd.h> 54 auto shared_fd = cvd::SharedFD::Dup(fd); local 56 shared_fds.push_back(shared_fd);
|
/device/linaro/hikey/gralloc/ |
alloc_device.cpp | 129 int shared_fd; local 162 ret = ion_share(m->ion_client, ion_hnd, &shared_fd); 176 // we do not need ion_hnd once we have shared_fd 186 ret = ion_alloc_fd(m->ion_client, size, 0, 1 << m->cma_heap_id, 0, &(shared_fd)); 188 ret = ion_alloc_fd(m->ion_client, size, 0, 1 << m->system_heap_id, 0, &(shared_fd)); 206 cpu_ptr = mmap(NULL, size, map_mask, MAP_SHARED, shared_fd, 0); 212 close(shared_fd); 222 hnd->share_fd = shared_fd; 231 close(shared_fd);
|
/device/linaro/hikey/gralloc960/ |
mali_gralloc_ion.cpp | 157 int shared_fd, ret; local 166 * step 2: ion_share from ion_hnd and get shared_fd 168 * step 4: when we need to free this ion buffer, just close the shared_fd, 192 ret = ion_share(ion_fd, ion_hnd, &shared_fd); 197 shared_fd = -1; 205 close(shared_fd); 206 shared_fd = -1; 253 return shared_fd; 401 int shared_fd, ret, ion_flags = 0; local 454 shared_fd = alloc_from_ion_heap(m->ion_client, max_bufDescriptor->size, heap_mask, ion_flags, &min_pgsz) [all...] |