Lines Matching defs:handles
70 * struct file. However, file descriptors as handles to a struct file have
77 * This led to a plan of using our own integer IDs (called handles, following
257 * drm_gem_object_handle_free - release resources bound to userspace handles
425 * drop it before returning. Used to avoid races in establishing new handles
429 * when userspace closes @file_priv for all attached handles, or through the
430 * GEM_CLOSE ioctl for individual handles.
549 * This function is idempotent and handles an already allocated mmap offset
761 * drm_gem_objects_lookup - look up GEM objects from an array of handles
767 * Takes an array of userspace handles and returns a newly allocated array of
782 u32 *handles;
795 handles = kvmalloc_array(count, sizeof(u32), GFP_KERNEL);
796 if (!handles) {
801 if (copy_from_user(handles, bo_handles, count * sizeof(u32))) {
803 DRM_DEBUG("Failed to copy in GEM handles\n");
807 ret = objects_lookup(filp, handles, count, objs);
809 kvfree(handles);
820 * If looking up an array of handles, use drm_gem_objects_lookup().