Lines Matching defs: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
170 * drm_gem_object_handle_free - release resources bound to userspace handles
349 * drop it before returning. Used to avoid races in establishing new handles
353 * when userspace closes @file_priv for all attached handles, or through the
354 * GEM_CLOSE ioctl for individual handles.
472 * This function is idempotent and handles an already allocated mmap offset
672 * drm_gem_objects_lookup - look up GEM objects from an array of handles
678 * Takes an array of userspace handles and returns a newly allocated array of
694 u32 *handles;
707 handles = kvmalloc_array(count, sizeof(u32), GFP_KERNEL);
708 if (!handles) {
713 if (copy_from_user(handles, bo_handles, count * sizeof(u32))) {
715 DRM_DEBUG("Failed to copy in GEM handles\n");
719 ret = objects_lookup(filp, handles, count, objs);
721 kvfree(handles);
737 * If looking up an array of handles, use drm_gem_objects_lookup().