OSDN Git Service

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)
commitc117aa4d8701a713e6dee82657291ae26f0c3c7c
tree0081d44625fb0dc39493d89134bff371d5bf363a
parentd08d42de6432d5064045159aed060e3db9fa7807
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