]> git.baikalelectronics.ru Git - kernel.git/commit
drm/syncobj: Add a syncobj_array_find helper
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 25 Aug 2017 17:52:26 +0000 (10:52 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 28 Aug 2017 20:28:23 +0000 (06:28 +1000)
commit56d56bb31c7f7f82c57632dfd224d5e38ad9a4cc
tree85e1a61b5e384970448b03a36b14d0e1a68193e9
parent9fe6d2e1050a184714095f6d13ad88268accee5a
drm/syncobj: Add a syncobj_array_find helper

The wait ioctl has a bunch of code to read an syncobj handle array from
userspace and turn it into an array of syncobj pointers.  We're about to
add two new IOCTLs which will need to work with arrays of syncobj
handles so let's make some helpers.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_syncobj.c