From: Luca Ceresoli Date: Thu, 8 Mar 2018 12:26:22 +0000 (-0500) Subject: media: vb2-core: vb2_ops: document non-interrupt-context calling X-Git-Tag: v4.19~1321^2~114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f97df91a189ac84711467a687bef69dfd88b53c;p=platform%2Fkernel%2Flinux-rpi.git media: vb2-core: vb2_ops: document non-interrupt-context calling Driver writers can benefit in knowing if/when callbacks are called in interrupt context. But it is not completely obvious here, so document it. Signed-off-by: Luca Ceresoli Cc: Laurent Pinchart Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungmin Park Cc: Mauro Carvalho Chehab Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index f200008..f6818f73 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -296,6 +296,9 @@ struct vb2_buffer { /** * struct vb2_ops - driver-specific callbacks. * + * These operations are not called from interrupt context except where + * mentioned specifically. + * * @queue_setup: called from VIDIOC_REQBUFS() and VIDIOC_CREATE_BUFS() * handlers before memory allocation. It can be called * twice: if the original number of requested buffers