Lines Matching full:handles
67 * struct file. However, file descriptors as handles to a struct file have
74 * This led to a plan of using our own integer IDs (called handles, following
185 * drm_gem_object_handle_free - release resources bound to userspace handles
364 * drop it before returning. Used to avoid races in establishing new handles
367 * Handles must be release again through drm_gem_handle_delete(). This is done
368 * when userspace closes @file_priv for all attached handles, or through the
369 * GEM_CLOSE ioctl for individual handles.
487 * This function is idempotent and handles an already allocated mmap offset
687 * drm_gem_objects_lookup - look up GEM objects from an array of handles
693 * Takes an array of userspace handles and returns a newly allocated array of
709 u32 *handles; in drm_gem_objects_lookup() local
722 handles = kvmalloc_array(count, sizeof(u32), GFP_KERNEL); in drm_gem_objects_lookup()
723 if (!handles) { in drm_gem_objects_lookup()
728 if (copy_from_user(handles, bo_handles, count * sizeof(u32))) { in drm_gem_objects_lookup()
730 DRM_DEBUG("Failed to copy in GEM handles\n"); in drm_gem_objects_lookup()
734 ret = objects_lookup(filp, handles, count, objs); in drm_gem_objects_lookup()
736 kvfree(handles); in drm_gem_objects_lookup()
752 * If looking up an array of handles, use drm_gem_objects_lookup().