mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
media: videobuf2-core.h: improve buf_struct_size documentation
Explicitly document that the driver-specific buffer structure must start with the subsystem-specific struct (vb2_v4l2_buffer in the case of V4L2). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
6af5bcd379
commit
1583c793af
1 changed files with 5 additions and 2 deletions
|
@ -509,8 +509,11 @@ struct vb2_buf_ops {
|
||||||
* by the vb2 core.
|
* by the vb2 core.
|
||||||
* @buf_struct_size: size of the driver-specific buffer structure;
|
* @buf_struct_size: size of the driver-specific buffer structure;
|
||||||
* "0" indicates the driver doesn't want to use a custom buffer
|
* "0" indicates the driver doesn't want to use a custom buffer
|
||||||
* structure type. for example, ``sizeof(struct vb2_v4l2_buffer)``
|
* structure type. In that case a subsystem-specific struct
|
||||||
* will be used for v4l2.
|
* will be used (in the case of V4L2 that is
|
||||||
|
* ``sizeof(struct vb2_v4l2_buffer)``). The first field of the
|
||||||
|
* driver-specific buffer structure must be the subsystem-specific
|
||||||
|
* struct (vb2_v4l2_buffer in the case of V4L2).
|
||||||
* @timestamp_flags: Timestamp flags; ``V4L2_BUF_FLAG_TIMESTAMP_*`` and
|
* @timestamp_flags: Timestamp flags; ``V4L2_BUF_FLAG_TIMESTAMP_*`` and
|
||||||
* ``V4L2_BUF_FLAG_TSTAMP_SRC_*``
|
* ``V4L2_BUF_FLAG_TSTAMP_SRC_*``
|
||||||
* @gfp_flags: additional gfp flags used when allocating the buffers.
|
* @gfp_flags: additional gfp flags used when allocating the buffers.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue