]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add a drm_gem_objects_lookup helper
authorRob Herring <robh@kernel.org>
Fri, 8 Mar 2019 20:26:02 +0000 (14:26 -0600)
committerRob Herring <robh@kernel.org>
Fri, 12 Apr 2019 17:53:58 +0000 (12:53 -0500)
commitb4aec54867926b12f83ad60a45fb41dd39f4cfab
tree0081d44625fb0dc39493d89134bff371d5bf363a
parent682469b533297287588c765ab6c7f8da6b5b5d55
drm: Add a drm_gem_objects_lookup helper

Similar to the single handle drm_gem_object_lookup(),
drm_gem_objects_lookup() takes an array of handles and returns an array
of GEM objects.

v2:
- Take the userspace pointer directly and allocate the array.
- Expand the function documentation.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190409205427.6943-3-robh@kernel.org
drivers/gpu/drm/drm_gem.c
include/drm/drm_gem.h