From: Pavel Machek <pavel@ucw.cz>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org,
Alexandre Courbot <acourbot@chromium.org>,
Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCHv16 01/34] Documentation: v4l: document request API
Date: Fri, 10 Aug 2018 12:46:23 +0200 [thread overview]
Message-ID: <20180810104623.GA6350@amd> (raw)
In-Reply-To: <20180705160337.54379-2-hverkuil@xs4all.nl>
[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]
Hi!
> From: Alexandre Courbot <acourbot@chromium.org>
>
> Document the request API for V4L2 devices, and amend the documentation
> of system calls influenced by it.
>
> Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> --- a/Documentation/media/uapi/v4l/buffer.rst
> +++ b/Documentation/media/uapi/v4l/buffer.rst
> @@ -306,10 +306,15 @@ struct v4l2_buffer
> - A place holder for future extensions. Drivers and applications
> must set this to 0.
> * - __u32
> - - ``reserved``
> + - ``request_fd``
> -
> - - A place holder for future extensions. Drivers and applications
> - must set this to 0.
> + - The file descriptor of the request to queue the buffer to. If specified
> + and flag ``V4L2_BUF_FLAG_REQUEST_FD`` is set, then the buffer will be
Delete "specified and" -- 0 is valid fd?
> + queued to that request. This is set by the user when calling
> + :ref:`ioctl VIDIOC_QBUF <VIDIOC_QBUF>` and ignored by other ioctls.
> + If the device does not support requests, then ``EPERM`` will be returned.
> + If requests are supported but an invalid request FD is given, then
> + ``ENOENT`` will be returned.
Should this still specify that this should be 0 if
V4L2_BUF_FLAG_REQUEST_FD is not set?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2018-08-10 13:15 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-05 16:03 [PATCHv16 00/34] Request API Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 01/34] Documentation: v4l: document request API Hans Verkuil
2018-08-03 15:00 ` Tomasz Figa
2018-08-04 10:19 ` Hans Verkuil
2018-08-10 10:46 ` Pavel Machek [this message]
2018-08-10 10:48 ` Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 02/34] uapi/linux/media.h: add " Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 03/34] media-request: implement media requests Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 04/34] media: doc: Add media-request.h header to documentation build Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 05/34] media-request: add media_request_get_by_fd Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 06/34] media-request: add media_request_object_find Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 07/34] v4l2-device.h: add v4l2_device_supports_requests() helper Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 08/34] v4l2-dev: lock req_queue_mutex Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 09/34] videodev2.h: add request_fd field to v4l2_ext_controls Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 10/34] v4l2-ctrls: v4l2_ctrl_add_handler: add from_other_dev Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 11/34] v4l2-ctrls: prepare internal structs for request API Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 12/34] v4l2-ctrls: alloc memory for p_req Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 13/34] v4l2-ctrls: use ref in helper instead of ctrl Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 14/34] v4l2-ctrls: add core request support Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 15/34] v4l2-ctrls: support g/s_ext_ctrls for requests Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 16/34] vb2: store userspace data in vb2_v4l2_buffer Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 17/34] davinci_vpfe: remove bogus vb2->state check Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 18/34] vb2: drop VB2_BUF_STATE_PREPARED, use bool prepared/synced instead Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 19/34] videodev2.h: Add request_fd field to v4l2_buffer Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 20/34] vb2: add init_buffer buffer op Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 21/34] videobuf2-core: embed media_request_object Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 22/34] videobuf2-core: integrate with media requests Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 23/34] videobuf2-v4l2: " Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 24/34] videobuf2-core: add request helper functions Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 25/34] videobuf2-v4l2: add vb2_request_queue/validate helpers Hans Verkuil
2018-07-06 7:49 ` [PATCHv16.1 " Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 26/34] videobuf2-core: add uses_requests/qbuf flags Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 27/34] videobuf2-v4l2: refuse qbuf if queue uses requests or vv Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 28/34] v4l2-mem2mem: Simplify exiting the function in v4l2_m2m_try_schedule Hans Verkuil
2018-07-11 23:26 ` Ezequiel Garcia
2018-07-05 16:03 ` [PATCHv16 29/34] v4l2-mem2mem: add vb2_m2m_request_queue Hans Verkuil
2018-07-06 7:48 ` [PATCHv16.1 " Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 30/34] vim2m: use workqueue Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 31/34] vim2m: support requests Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 32/34] vivid: add mc Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 33/34] vivid: add request support Hans Verkuil
2018-07-05 16:03 ` [PATCHv16 34/34] RFC: media-requests: add debugfs node Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180810104623.GA6350@amd \
--to=pavel@ucw.cz \
--cc=acourbot@chromium.org \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox