diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-06-22 05:47:30 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-06 17:29:39 -0300 |
commit | 5d44f5e3e388739f017a74e73dab2a995673915f (patch) | |
tree | 6fa9dcc9fc6c5197ae313fc7ab9dacaa29106879 /Documentation/DocBook/media/v4l/vidioc-create-bufs.xml | |
parent | f05393d2eb45b3cc9663223c3709134ccef51290 (diff) | |
download | op-kernel-dev-5d44f5e3e388739f017a74e73dab2a995673915f.zip op-kernel-dev-5d44f5e3e388739f017a74e73dab2a995673915f.tar.gz |
[media] Spec: document CREATE_BUFS behavior if count == 0
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/DocBook/media/v4l/vidioc-create-bufs.xml')
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-create-bufs.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml b/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml index a2474ec..5e73b1c 100644 --- a/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml +++ b/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml @@ -97,7 +97,13 @@ information.</para> <row> <entry>__u32</entry> <entry><structfield>count</structfield></entry> - <entry>The number of buffers requested or granted.</entry> + <entry>The number of buffers requested or granted. If count == 0, then + <constant>VIDIOC_CREATE_BUFS</constant> will set <structfield>index</structfield> + to the current number of created buffers, and it will check the validity of + <structfield>memory</structfield> and <structfield>format.type</structfield>. + If those are invalid -1 is returned and errno is set to &EINVAL;, + otherwise <constant>VIDIOC_CREATE_BUFS</constant> returns 0. It will + never set errno to &EBUSY; in this particular case.</entry> </row> <row> <entry>__u32</entry> |