Home | History | Annotate | Download | only in drm

Lines Matching defs:handles

76  * struct file.  However, file descriptors as handles to a struct file have
83 * This led to a plan of using our own integer IDs (called handles, following
228 * drm_gem_object_handle_free - release resources bound to userspace handles
409 * drop it before returning. Used to avoid races in establishing new handles
412 * Handles must be release again through drm_gem_handle_delete(). This is done
413 * when userspace closes @file_priv for all attached handles, or through the
414 * GEM_CLOSE ioctl for individual handles.
532 * This function is idempotent and handles an already allocated mmap offset
783 * drm_gem_objects_lookup - look up GEM objects from an array of handles
789 * Takes an array of userspace handles and returns a newly allocated array of
805 u32 *handles;
816 handles = kvmalloc_array(count, sizeof(u32), GFP_KERNEL);
817 if (!handles) {
822 if (copy_from_user(handles, bo_handles, count * sizeof(u32))) {
824 DRM_DEBUG("Failed to copy in GEM handles\n");
828 ret = objects_lookup(filp, handles, count, objs);
832 kvfree(handles);
848 * If looking up an array of handles, use drm_gem_objects_lookup().