sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget3/translations/zh_CN/driver-api/media/v4l2-videobuf2modnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/zh_TW/driver-api/media/v4l2-videobuf2modnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/it_IT/driver-api/media/v4l2-videobuf2modnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/ja_JP/driver-api/media/v4l2-videobuf2modnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/ko_KR/driver-api/media/v4l2-videobuf2modnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/sp_SP/driver-api/media/v4l2-videobuf2modnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhM/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2.rsthKubhtarget)}(h.. _vb2_framework:h]h}(h]h ]h"]h$]h&]refid vb2-frameworkuh1hhKhhhhhhubhsection)}(hhh](htitle)}(h,V4L2 videobuf2 functions and data structuresh]h,V4L2 videobuf2 functions and data structures}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlevb2_memory (C enum) c.vb2_memoryhNtauh1hhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h vb2_memoryh]hdesc_signature_line)}(henum vb2_memoryh](hdesc_sig_keyword)}(henumh]henum}(hhhhhNhNubah}(h]h ]kah"]h$]h&]uh1hhhhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKubhdesc_sig_space)}(h h]h }(hj hhhNhNubah}(h]h ]wah"]h$]h&]uh1j hhhhhj hKubh desc_name)}(h vb2_memoryh]h desc_sig_name)}(hhh]h vb2_memory}(hj$hhhNhNubah}(h]h ]nah"]h$]h&]uh1j"hjubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jhhhhhj hKubeh}(h]h ]h"]h$]h&]hh add_permalinkuh1hsphinx_line_type declaratorhhhhhj hKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhj hKhhhhubh desc_content)}(hhh]h paragraph)}(hCtype of memory model used to make the buffers visible on userspace.h]hCtype of memory model used to make the buffers visible on userspace.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjPhhubah}(h]h ]h"]h$]h&]uh1jNhhhhhj hKubeh}(h]h ](cenumeh"]h$]h&]domainjmobjtypejndesctypejnnoindex noindexentrynocontentsentryuh1hhhhhhNhNubh container)}(hX**Constants** ``VB2_MEMORY_UNKNOWN`` Buffer status is unknown or it is not used yet on userspace. ``VB2_MEMORY_MMAP`` The buffers are allocated by the Kernel and it is memory mapped via mmap() ioctl. This model is also used when the user is using the buffers via read() or write() system calls. ``VB2_MEMORY_USERPTR`` The buffers was allocated in userspace and it is memory mapped via mmap() ioctl. ``VB2_MEMORY_DMABUF`` The buffers are passed to userspace via DMA buffer.h](jT)}(h **Constants**h]hstrong)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjzubhdefinition_list)}(hhh](hdefinition_list_item)}(hT``VB2_MEMORY_UNKNOWN`` Buffer status is unknown or it is not used yet on userspace. h](hterm)}(h``VB2_MEMORY_UNKNOWN``h]hliteral)}(hjh]hVB2_MEMORY_UNKNOWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK#hjubh definition)}(hhh]jT)}(h` for a hardware operation; used for DMABUF memory types; dev is the alloc device dbuf is the shared dma_buf; returns ERR_PTR() on failure; allocator private per-buffer structure on success; this needs to be used for further accesses to the buffer. ``detach_dmabuf`` inform the exporter of the buffer that the current DMABUF buffer is no longer used; the **buf_priv** argument is the allocator private per-buffer structure previously returned from the attach_dmabuf callback. ``map_dmabuf`` request for access to the dmabuf from allocator; the allocator of dmabuf is informed that this driver is going to use the dmabuf. ``unmap_dmabuf`` releases access control to the dmabuf - allocator is notified that this driver is done using the dmabuf for now. ``vaddr`` return a kernel virtual address to a given memory buffer associated with the passed private structure or NULL if no such mapping exists. ``cookie`` return allocator specific cookie for a given memory buffer associated with the passed private structure or NULL if not available. ``num_users`` return the current number of users of a memory buffer; return 1 if the videobuf2 layer (or actually the driver using it) is the only user. ``mmap`` setup a userspace mapping for a given memory buffer under the provided virtual memory region.h](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK8hjubh literal_block)}(hXstruct vb2_mem_ops { void *(*alloc)(struct vb2_buffer *vb,struct device *dev, unsigned long size); void (*put)(void *buf_priv); struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb,void *buf_priv, unsigned long flags); void *(*get_userptr)(struct vb2_buffer *vb,struct device *dev,unsigned long vaddr, unsigned long size); void (*put_userptr)(void *buf_priv); void (*prepare)(void *buf_priv); void (*finish)(void *buf_priv); void *(*attach_dmabuf)(struct vb2_buffer *vb,struct device *dev,struct dma_buf *dbuf, unsigned long size); void (*detach_dmabuf)(void *buf_priv); int (*map_dmabuf)(void *buf_priv); void (*unmap_dmabuf)(void *buf_priv); void *(*vaddr)(struct vb2_buffer *vb, void *buf_priv); void *(*cookie)(struct vb2_buffer *vb, void *buf_priv); unsigned int (*num_users)(void *buf_priv); int (*mmap)(void *buf_priv, struct vm_area_struct *vma); };h]hXstruct vb2_mem_ops { void *(*alloc)(struct vb2_buffer *vb,struct device *dev, unsigned long size); void (*put)(void *buf_priv); struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb,void *buf_priv, unsigned long flags); void *(*get_userptr)(struct vb2_buffer *vb,struct device *dev,unsigned long vaddr, unsigned long size); void (*put_userptr)(void *buf_priv); void (*prepare)(void *buf_priv); void (*finish)(void *buf_priv); void *(*attach_dmabuf)(struct vb2_buffer *vb,struct device *dev,struct dma_buf *dbuf, unsigned long size); void (*detach_dmabuf)(void *buf_priv); int (*map_dmabuf)(void *buf_priv); void (*unmap_dmabuf)(void *buf_priv); void *(*vaddr)(struct vb2_buffer *vb, void *buf_priv); void *(*cookie)(struct vb2_buffer *vb, void *buf_priv); unsigned int (*num_users)(void *buf_priv); int (*mmap)(void *buf_priv, struct vm_area_struct *vma); };}hj5sbah}(h]h ]h"]h$]h&]hhuh1j3hm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK:hjubjT)}(h **Members**h]j)}(hjFh]hMembers}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKLhjubj)}(hhh](j)}(hXL``alloc`` allocate video memory and, optionally, allocator private data, return ERR_PTR() on failure or a pointer to allocator private, per-buffer data on success; the returned private structure will then be passed as **buf_priv** argument to other ops in this structure. The size argument to this function shall be *page aligned*. h](j)}(h ``alloc``h]j)}(hjeh]halloc}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK;hj_ubj)}(hhh]jT)}(hXAallocate video memory and, optionally, allocator private data, return ERR_PTR() on failure or a pointer to allocator private, per-buffer data on success; the returned private structure will then be passed as **buf_priv** argument to other ops in this structure. The size argument to this function shall be *page aligned*.h](hallocate video memory and, optionally, allocator private data, return ERR_PTR() on failure or a pointer to allocator private, per-buffer data on success; the returned private structure will then be passed as }(hj~hhhNhNubj)}(h **buf_priv**h]hbuf_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubhV argument to other ops in this structure. The size argument to this function shall be }(hj~hhhNhNubhemphasis)}(h*page aligned*h]h page aligned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK6hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhK;hj\ubj)}(hX"``put`` inform the allocator that the buffer will no longer be used; usually will result in the allocator freeing the buffer (if no other users of this buffer are present); the **buf_priv** argument is the allocator private per-buffer structure previously returned from the alloc callback. h](j)}(h``put``h]j)}(hjh]hput}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK@hjubj)}(hhh]jT)}(hXinform the allocator that the buffer will no longer be used; usually will result in the allocator freeing the buffer (if no other users of this buffer are present); the **buf_priv** argument is the allocator private per-buffer structure previously returned from the alloc callback.h](hinform the allocator that the buffer will no longer be used; usually will result in the allocator freeing the buffer (if no other users of this buffer are present); the }(hjhhhNhNubj)}(h **buf_priv**h]hbuf_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhd argument is the allocator private per-buffer structure previously returned from the alloc callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK` for a hardware operation; used for DMABUF memory types; dev is the alloc device dbuf is the shared dma_buf; returns ERR_PTR() on failure; allocator private per-buffer structure on success; this needs to be used for further accesses to the buffer. h](j)}(h``attach_dmabuf``h]j)}(hjEh]h attach_dmabuf}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKThj?ubj)}(hhh]jT)}(hX)attach a shared :c:type:`struct dma_buf ` for a hardware operation; used for DMABUF memory types; dev is the alloc device dbuf is the shared dma_buf; returns ERR_PTR() on failure; allocator private per-buffer structure on success; this needs to be used for further accesses to the buffer.h](hattach a shared }(hj^hhhNhNubh)}(h":c:type:`struct dma_buf `h]j)}(hjhh]hstruct dma_buf}(hjjhhhNhNubah}(h]h ](xrefjmc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocdriver-api/media/v4l2-videobuf2 refdomainjmreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sb reftargetdma_bufuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKPhj^ubh for a hardware operation; used for DMABUF memory types; dev is the alloc device dbuf is the shared dma_buf; returns ERR_PTR() on failure; allocator private per-buffer structure on success; this needs to be used for further accesses to the buffer.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKPhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKThj\ubj)}(h``detach_dmabuf`` inform the exporter of the buffer that the current DMABUF buffer is no longer used; the **buf_priv** argument is the allocator private per-buffer structure previously returned from the attach_dmabuf callback. h](j)}(h``detach_dmabuf``h]j)}(hjh]h detach_dmabuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKXhjubj)}(hhh]jT)}(hinform the exporter of the buffer that the current DMABUF buffer is no longer used; the **buf_priv** argument is the allocator private per-buffer structure previously returned from the attach_dmabuf callback.h](hXinform the exporter of the buffer that the current DMABUF buffer is no longer used; the }(hjhhhNhNubj)}(h **buf_priv**h]hbuf_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhl argument is the allocator private per-buffer structure previously returned from the attach_dmabuf callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKXhj\ubj)}(h``map_dmabuf`` request for access to the dmabuf from allocator; the allocator of dmabuf is informed that this driver is going to use the dmabuf. h](j)}(h``map_dmabuf``h]j)}(hjh]h map_dmabuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK[hjubj)}(hhh]jT)}(hrequest for access to the dmabuf from allocator; the allocator of dmabuf is informed that this driver is going to use the dmabuf.h]hrequest for access to the dmabuf from allocator; the allocator of dmabuf is informed that this driver is going to use the dmabuf.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hj\ubj)}(h``unmap_dmabuf`` releases access control to the dmabuf - allocator is notified that this driver is done using the dmabuf for now. h](j)}(h``unmap_dmabuf``h]j)}(hj3h]h unmap_dmabuf}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK]hj-ubj)}(hhh]jT)}(hpreleases access control to the dmabuf - allocator is notified that this driver is done using the dmabuf for now.h]hpreleases access control to the dmabuf - allocator is notified that this driver is done using the dmabuf for now.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK\hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhK]hj\ubj)}(h``vaddr`` return a kernel virtual address to a given memory buffer associated with the passed private structure or NULL if no such mapping exists. h](j)}(h ``vaddr``h]j)}(hjmh]hvaddr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK`hjgubj)}(hhh]jT)}(hreturn a kernel virtual address to a given memory buffer associated with the passed private structure or NULL if no such mapping exists.h]hreturn a kernel virtual address to a given memory buffer associated with the passed private structure or NULL if no such mapping exists.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK^hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhK`hj\ubj)}(h``cookie`` return allocator specific cookie for a given memory buffer associated with the passed private structure or NULL if not available. h](j)}(h ``cookie``h]j)}(hjh]hcookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKchjubj)}(hhh]jT)}(hreturn allocator specific cookie for a given memory buffer associated with the passed private structure or NULL if not available.h]hreturn allocator specific cookie for a given memory buffer associated with the passed private structure or NULL if not available.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKchj\ubj)}(h``num_users`` return the current number of users of a memory buffer; return 1 if the videobuf2 layer (or actually the driver using it) is the only user. h](j)}(h ``num_users``h]j)}(hjh]h num_users}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKfhjubj)}(hhh]jT)}(hreturn the current number of users of a memory buffer; return 1 if the videobuf2 layer (or actually the driver using it) is the only user.h]hreturn the current number of users of a memory buffer; return 1 if the videobuf2 layer (or actually the driver using it) is the only user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhj\ubj)}(hf``mmap`` setup a userspace mapping for a given memory buffer under the provided virtual memory region.h](j)}(h``mmap``h]j)}(hjh]hmmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKghjubj)}(hhh]jT)}(h]setup a userspace mapping for a given memory buffer under the provided virtual memory region.h]h]setup a userspace mapping for a given memory buffer under the provided virtual memory region.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj0hKghj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKghj\ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubjT)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKkhhhhubjT)}(hThose operations are used by the videobuf2 core to implement the memory handling/memory allocators for each type of supported streaming I/O method.h]hThose operations are used by the videobuf2 core to implement the memory handling/memory allocators for each type of supported streaming I/O method.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKihhhhubhnote)}(hX$#) Required ops for USERPTR types: get_userptr, put_userptr. #) Required ops for MMAP types: alloc, put, num_users, mmap. #) Required ops for read/write access types: alloc, put, num_users, vaddr. #) Required ops for DMABUF types: attach_dmabuf, detach_dmabuf, map_dmabuf, unmap_dmabuf.h]henumerated_list)}(hhh](h list_item)}(h:Required ops for USERPTR types: get_userptr, put_userptr. h]jT)}(h9Required ops for USERPTR types: get_userptr, put_userptr.h]h9Required ops for USERPTR types: get_userptr, put_userptr.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKmhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h:Required ops for MMAP types: alloc, put, num_users, mmap. h]jT)}(h9Required ops for MMAP types: alloc, put, num_users, mmap.h]h9Required ops for MMAP types: alloc, put, num_users, mmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKohjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hHRequired ops for read/write access types: alloc, put, num_users, vaddr. h]jT)}(hGRequired ops for read/write access types: alloc, put, num_users, vaddr.h]hGRequired ops for read/write access types: alloc, put, num_users, vaddr.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKqhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVRequired ops for DMABUF types: attach_dmabuf, detach_dmabuf, map_dmabuf, unmap_dmabuf.h]jT)}(hVRequired ops for DMABUF types: attach_dmabuf, detach_dmabuf, map_dmabuf, unmap_dmabuf.h]hVRequired ops for DMABUF types: attach_dmabuf, detach_dmabuf, map_dmabuf, unmap_dmabuf.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix)uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane (C struct) c.vb2_planehNtauh1hhhhhhNhNubh)}(hhh](h)}(h vb2_planeh]h)}(hstruct vb2_planeh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKyubj )}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj*hKyubj)}(h vb2_planeh]j#)}(hjh]h vb2_plane}(hj=hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj9ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj*hKyubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhj*hKyubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj*hKyhjhhubjO)}(hhh]jT)}(hplane information.h]hplane information.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj\hhubah}(h]h ]h"]h$]h&]uh1jNhjhhhj*hKyubeh}(h]h ](jmstructeh"]h$]h&]jrjmjsjwjtjwjujvjwuh1hhhhhhNhNubjy)}(hX**Definition**:: struct vb2_plane { void *mem_priv; struct dma_buf *dbuf; unsigned int dbuf_mapped; bool dbuf_duplicated; unsigned int bytesused; unsigned int length; unsigned int min_length; union { unsigned int offset; unsigned long userptr; int fd; } m; unsigned int data_offset; }; **Members** ``mem_priv`` private data with this plane. ``dbuf`` dma_buf - shared buffer object. ``dbuf_mapped`` flag to show whether dbuf is mapped or not ``dbuf_duplicated`` boolean to show whether dbuf is duplicated with a previous plane of the buffer. ``bytesused`` number of bytes occupied by data in the plane (payload). ``length`` size of this plane (NOT the payload) in bytes. The maximum valid size is MAX_UINT - PAGE_SIZE. ``min_length`` minimum required size of this plane (NOT the payload) in bytes. **length** is always greater or equal to **min_length**, and like **length**, it is limited to MAX_UINT - PAGE_SIZE. ``m`` Union with memtype-specific data. ``m.offset`` when memory in the associated struct vb2_buffer is ``VB2_MEMORY_MMAP``, equals the offset from the start of the device memory for this plane (or is a "cookie" that should be passed to mmap() called on the video node). ``m.userptr`` when memory is ``VB2_MEMORY_USERPTR``, a userspace pointer pointing to this plane. ``m.fd`` when memory is ``VB2_MEMORY_DMABUF``, a userspace file descriptor associated with this plane. ``data_offset`` offset in the plane to the start of data; usually 0, unless there is a header in front of the data.h](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj{ubj4)}(hXstruct vb2_plane { void *mem_priv; struct dma_buf *dbuf; unsigned int dbuf_mapped; bool dbuf_duplicated; unsigned int bytesused; unsigned int length; unsigned int min_length; union { unsigned int offset; unsigned long userptr; int fd; } m; unsigned int data_offset; };h]hXstruct vb2_plane { void *mem_priv; struct dma_buf *dbuf; unsigned int dbuf_mapped; bool dbuf_duplicated; unsigned int bytesused; unsigned int length; unsigned int min_length; union { unsigned int offset; unsigned long userptr; int fd; } m; unsigned int data_offset; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j3hm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj{ubjT)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj{ubj)}(hhh](j)}(h+``mem_priv`` private data with this plane. h](j)}(h ``mem_priv``h]j)}(hjh]hmem_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(hprivate data with this plane.h]hprivate data with this plane.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h)``dbuf`` dma_buf - shared buffer object. h](j)}(h``dbuf``h]j)}(hj h]hdbuf}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(hdma_buf - shared buffer object.h]hdma_buf - shared buffer object.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h;``dbuf_mapped`` flag to show whether dbuf is mapped or not h](j)}(h``dbuf_mapped``h]j)}(hj> h]h dbuf_mapped}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj< ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj8 ubj)}(hhh]jT)}(h*flag to show whether dbuf is mapped or noth]h*flag to show whether dbuf is mapped or not}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjS hKhjT ubah}(h]h ]h"]h$]h&]uh1jhj8 ubeh}(h]h ]h"]h$]h&]uh1jhjS hKhjubj)}(hd``dbuf_duplicated`` boolean to show whether dbuf is duplicated with a previous plane of the buffer. h](j)}(h``dbuf_duplicated``h]j)}(hjw h]hdbuf_duplicated}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjq ubj)}(hhh]jT)}(hOboolean to show whether dbuf is duplicated with a previous plane of the buffer.h]hOboolean to show whether dbuf is duplicated with a previous plane of the buffer.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhjq ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hG``bytesused`` number of bytes occupied by data in the plane (payload). h](j)}(h ``bytesused``h]j)}(hj h]h bytesused}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(h8number of bytes occupied by data in the plane (payload).h]h8number of bytes occupied by data in the plane (payload).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hj``length`` size of this plane (NOT the payload) in bytes. The maximum valid size is MAX_UINT - PAGE_SIZE. h](j)}(h ``length``h]j)}(hj h]hlength}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(h^size of this plane (NOT the payload) in bytes. The maximum valid size is MAX_UINT - PAGE_SIZE.h]h^size of this plane (NOT the payload) in bytes. The maximum valid size is MAX_UINT - PAGE_SIZE.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h``min_length`` minimum required size of this plane (NOT the payload) in bytes. **length** is always greater or equal to **min_length**, and like **length**, it is limited to MAX_UINT - PAGE_SIZE. h](j)}(h``min_length``h]j)}(hj$ h]h min_length}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj" ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(hminimum required size of this plane (NOT the payload) in bytes. **length** is always greater or equal to **min_length**, and like **length**, it is limited to MAX_UINT - PAGE_SIZE.h](h@minimum required size of this plane (NOT the payload) in bytes. }(hj= hhhNhNubj)}(h **length**h]hlength}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= ubh is always greater or equal to }(hj= hhhNhNubj)}(h**min_length**h]h min_length}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= ubh , and like }(hj= hhhNhNubj)}(h **length**h]hlength}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= ubh(, it is limited to MAX_UINT - PAGE_SIZE.}(hj= hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj: ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj9 hKhjubj)}(h(``m`` Union with memtype-specific data. h](j)}(h``m``h]j)}(hj h]hm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(h!Union with memtype-specific data.h]h!Union with memtype-specific data.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h``m.offset`` when memory in the associated struct vb2_buffer is ``VB2_MEMORY_MMAP``, equals the offset from the start of the device memory for this plane (or is a "cookie" that should be passed to mmap() called on the video node). h](j)}(h ``m.offset``h]j)}(hj h]hm.offset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(hwhen memory in the associated struct vb2_buffer is ``VB2_MEMORY_MMAP``, equals the offset from the start of the device memory for this plane (or is a "cookie" that should be passed to mmap() called on the video node).h](h3when memory in the associated struct vb2_buffer is }(hj hhhNhNubj)}(h``VB2_MEMORY_MMAP``h]hVB2_MEMORY_MMAP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, equals the offset from the start of the device memory for this plane (or is a “cookie” that should be passed to mmap() called on the video node).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(ha``m.userptr`` when memory is ``VB2_MEMORY_USERPTR``, a userspace pointer pointing to this plane. h](j)}(h ``m.userptr``h]j)}(hj h]h m.userptr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(hRwhen memory is ``VB2_MEMORY_USERPTR``, a userspace pointer pointing to this plane.h](hwhen memory is }(hj2 hhhNhNubj)}(h``VB2_MEMORY_USERPTR``h]hVB2_MEMORY_USERPTR}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubh-, a userspace pointer pointing to this plane.}(hj2 hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj/ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj. hKhjubj)}(hg``m.fd`` when memory is ``VB2_MEMORY_DMABUF``, a userspace file descriptor associated with this plane. h](j)}(h``m.fd``h]j)}(hje h]hm.fd}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj_ ubj)}(hhh]jT)}(h]when memory is ``VB2_MEMORY_DMABUF``, a userspace file descriptor associated with this plane.h](hwhen memory is }(hj~ hhhNhNubj)}(h``VB2_MEMORY_DMABUF``h]hVB2_MEMORY_DMABUF}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ ubh9, a userspace file descriptor associated with this plane.}(hj~ hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj{ ubah}(h]h ]h"]h$]h&]uh1jhj_ ubeh}(h]h ]h"]h$]h&]uh1jhjz hKhjubj)}(hs``data_offset`` offset in the plane to the start of data; usually 0, unless there is a header in front of the data.h](j)}(h``data_offset``h]j)}(hj h]h data_offset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(hcoffset in the plane to the start of data; usually 0, unless there is a header in front of the data.h]hcoffset in the plane to the start of data; usually 0, unless there is a header in front of the data.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubjT)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhhhhubjT)}(hShould contain enough information to be able to cover all the fields of :c:type:`struct v4l2_plane ` at videodev2.h.h](hHShould contain enough information to be able to cover all the fields of }(hj hhhNhNubh)}(h(:c:type:`struct v4l2_plane `h]j)}(hj h]hstruct v4l2_plane}(hj hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_planeuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubh at videodev2.h.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj0 hKhhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_io_modes (C enum)c.vb2_io_modeshNtauh1hhhhhhNhNubh)}(hhh](h)}(h vb2_io_modesh]h)}(henum vb2_io_modesh](h)}(hhh]henum}(hjT hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjP hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKubj )}(h h]h }(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjP hhhja hKubj)}(h vb2_io_modesh]j#)}(hjN h]h vb2_io_modes}(hjt hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjp ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjP hhhja hKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjL hhhja hKubah}(h]jG ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhja hKhjI hhubjO)}(hhh]jT)}(hqueue access methods.h]hqueue access methods.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jNhjI hhhja hKubeh}(h]h ](jmenumeh"]h$]h&]jrjmjsj jtj jujvjwuh1hhhhhhNhNubjy)}(hX.**Constants** ``VB2_MMAP`` driver supports MMAP with streaming API. ``VB2_USERPTR`` driver supports USERPTR with streaming API. ``VB2_READ`` driver supports read() style access. ``VB2_WRITE`` driver supports write() style access. ``VB2_DMABUF`` driver supports DMABUF with streaming API.h](jT)}(h **Constants**h]j)}(hj h]h Constants}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh](j)}(h6``VB2_MMAP`` driver supports MMAP with streaming API. h](j)}(h ``VB2_MMAP``h]j)}(hj h]hVB2_MMAP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(h(driver supports MMAP with streaming API.h]h(driver supports MMAP with streaming API.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h<``VB2_USERPTR`` driver supports USERPTR with streaming API. h](j)}(h``VB2_USERPTR``h]j)}(hj h]h VB2_USERPTR}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(h+driver supports USERPTR with streaming API.h]h+driver supports USERPTR with streaming API.}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj% hKhj& ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj% hKhj ubj)}(h2``VB2_READ`` driver supports read() style access. h](j)}(h ``VB2_READ``h]j)}(hjI h]hVB2_READ}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjC ubj)}(hhh]jT)}(h$driver supports read() style access.h]h$driver supports read() style access.}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj^ hKhj_ ubah}(h]h ]h"]h$]h&]uh1jhjC ubeh}(h]h ]h"]h$]h&]uh1jhj^ hKhj ubj)}(h4``VB2_WRITE`` driver supports write() style access. h](j)}(h ``VB2_WRITE``h]j)}(hj h]h VB2_WRITE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj| ubj)}(hhh]jT)}(h%driver supports write() style access.h]h%driver supports write() style access.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj| ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h9``VB2_DMABUF`` driver supports DMABUF with streaming API.h](j)}(h``VB2_DMABUF``h]j)}(hj h]h VB2_DMABUF}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubj)}(hhh]jT)}(h*driver supports DMABUF with streaming API.h]h*driver supports DMABUF with streaming API.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer_state (C enum)c.vb2_buffer_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(hvb2_buffer_stateh]h)}(henum vb2_buffer_stateh](h)}(hhh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKubj )}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj"hKubj)}(hvb2_buffer_stateh]j#)}(hjh]hvb2_buffer_state}(hj5hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj1ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj"hKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj hhhj"hKubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj"hKhj hhubjO)}(hhh]jT)}(hcurrent video buffer state.h]hcurrent video buffer state.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjThhubah}(h]h ]h"]h$]h&]uh1jNhj hhhj"hKubeh}(h]h ](jmenumeh"]h$]h&]jrjmjsjojtjojujvjwuh1hhhhhhNhNubjy)}(hX**Constants** ``VB2_BUF_STATE_DEQUEUED`` buffer under userspace control. ``VB2_BUF_STATE_IN_REQUEST`` buffer is queued in media request. ``VB2_BUF_STATE_PREPARING`` buffer is being prepared in videobuf2. ``VB2_BUF_STATE_QUEUED`` buffer queued in videobuf2, but not in driver. ``VB2_BUF_STATE_ACTIVE`` buffer queued in driver and possibly used in a hardware operation. ``VB2_BUF_STATE_DONE`` buffer returned from driver to videobuf2, but not yet dequeued to userspace. ``VB2_BUF_STATE_ERROR`` same as above, but the operation on the buffer has ended with an error, which will be reported to the userspace when it is dequeued.h](jT)}(h **Constants**h]j)}(hjyh]h Constants}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjsubj)}(hhh](j)}(h;``VB2_BUF_STATE_DEQUEUED`` buffer under userspace control. h](j)}(h``VB2_BUF_STATE_DEQUEUED``h]j)}(hjh]hVB2_BUF_STATE_DEQUEUED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(hbuffer under userspace control.h]hbuffer under userspace control.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h@``VB2_BUF_STATE_IN_REQUEST`` buffer is queued in media request. h](j)}(h``VB2_BUF_STATE_IN_REQUEST``h]j)}(hjh]hVB2_BUF_STATE_IN_REQUEST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(h"buffer is queued in media request.h]h"buffer is queued in media request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hC``VB2_BUF_STATE_PREPARING`` buffer is being prepared in videobuf2. h](j)}(h``VB2_BUF_STATE_PREPARING``h]j)}(hj h]hVB2_BUF_STATE_PREPARING}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(h&buffer is being prepared in videobuf2.h]h&buffer is being prepared in videobuf2.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hH``VB2_BUF_STATE_QUEUED`` buffer queued in videobuf2, but not in driver. h](j)}(h``VB2_BUF_STATE_QUEUED``h]j)}(hjCh]hVB2_BUF_STATE_QUEUED}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj=ubj)}(hhh]jT)}(h.buffer queued in videobuf2, but not in driver.h]h.buffer queued in videobuf2, but not in driver.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjXhKhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjubj)}(h\``VB2_BUF_STATE_ACTIVE`` buffer queued in driver and possibly used in a hardware operation. h](j)}(h``VB2_BUF_STATE_ACTIVE``h]j)}(hj|h]hVB2_BUF_STATE_ACTIVE}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjvubj)}(hhh]jT)}(hBbuffer queued in driver and possibly used in a hardware operation.h]hBbuffer queued in driver and possibly used in a hardware operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hd``VB2_BUF_STATE_DONE`` buffer returned from driver to videobuf2, but not yet dequeued to userspace. h](j)}(h``VB2_BUF_STATE_DONE``h]j)}(hjh]hVB2_BUF_STATE_DONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(hLbuffer returned from driver to videobuf2, but not yet dequeued to userspace.h]hLbuffer returned from driver to videobuf2, but not yet dequeued to userspace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``VB2_BUF_STATE_ERROR`` same as above, but the operation on the buffer has ended with an error, which will be reported to the userspace when it is dequeued.h](j)}(h``VB2_BUF_STATE_ERROR``h]j)}(hjh]hVB2_BUF_STATE_ERROR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(hsame as above, but the operation on the buffer has ended with an error, which will be reported to the userspace when it is dequeued.h]hsame as above, but the operation on the buffer has ended with an error, which will be reported to the userspace when it is dequeued.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer (C struct) c.vb2_bufferhNtauh1hhhhhhNhNubh)}(hhh](h)}(h vb2_bufferh]h)}(hstruct vb2_bufferh](h)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjFhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKubj )}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhjWhKubj)}(h vb2_bufferh]j#)}(hjDh]h vb2_buffer}(hjjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjfubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjFhhhjWhKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjBhhhjWhKubah}(h]j=ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjWhKhj?hhubjO)}(hhh]jT)}(hrepresents a video buffer.h]hrepresents a video buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jNhj?hhhjWhKubeh}(h]h ](jmstructeh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hXf**Definition**:: struct vb2_buffer { struct vb2_queue *vb2_queue; unsigned int index; unsigned int type; unsigned int memory; unsigned int num_planes; u64 timestamp; struct media_request *request; struct media_request_object req_obj; }; **Members** ``vb2_queue`` pointer to :c:type:`struct vb2_queue ` with the queue to which this driver belongs. ``index`` id number of the buffer. ``type`` buffer type. ``memory`` the method, in which the actual data is passed. ``num_planes`` number of planes in the buffer on an internal driver queue. ``timestamp`` frame timestamp in ns. ``request`` the request this buffer is associated with. ``req_obj`` used to bind this buffer to a request. This request object has a refcount.h](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj4)}(hX5struct vb2_buffer { struct vb2_queue *vb2_queue; unsigned int index; unsigned int type; unsigned int memory; unsigned int num_planes; u64 timestamp; struct media_request *request; struct media_request_object req_obj; };h]hX5struct vb2_buffer { struct vb2_queue *vb2_queue; unsigned int index; unsigned int type; unsigned int memory; unsigned int num_planes; u64 timestamp; struct media_request *request; struct media_request_object req_obj; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j3hm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubjT)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh](j)}(hm``vb2_queue`` pointer to :c:type:`struct vb2_queue ` with the queue to which this driver belongs. h](j)}(h ``vb2_queue``h]j)}(hjh]h vb2_queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(h^pointer to :c:type:`struct vb2_queue ` with the queue to which this driver belongs.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubh- with the queue to which this driver belongs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj9hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h#``index`` id number of the buffer. h](j)}(h ``index``h]j)}(hjVh]hindex}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjPubj)}(hhh]jT)}(hid number of the buffer.h]hid number of the buffer.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jShjkhKhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjubj)}(h``type`` buffer type. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(h buffer type.h]h buffer type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``memory`` the method, in which the actual data is passed. h](j)}(h ``memory``h]j)}(hjh]hmemory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(h/the method, in which the actual data is passed.h]h/the method, in which the actual data is passed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hK``num_planes`` number of planes in the buffer on an internal driver queue. h](j)}(h``num_planes``h]j)}(hjh]h num_planes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(h;number of planes in the buffer on an internal driver queue.h]h;number of planes in the buffer on an internal driver queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h%``timestamp`` frame timestamp in ns. h](j)}(h ``timestamp``h]j)}(hj;h]h timestamp}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj5ubj)}(hhh]jT)}(hframe timestamp in ns.h]hframe timestamp in ns.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jShjPhKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjubj)}(h8``request`` the request this buffer is associated with. h](j)}(h ``request``h]j)}(hjth]hrequest}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjnubj)}(hhh]jT)}(h+the request this buffer is associated with.h]h+the request this buffer is associated with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hV``req_obj`` used to bind this buffer to a request. This request object has a refcount.h](j)}(h ``req_obj``h]j)}(hjh]hreq_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(hhh]jT)}(hJused to bind this buffer to a request. This request object has a refcount.h]hJused to bind this buffer to a request. This request object has a refcount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_ops (C struct) c.vb2_opshNtauh1hhhhhhNhNubh)}(hhh](h)}(hvb2_opsh]h)}(hstruct vb2_opsh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(hvb2_opsh]j#)}(hjh]hvb2_ops}(hj&hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj"ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhMubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhMhjhhubjO)}(hhh]jT)}(hdriver-specific callbacks.h]hdriver-specific callbacks.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMHhjEhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhMubeh}(h]h ](jmstructeh"]h$]h&]jrjmjsj`jtj`jujvjwuh1hhhhhhNhNubjy)}(hX**Definition**:: struct vb2_ops { int (*queue_setup)(struct vb2_queue *q,unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]); void (*wait_prepare)(struct vb2_queue *q); void (*wait_finish)(struct vb2_queue *q); int (*buf_out_validate)(struct vb2_buffer *vb); int (*buf_init)(struct vb2_buffer *vb); int (*buf_prepare)(struct vb2_buffer *vb); void (*buf_finish)(struct vb2_buffer *vb); void (*buf_cleanup)(struct vb2_buffer *vb); int (*prepare_streaming)(struct vb2_queue *q); int (*start_streaming)(struct vb2_queue *q, unsigned int count); void (*stop_streaming)(struct vb2_queue *q); void (*unprepare_streaming)(struct vb2_queue *q); void (*buf_queue)(struct vb2_buffer *vb); void (*buf_request_complete)(struct vb2_buffer *vb); }; **Members** ``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 could not be allocated, then it will be called a second time with the actually allocated number of buffers to verify if that is OK. The driver should return the required number of buffers in \*num_buffers, the required number of planes per buffer in \*num_planes, the size of each plane should be set in the sizes\[\] array and optional per-plane allocator specific device in the alloc_devs\[\] array. When called from VIDIOC_REQBUFS(), \*num_planes == 0, the driver has to use the currently configured format to determine the plane sizes and \*num_buffers is the total number of buffers that are being allocated. When called from VIDIOC_CREATE_BUFS(), \*num_planes != 0 and it describes the requested number of planes and sizes\[\] contains the requested plane sizes. In this case \*num_buffers are being allocated additionally to the buffers already allocated. If either \*num_planes or the requested sizes are invalid callback must return ``-EINVAL``. ``wait_prepare`` release any locks taken while calling vb2 functions; it is called before an ioctl needs to wait for a new buffer to arrive; required to avoid a deadlock in blocking access type. ``wait_finish`` reacquire all locks released in the previous callback; required to continue operation after sleeping while waiting for a new buffer to arrive. ``buf_out_validate`` called when the output buffer is prepared or queued to a request; drivers can use this to validate userspace-provided information; this is required only for OUTPUT queues. ``buf_init`` called once after allocating a buffer (in MMAP case) or after acquiring a new USERPTR buffer; drivers may perform additional buffer-related initialization; initialization failure (return != 0) will prevent queue setup from completing successfully; optional. ``buf_prepare`` called every time the buffer is queued from userspace and from the VIDIOC_PREPARE_BUF() ioctl; drivers may perform any initialization required before each hardware operation in this callback; drivers can access/modify the buffer here as it is still synced for the CPU; drivers that support VIDIOC_CREATE_BUFS() must also validate the buffer size; if an error is returned, the buffer will not be queued in driver; optional. ``buf_finish`` called before every dequeue of the buffer back to userspace; the buffer is synced for the CPU, so drivers can access/modify the buffer contents; drivers may perform any operations required before userspace accesses the buffer; optional. The buffer state can be one of the following: ``DONE`` and ``ERROR`` occur while streaming is in progress, and the ``PREPARED`` state occurs when the queue has been canceled and all pending buffers are being returned to their default ``DEQUEUED`` state. Typically you only have to do something if the state is ``VB2_BUF_STATE_DONE``, since in all other cases the buffer contents will be ignored anyway. ``buf_cleanup`` called once before the buffer is freed; drivers may perform any additional cleanup; optional. ``prepare_streaming`` called once to prepare for 'streaming' state; this is where validation can be done to verify everything is okay and streaming resources can be claimed. It is called when the VIDIOC_STREAMON ioctl is called. The actual streaming starts when **start_streaming** is called. Optional. ``start_streaming`` called once to enter 'streaming' state; the driver may receive buffers with **buf_queue** callback before **start_streaming** is called; the driver gets the number of already queued buffers in count parameter; driver can return an error if hardware fails, in that case all buffers that have been already given by the **buf_queue** callback are to be returned by the driver by calling vb2_buffer_done() with ``VB2_BUF_STATE_QUEUED``. If you need a minimum number of buffers before you can start streaming, then set :c:type:`vb2_queue->min_queued_buffers `. If that is non-zero then **start_streaming** won't be called until at least that many buffers have been queued up by userspace. ``stop_streaming`` called when 'streaming' state must be disabled; driver should stop any DMA transactions or wait until they finish and give back all buffers it got from :c:type:`buf_queue` callback by calling vb2_buffer_done() with either ``VB2_BUF_STATE_DONE`` or ``VB2_BUF_STATE_ERROR``; may use vb2_wait_for_all_buffers() function ``unprepare_streaming`` called as counterpart to **prepare_streaming**; any claimed streaming resources can be released here. It is called when the VIDIOC_STREAMOFF ioctls is called or when the streaming filehandle is closed. Optional. ``buf_queue`` passes buffer vb to the driver; driver may start hardware operation on this buffer; driver should give the buffer back by calling vb2_buffer_done() function; it is always called after calling VIDIOC_STREAMON() ioctl; might be called before **start_streaming** callback if user pre-queued buffers before calling VIDIOC_STREAMON(). ``buf_request_complete`` a buffer that was never queued to the driver but is associated with a queued request was canceled. The driver will have to mark associated objects in the request as completed; required if requests are supported.h](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh:}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMLhjdubj4)}(hX8struct vb2_ops { int (*queue_setup)(struct vb2_queue *q,unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]); void (*wait_prepare)(struct vb2_queue *q); void (*wait_finish)(struct vb2_queue *q); int (*buf_out_validate)(struct vb2_buffer *vb); int (*buf_init)(struct vb2_buffer *vb); int (*buf_prepare)(struct vb2_buffer *vb); void (*buf_finish)(struct vb2_buffer *vb); void (*buf_cleanup)(struct vb2_buffer *vb); int (*prepare_streaming)(struct vb2_queue *q); int (*start_streaming)(struct vb2_queue *q, unsigned int count); void (*stop_streaming)(struct vb2_queue *q); void (*unprepare_streaming)(struct vb2_queue *q); void (*buf_queue)(struct vb2_buffer *vb); void (*buf_request_complete)(struct vb2_buffer *vb); };h]hX8struct vb2_ops { int (*queue_setup)(struct vb2_queue *q,unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]); void (*wait_prepare)(struct vb2_queue *q); void (*wait_finish)(struct vb2_queue *q); int (*buf_out_validate)(struct vb2_buffer *vb); int (*buf_init)(struct vb2_buffer *vb); int (*buf_prepare)(struct vb2_buffer *vb); void (*buf_finish)(struct vb2_buffer *vb); void (*buf_cleanup)(struct vb2_buffer *vb); int (*prepare_streaming)(struct vb2_queue *q); int (*start_streaming)(struct vb2_queue *q, unsigned int count); void (*stop_streaming)(struct vb2_queue *q); void (*unprepare_streaming)(struct vb2_queue *q); void (*buf_queue)(struct vb2_buffer *vb); void (*buf_request_complete)(struct vb2_buffer *vb); };}hjsbah}(h]h ]h"]h$]h&]hhuh1j3hm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhjdubjT)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM_hjdubj)}(hhh](j)}(hXh``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 could not be allocated, then it will be called a second time with the actually allocated number of buffers to verify if that is OK. The driver should return the required number of buffers in \*num_buffers, the required number of planes per buffer in \*num_planes, the size of each plane should be set in the sizes\[\] array and optional per-plane allocator specific device in the alloc_devs\[\] array. When called from VIDIOC_REQBUFS(), \*num_planes == 0, the driver has to use the currently configured format to determine the plane sizes and \*num_buffers is the total number of buffers that are being allocated. When called from VIDIOC_CREATE_BUFS(), \*num_planes != 0 and it describes the requested number of planes and sizes\[\] contains the requested plane sizes. In this case \*num_buffers are being allocated additionally to the buffers already allocated. If either \*num_planes or the requested sizes are invalid callback must return ``-EINVAL``. h](j)}(h``queue_setup``h]j)}(hjh]h queue_setup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMbhjubj)}(hhh]jT)}(hXWcalled from VIDIOC_REQBUFS() and VIDIOC_CREATE_BUFS() handlers before memory allocation. It can be called twice: if the original number of requested buffers could not be allocated, then it will be called a second time with the actually allocated number of buffers to verify if that is OK. The driver should return the required number of buffers in \*num_buffers, the required number of planes per buffer in \*num_planes, the size of each plane should be set in the sizes\[\] array and optional per-plane allocator specific device in the alloc_devs\[\] array. When called from VIDIOC_REQBUFS(), \*num_planes == 0, the driver has to use the currently configured format to determine the plane sizes and \*num_buffers is the total number of buffers that are being allocated. When called from VIDIOC_CREATE_BUFS(), \*num_planes != 0 and it describes the requested number of planes and sizes\[\] contains the requested plane sizes. In this case \*num_buffers are being allocated additionally to the buffers already allocated. If either \*num_planes or the requested sizes are invalid callback must return ``-EINVAL``.h](hXKcalled from VIDIOC_REQBUFS() and VIDIOC_CREATE_BUFS() handlers before memory allocation. It can be called twice: if the original number of requested buffers could not be allocated, then it will be called a second time with the actually allocated number of buffers to verify if that is OK. The driver should return the required number of buffers in *num_buffers, the required number of planes per buffer in *num_planes, the size of each plane should be set in the sizes[] array and optional per-plane allocator specific device in the alloc_devs[] array. When called from VIDIOC_REQBUFS(), *num_planes == 0, the driver has to use the currently configured format to determine the plane sizes and *num_buffers is the total number of buffers that are being allocated. When called from VIDIOC_CREATE_BUFS(), *num_planes != 0 and it describes the requested number of planes and sizes[] contains the requested plane sizes. In this case *num_buffers are being allocated additionally to the buffers already allocated. If either *num_planes or the requested sizes are invalid callback must return }(hjhhhNhNubj)}(h ``-EINVAL``h]h-EINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjubj)}(h``wait_prepare`` release any locks taken while calling vb2 functions; it is called before an ioctl needs to wait for a new buffer to arrive; required to avoid a deadlock in blocking access type. h](j)}(h``wait_prepare``h]j)}(hjh]h wait_prepare}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMfhjubj)}(hhh]jT)}(hrelease any locks taken while calling vb2 functions; it is called before an ioctl needs to wait for a new buffer to arrive; required to avoid a deadlock in blocking access type.h]hrelease any locks taken while calling vb2 functions; it is called before an ioctl needs to wait for a new buffer to arrive; required to avoid a deadlock in blocking access type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(h``wait_finish`` reacquire all locks released in the previous callback; required to continue operation after sleeping while waiting for a new buffer to arrive. h](j)}(h``wait_finish``h]j)}(hj;h]h wait_finish}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMihj5ubj)}(hhh]jT)}(hreacquire all locks released in the previous callback; required to continue operation after sleeping while waiting for a new buffer to arrive.h]hreacquire all locks released in the previous callback; required to continue operation after sleeping while waiting for a new buffer to arrive.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMghjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMihjubj)}(h``buf_out_validate`` called when the output buffer is prepared or queued to a request; drivers can use this to validate userspace-provided information; this is required only for OUTPUT queues. h](j)}(h``buf_out_validate``h]j)}(hjuh]hbuf_out_validate}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMmhjoubj)}(hhh]jT)}(hcalled when the output buffer is prepared or queued to a request; drivers can use this to validate userspace-provided information; this is required only for OUTPUT queues.h]hcalled when the output buffer is prepared or queued to a request; drivers can use this to validate userspace-provided information; this is required only for OUTPUT queues.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMjhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(hX``buf_init`` called once after allocating a buffer (in MMAP case) or after acquiring a new USERPTR buffer; drivers may perform additional buffer-related initialization; initialization failure (return != 0) will prevent queue setup from completing successfully; optional. h](j)}(h ``buf_init``h]j)}(hjh]hbuf_init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMrhjubj)}(hhh]jT)}(hXcalled once after allocating a buffer (in MMAP case) or after acquiring a new USERPTR buffer; drivers may perform additional buffer-related initialization; initialization failure (return != 0) will prevent queue setup from completing successfully; optional.h]hXcalled once after allocating a buffer (in MMAP case) or after acquiring a new USERPTR buffer; drivers may perform additional buffer-related initialization; initialization failure (return != 0) will prevent queue setup from completing successfully; optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(hX``buf_prepare`` called every time the buffer is queued from userspace and from the VIDIOC_PREPARE_BUF() ioctl; drivers may perform any initialization required before each hardware operation in this callback; drivers can access/modify the buffer here as it is still synced for the CPU; drivers that support VIDIOC_CREATE_BUFS() must also validate the buffer size; if an error is returned, the buffer will not be queued in driver; optional. h](j)}(h``buf_prepare``h]j)}(hjh]h buf_prepare}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMzhjubj)}(hhh]jT)}(hXcalled every time the buffer is queued from userspace and from the VIDIOC_PREPARE_BUF() ioctl; drivers may perform any initialization required before each hardware operation in this callback; drivers can access/modify the buffer here as it is still synced for the CPU; drivers that support VIDIOC_CREATE_BUFS() must also validate the buffer size; if an error is returned, the buffer will not be queued in driver; optional.h]hXcalled every time the buffer is queued from userspace and from the VIDIOC_PREPARE_BUF() ioctl; drivers may perform any initialization required before each hardware operation in this callback; drivers can access/modify the buffer here as it is still synced for the CPU; drivers that support VIDIOC_CREATE_BUFS() must also validate the buffer size; if an error is returned, the buffer will not be queued in driver; optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjubj)}(hX``buf_finish`` called before every dequeue of the buffer back to userspace; the buffer is synced for the CPU, so drivers can access/modify the buffer contents; drivers may perform any operations required before userspace accesses the buffer; optional. The buffer state can be one of the following: ``DONE`` and ``ERROR`` occur while streaming is in progress, and the ``PREPARED`` state occurs when the queue has been canceled and all pending buffers are being returned to their default ``DEQUEUED`` state. Typically you only have to do something if the state is ``VB2_BUF_STATE_DONE``, since in all other cases the buffer contents will be ignored anyway. h](j)}(h``buf_finish``h]j)}(hj#h]h buf_finish}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hXcalled before every dequeue of the buffer back to userspace; the buffer is synced for the CPU, so drivers can access/modify the buffer contents; drivers may perform any operations required before userspace accesses the buffer; optional. The buffer state can be one of the following: ``DONE`` and ``ERROR`` occur while streaming is in progress, and the ``PREPARED`` state occurs when the queue has been canceled and all pending buffers are being returned to their default ``DEQUEUED`` state. Typically you only have to do something if the state is ``VB2_BUF_STATE_DONE``, since in all other cases the buffer contents will be ignored anyway.h](hXcalled before every dequeue of the buffer back to userspace; the buffer is synced for the CPU, so drivers can access/modify the buffer contents; drivers may perform any operations required before userspace accesses the buffer; optional. The buffer state can be one of the following: }(hj<hhhNhNubj)}(h``DONE``h]hDONE}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh and }(hj<hhhNhNubj)}(h ``ERROR``h]hERROR}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh/ occur while streaming is in progress, and the }(hj<hhhNhNubj)}(h ``PREPARED``h]hPREPARED}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubhk state occurs when the queue has been canceled and all pending buffers are being returned to their default }(hj<hhhNhNubj)}(h ``DEQUEUED``h]hDEQUEUED}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh@ state. Typically you only have to do something if the state is }(hj<hhhNhNubj)}(h``VB2_BUF_STATE_DONE``h]hVB2_BUF_STATE_DONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubhF, since in all other cases the buffer contents will be ignored anyway.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM{hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(hn``buf_cleanup`` called once before the buffer is freed; drivers may perform any additional cleanup; optional. h](j)}(h``buf_cleanup``h]j)}(hjh]h buf_cleanup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h]called once before the buffer is freed; drivers may perform any additional cleanup; optional.h]h]called once before the buffer is freed; drivers may perform any additional cleanup; optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hX/``prepare_streaming`` called once to prepare for 'streaming' state; this is where validation can be done to verify everything is okay and streaming resources can be claimed. It is called when the VIDIOC_STREAMON ioctl is called. The actual streaming starts when **start_streaming** is called. Optional. h](j)}(h``prepare_streaming``h]j)}(hjh]hprepare_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hXcalled once to prepare for 'streaming' state; this is where validation can be done to verify everything is okay and streaming resources can be claimed. It is called when the VIDIOC_STREAMON ioctl is called. The actual streaming starts when **start_streaming** is called. Optional.h](hcalled once to prepare for ‘streaming’ state; this is where validation can be done to verify everything is okay and streaming resources can be claimed. It is called when the VIDIOC_STREAMON ioctl is called. The actual streaming starts when }(hj hhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is called. Optional.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hX``start_streaming`` called once to enter 'streaming' state; the driver may receive buffers with **buf_queue** callback before **start_streaming** is called; the driver gets the number of already queued buffers in count parameter; driver can return an error if hardware fails, in that case all buffers that have been already given by the **buf_queue** callback are to be returned by the driver by calling vb2_buffer_done() with ``VB2_BUF_STATE_QUEUED``. If you need a minimum number of buffers before you can start streaming, then set :c:type:`vb2_queue->min_queued_buffers `. If that is non-zero then **start_streaming** won't be called until at least that many buffers have been queued up by userspace. h](j)}(h``start_streaming``h]j)}(hj=h]hstart_streaming}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubj)}(hhh]jT)}(hXcalled once to enter 'streaming' state; the driver may receive buffers with **buf_queue** callback before **start_streaming** is called; the driver gets the number of already queued buffers in count parameter; driver can return an error if hardware fails, in that case all buffers that have been already given by the **buf_queue** callback are to be returned by the driver by calling vb2_buffer_done() with ``VB2_BUF_STATE_QUEUED``. If you need a minimum number of buffers before you can start streaming, then set :c:type:`vb2_queue->min_queued_buffers `. If that is non-zero then **start_streaming** won't be called until at least that many buffers have been queued up by userspace.h](hPcalled once to enter ‘streaming’ state; the driver may receive buffers with }(hjVhhhNhNubj)}(h **buf_queue**h]h buf_queue}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh callback before }(hjVhhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh is called; the driver gets the number of already queued buffers in count parameter; driver can return an error if hardware fails, in that case all buffers that have been already given by the }(hjVhhhNhNubj)}(h **buf_queue**h]h buf_queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhM callback are to be returned by the driver by calling vb2_buffer_done() with }(hjVhhhNhNubj)}(h``VB2_BUF_STATE_QUEUED``h]hVB2_BUF_STATE_QUEUED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhS. If you need a minimum number of buffers before you can start streaming, then set }(hjVhhhNhNubh)}(h3:c:type:`vb2_queue->min_queued_buffers `h]j)}(hjh]hvb2_queue->min_queued_buffers}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjVubh. If that is non-zero then }(hjVhhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhU won’t be called until at least that many buffers have been queued up by userspace.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubj)}(hXP``stop_streaming`` called when 'streaming' state must be disabled; driver should stop any DMA transactions or wait until they finish and give back all buffers it got from :c:type:`buf_queue` callback by calling vb2_buffer_done() with either ``VB2_BUF_STATE_DONE`` or ``VB2_BUF_STATE_ERROR``; may use vb2_wait_for_all_buffers() function h](j)}(h``stop_streaming``h]j)}(hjh]hstop_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hX<called when 'streaming' state must be disabled; driver should stop any DMA transactions or wait until they finish and give back all buffers it got from :c:type:`buf_queue` callback by calling vb2_buffer_done() with either ``VB2_BUF_STATE_DONE`` or ``VB2_BUF_STATE_ERROR``; may use vb2_wait_for_all_buffers() functionh](hcalled when ‘streaming’ state must be disabled; driver should stop any DMA transactions or wait until they finish and give back all buffers it got from }(hj hhhNhNubh)}(h:c:type:`buf_queue`h]j)}(hjh]h buf_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj buf_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj ubh3 callback by calling vb2_buffer_done() with either }(hj hhhNhNubj)}(h``VB2_BUF_STATE_DONE``h]hVB2_BUF_STATE_DONE}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh or }(hj hhhNhNubj)}(h``VB2_BUF_STATE_ERROR``h]hVB2_BUF_STATE_ERROR}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh-; may use vb2_wait_for_all_buffers() function}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj4hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h``unprepare_streaming`` called as counterpart to **prepare_streaming**; any claimed streaming resources can be released here. It is called when the VIDIOC_STREAMOFF ioctls is called or when the streaming filehandle is closed. Optional. h](j)}(h``unprepare_streaming``h]j)}(hjuh]hunprepare_streaming}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjoubj)}(hhh]jT)}(hcalled as counterpart to **prepare_streaming**; any claimed streaming resources can be released here. It is called when the VIDIOC_STREAMOFF ioctls is called or when the streaming filehandle is closed. Optional.h](hcalled as counterpart to }(hjhhhNhNubj)}(h**prepare_streaming**h]hprepare_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; any claimed streaming resources can be released here. It is called when the VIDIOC_STREAMOFF ioctls is called or when the streaming filehandle is closed. Optional.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hXX``buf_queue`` passes buffer vb to the driver; driver may start hardware operation on this buffer; driver should give the buffer back by calling vb2_buffer_done() function; it is always called after calling VIDIOC_STREAMON() ioctl; might be called before **start_streaming** callback if user pre-queued buffers before calling VIDIOC_STREAMON(). h](j)}(h ``buf_queue``h]j)}(hjh]h buf_queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hXIpasses buffer vb to the driver; driver may start hardware operation on this buffer; driver should give the buffer back by calling vb2_buffer_done() function; it is always called after calling VIDIOC_STREAMON() ioctl; might be called before **start_streaming** callback if user pre-queued buffers before calling VIDIOC_STREAMON().h](hpasses buffer vb to the driver; driver may start hardware operation on this buffer; driver should give the buffer back by calling vb2_buffer_done() function; it is always called after calling VIDIOC_STREAMON() ioctl; might be called before }(hjhhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF callback if user pre-queued buffers before calling VIDIOC_STREAMON().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``buf_request_complete`` a buffer that was never queued to the driver but is associated with a queued request was canceled. The driver will have to mark associated objects in the request as completed; required if requests are supported.h](j)}(h``buf_request_complete``h]j)}(hj h]hbuf_request_complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(ha buffer that was never queued to the driver but is associated with a queued request was canceled. The driver will have to mark associated objects in the request as completed; required if requests are supported.h]ha buffer that was never queued to the driver but is associated with a queued request was canceled. The driver will have to mark associated objects in the request as completed; required if requests are supported.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubeh}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubjT)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhhhhubjT)}(h[These operations are not called from interrupt context except where mentioned specifically.h]h[These operations are not called from interrupt context except where mentioned specifically.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMIhhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buf_ops (C struct) c.vb2_buf_opshNtauh1hhhhhhNhNubh)}(hhh](h)}(h vb2_buf_opsh]h)}(hstruct vb2_buf_opsh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMOubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMOubj)}(h vb2_buf_opsh]j#)}(hjh]h vb2_buf_ops}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhMOubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhMOubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhMOhjhhubjO)}(hhh]jT)}(hdriver-specific callbacks.h]hdriver-specific callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhMOubeh}(h]h ](jmstructeh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hX**Definition**:: struct vb2_buf_ops { int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb); void (*init_buffer)(struct vb2_buffer *vb); void (*fill_user_buffer)(struct vb2_buffer *vb, void *pb); int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes); void (*copy_timestamp)(struct vb2_buffer *vb, const void *pb); }; **Members** ``verify_planes_array`` Verify that a given user space structure contains enough planes for the buffer. This is called for each dequeued buffer. ``init_buffer`` given a :c:type:`vb2_buffer` initialize the extra data after struct vb2_buffer. For V4L2 this is a :c:type:`struct vb2_v4l2_buffer `. ``fill_user_buffer`` given a :c:type:`vb2_buffer` fill in the userspace structure. For V4L2 this is a :c:type:`struct v4l2_buffer `. ``fill_vb2_buffer`` given a userspace structure, fill in the :c:type:`vb2_buffer`. If the userspace structure is invalid, then this op will return an error. ``copy_timestamp`` copy the timestamp from a userspace structure to the :c:type:`struct vb2_buffer `.h](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj4)}(hX]struct vb2_buf_ops { int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb); void (*init_buffer)(struct vb2_buffer *vb); void (*fill_user_buffer)(struct vb2_buffer *vb, void *pb); int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes); void (*copy_timestamp)(struct vb2_buffer *vb, const void *pb); };h]hX]struct vb2_buf_ops { int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb); void (*init_buffer)(struct vb2_buffer *vb); void (*fill_user_buffer)(struct vb2_buffer *vb, void *pb); int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes); void (*copy_timestamp)(struct vb2_buffer *vb, const void *pb); };}hj sbah}(h]h ]h"]h$]h&]hhuh1j3hm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubjT)}(h **Members**h]j)}(hjh]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh](j)}(h``verify_planes_array`` Verify that a given user space structure contains enough planes for the buffer. This is called for each dequeued buffer. h](j)}(h``verify_planes_array``h]j)}(hj=h]hverify_planes_array}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubj)}(hhh]jT)}(hxVerify that a given user space structure contains enough planes for the buffer. This is called for each dequeued buffer.h]hxVerify that a given user space structure contains enough planes for the buffer. This is called for each dequeued buffer.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhj4ubj)}(h``init_buffer`` given a :c:type:`vb2_buffer` initialize the extra data after struct vb2_buffer. For V4L2 this is a :c:type:`struct vb2_v4l2_buffer `. h](j)}(h``init_buffer``h]j)}(hjwh]h init_buffer}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjqubj)}(hhh]jT)}(hgiven a :c:type:`vb2_buffer` initialize the extra data after struct vb2_buffer. For V4L2 this is a :c:type:`struct vb2_v4l2_buffer `.h](hgiven a }(hjhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjh]h vb2_buffer}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubhG initialize the extra data after struct vb2_buffer. For V4L2 this is a }(hjhhhNhNubh)}(h2:c:type:`struct vb2_v4l2_buffer `h]j)}(hjh]hstruct vb2_v4l2_buffer}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_v4l2_bufferuh1hhjhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj4ubj)}(h``fill_user_buffer`` given a :c:type:`vb2_buffer` fill in the userspace structure. For V4L2 this is a :c:type:`struct v4l2_buffer `. h](j)}(h``fill_user_buffer``h]j)}(hjh]hfill_user_buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h|given a :c:type:`vb2_buffer` fill in the userspace structure. For V4L2 this is a :c:type:`struct v4l2_buffer `.h](hgiven a }(hjhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjh]h vb2_buffer}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubh5 fill in the userspace structure. For V4L2 this is a }(hjhhhNhNubh)}(h*:c:type:`struct v4l2_buffer `h]j)}(hj>h]hstruct v4l2_buffer}(hj@hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhj7hMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj7hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj4ubj)}(h``fill_vb2_buffer`` given a userspace structure, fill in the :c:type:`vb2_buffer`. If the userspace structure is invalid, then this op will return an error. h](j)}(h``fill_vb2_buffer``h]j)}(hjwh]hfill_vb2_buffer}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjqubj)}(hhh]jT)}(hgiven a userspace structure, fill in the :c:type:`vb2_buffer`. If the userspace structure is invalid, then this op will return an error.h](h)given a userspace structure, fill in the }(hjhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjh]h vb2_buffer}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubhK. If the userspace structure is invalid, then this op will return an error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj4ubj)}(hq``copy_timestamp`` copy the timestamp from a userspace structure to the :c:type:`struct vb2_buffer `.h](j)}(h``copy_timestamp``h]j)}(hjh]hcopy_timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h^copy the timestamp from a userspace structure to the :c:type:`struct vb2_buffer `.h](h5copy the timestamp from a userspace structure to the }(hjhhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hjh]hstruct vb2_buffer}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhjhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj4ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue (C struct) c.vb2_queuehNtauh1hhhhhhNhNubh)}(hhh](h)}(h vb2_queueh]h)}(hstruct vb2_queueh](h)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjLhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLhhhj]hMubj)}(h vb2_queueh]j#)}(hjJh]h vb2_queue}(hjphhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjlubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjLhhhj]hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjHhhhj]hMubah}(h]jCah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj]hMhjEhhubjO)}(hhh]jT)}(ha videobuf2 queue.h]ha videobuf2 queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jNhjEhhhj]hMubeh}(h]h ](jmstructeh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hXm**Definition**:: struct vb2_queue { unsigned int type; unsigned int io_modes; struct device *dev; unsigned long dma_attrs; unsigned int bidirectional:1; unsigned int fileio_read_once:1; unsigned int fileio_write_immediately:1; unsigned int allow_zero_bytesused:1; unsigned int quirk_poll_must_check_waiting_for_buffers:1; unsigned int supports_requests:1; unsigned int requires_requests:1; unsigned int uses_qbuf:1; unsigned int uses_requests:1; unsigned int allow_cache_hints:1; unsigned int non_coherent_mem:1; struct mutex *lock; void *owner; const struct vb2_ops *ops; const struct vb2_mem_ops *mem_ops; const struct vb2_buf_ops *buf_ops; void *drv_priv; u32 subsystem_flags; unsigned int buf_struct_size; u32 timestamp_flags; gfp_t gfp_flags; u32 min_queued_buffers; u32 min_reqbufs_allocation; struct device *alloc_devs[VB2_MAX_PLANES]; }; **Members** ``type`` private buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on :c:type:`enum v4l2_buf_type `. ``io_modes`` supported io methods (see :c:type:`enum vb2_io_modes `). ``dev`` device to use for the default allocation context if the driver doesn't fill in the **alloc_devs** array. ``dma_attrs`` DMA attributes to use for the DMA. ``bidirectional`` when this flag is set the DMA direction for the buffers of this queue will be overridden with ``DMA_BIDIRECTIONAL`` direction. This is useful in cases where the hardware (firmware) writes to a buffer which is mapped as read (``DMA_TO_DEVICE``), or reads from buffer which is mapped for write (``DMA_FROM_DEVICE``) in order to satisfy some internal hardware restrictions or adds a padding needed by the processing algorithm. In case the DMA mapping is not bidirectional but the hardware (firmware) trying to access the buffer (in the opposite direction) this could lead to an IOMMU protection faults. ``fileio_read_once`` report EOF after reading the first buffer ``fileio_write_immediately`` queue buffer after each write() call ``allow_zero_bytesused`` allow bytesused == 0 to be passed to the driver ``quirk_poll_must_check_waiting_for_buffers`` Return ``EPOLLERR`` at poll when QBUF has not been called. This is a vb1 idiom that has been adopted also by vb2. ``supports_requests`` this queue supports the Request API. ``requires_requests`` this queue requires the Request API. If this is set to 1, then supports_requests must be set to 1 as well. ``uses_qbuf`` qbuf was used directly for this queue. Set to 1 the first time this is called. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers from a request. ``uses_requests`` requests are used for this queue. Set to 1 the first time a request is queued. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers directly. ``allow_cache_hints`` when set user-space can pass cache management hints in order to skip cache flush/invalidation on ->prepare() or/and ->finish(). ``non_coherent_mem`` when set queue will attempt to allocate buffers using non-coherent memory. ``lock`` pointer to a mutex that protects the :c:type:`struct vb2_queue `. The driver can set this to a mutex to let the v4l2 core serialize the queuing ioctls. If the driver wants to handle locking itself, then this should be set to NULL. This lock is not used by the videobuf2 core API. ``owner`` The filehandle that 'owns' the buffers, i.e. the filehandle that called reqbufs, create_buffers or started fileio. This field is not used by the videobuf2 core API, but it allows drivers to easily associate an owner filehandle with the queue. ``ops`` driver-specific callbacks ``mem_ops`` memory allocator specific callbacks ``buf_ops`` callbacks to deliver buffer information. between user-space and kernel-space. ``drv_priv`` driver private data. ``subsystem_flags`` Flags specific to the subsystem (V4L2/DVB/etc.). Not used by the vb2 core. ``buf_struct_size`` size of the driver-specific buffer structure; "0" indicates the driver doesn't want to use a custom buffer structure type. In that case a subsystem-specific struct 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 ``V4L2_BUF_FLAG_TSTAMP_SRC_*`` ``gfp_flags`` additional gfp flags used when allocating the buffers. Typically this is 0, but it may be e.g. ``GFP_DMA`` or ``__GFP_DMA32`` to force the buffer allocation to a specific memory zone. ``min_queued_buffers`` the minimum number of queued buffers needed before **start_streaming** can be called. Used when a DMA engine cannot be started unless at least this number of buffers have been queued into the driver. VIDIOC_REQBUFS will ensure at least **min_queued_buffers** + 1 buffers will be allocated. Note that VIDIOC_CREATE_BUFS will not modify the requested buffer count. ``min_reqbufs_allocation`` the minimum number of buffers to be allocated when calling VIDIOC_REQBUFS. Note that VIDIOC_CREATE_BUFS will *not* modify the requested buffer count and does not use this field. Drivers can set this if there has to be a certain number of buffers available for the hardware to work effectively. This allows calling VIDIOC_REQBUFS with a buffer count of 1 and it will be automatically adjusted to a workable buffer count. If set, then **min_reqbufs_allocation** must be larger than **min_queued_buffers** + 1. If this field is > 3, then it is highly recommended that the driver implements the V4L2_CID_MIN_BUFFERS_FOR_CAPTURE/OUTPUT control. ``alloc_devs`` :c:type:`struct device ` memory type/allocator-specific per-plane deviceh](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj4)}(hXstruct vb2_queue { unsigned int type; unsigned int io_modes; struct device *dev; unsigned long dma_attrs; unsigned int bidirectional:1; unsigned int fileio_read_once:1; unsigned int fileio_write_immediately:1; unsigned int allow_zero_bytesused:1; unsigned int quirk_poll_must_check_waiting_for_buffers:1; unsigned int supports_requests:1; unsigned int requires_requests:1; unsigned int uses_qbuf:1; unsigned int uses_requests:1; unsigned int allow_cache_hints:1; unsigned int non_coherent_mem:1; struct mutex *lock; void *owner; const struct vb2_ops *ops; const struct vb2_mem_ops *mem_ops; const struct vb2_buf_ops *buf_ops; void *drv_priv; u32 subsystem_flags; unsigned int buf_struct_size; u32 timestamp_flags; gfp_t gfp_flags; u32 min_queued_buffers; u32 min_reqbufs_allocation; struct device *alloc_devs[VB2_MAX_PLANES]; };h]hXstruct vb2_queue { unsigned int type; unsigned int io_modes; struct device *dev; unsigned long dma_attrs; unsigned int bidirectional:1; unsigned int fileio_read_once:1; unsigned int fileio_write_immediately:1; unsigned int allow_zero_bytesused:1; unsigned int quirk_poll_must_check_waiting_for_buffers:1; unsigned int supports_requests:1; unsigned int requires_requests:1; unsigned int uses_qbuf:1; unsigned int uses_requests:1; unsigned int allow_cache_hints:1; unsigned int non_coherent_mem:1; struct mutex *lock; void *owner; const struct vb2_ops *ops; const struct vb2_mem_ops *mem_ops; const struct vb2_buf_ops *buf_ops; void *drv_priv; u32 subsystem_flags; unsigned int buf_struct_size; u32 timestamp_flags; gfp_t gfp_flags; u32 min_queued_buffers; u32 min_reqbufs_allocation; struct device *alloc_devs[VB2_MAX_PLANES]; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j3hm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubjT)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hjubj)}(hhh](j)}(h``type`` private buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on :c:type:`enum v4l2_buf_type `. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hprivate buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on :c:type:`enum v4l2_buf_type `.h](hprivate buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on }(hjhhhNhNubh)}(h,:c:type:`enum v4l2_buf_type `h]j)}(hj"h]henum v4l2_buf_type}(hj$hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj?hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hT``io_modes`` supported io methods (see :c:type:`enum vb2_io_modes `). h](j)}(h ``io_modes``h]j)}(hj\h]hio_modes}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjVubj)}(hhh]jT)}(hFsupported io methods (see :c:type:`enum vb2_io_modes `).h](hsupported io methods (see }(hjuhhhNhNubh)}(h*:c:type:`enum vb2_io_modes `h]j)}(hjh]henum vb2_io_modes}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_io_modesuh1hhjqhMhjuubh).}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(hq``dev`` device to use for the default allocation context if the driver doesn't fill in the **alloc_devs** array. h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hhdevice to use for the default allocation context if the driver doesn't fill in the **alloc_devs** array.h](hUdevice to use for the default allocation context if the driver doesn’t fill in the }(hjhhhNhNubj)}(h**alloc_devs**h]h alloc_devs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh array.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``dma_attrs`` DMA attributes to use for the DMA. h](j)}(h ``dma_attrs``h]j)}(hjh]h dma_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h"DMA attributes to use for the DMA.h]h"DMA attributes to use for the DMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hXj``bidirectional`` when this flag is set the DMA direction for the buffers of this queue will be overridden with ``DMA_BIDIRECTIONAL`` direction. This is useful in cases where the hardware (firmware) writes to a buffer which is mapped as read (``DMA_TO_DEVICE``), or reads from buffer which is mapped for write (``DMA_FROM_DEVICE``) in order to satisfy some internal hardware restrictions or adds a padding needed by the processing algorithm. In case the DMA mapping is not bidirectional but the hardware (firmware) trying to access the buffer (in the opposite direction) this could lead to an IOMMU protection faults. h](j)}(h``bidirectional``h]j)}(hj=h]h bidirectional}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubj)}(hhh]jT)}(hXWwhen this flag is set the DMA direction for the buffers of this queue will be overridden with ``DMA_BIDIRECTIONAL`` direction. This is useful in cases where the hardware (firmware) writes to a buffer which is mapped as read (``DMA_TO_DEVICE``), or reads from buffer which is mapped for write (``DMA_FROM_DEVICE``) in order to satisfy some internal hardware restrictions or adds a padding needed by the processing algorithm. In case the DMA mapping is not bidirectional but the hardware (firmware) trying to access the buffer (in the opposite direction) this could lead to an IOMMU protection faults.h](h^when this flag is set the DMA direction for the buffers of this queue will be overridden with }(hjVhhhNhNubj)}(h``DMA_BIDIRECTIONAL``h]hDMA_BIDIRECTIONAL}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhn direction. This is useful in cases where the hardware (firmware) writes to a buffer which is mapped as read (}(hjVhhhNhNubj)}(h``DMA_TO_DEVICE``h]h DMA_TO_DEVICE}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh3), or reads from buffer which is mapped for write (}(hjVhhhNhNubj)}(h``DMA_FROM_DEVICE``h]hDMA_FROM_DEVICE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhX) in order to satisfy some internal hardware restrictions or adds a padding needed by the processing algorithm. In case the DMA mapping is not bidirectional but the hardware (firmware) trying to access the buffer (in the opposite direction) this could lead to an IOMMU protection faults.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubj)}(h?``fileio_read_once`` report EOF after reading the first buffer h](j)}(h``fileio_read_once``h]j)}(hjh]hfileio_read_once}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h)report EOF after reading the first bufferh]h)report EOF after reading the first buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``fileio_write_immediately`` queue buffer after each write() call h](j)}(h``fileio_write_immediately``h]j)}(hjh]hfileio_write_immediately}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h$queue buffer after each write() callh]h$queue buffer after each write() call}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hI``allow_zero_bytesused`` allow bytesused == 0 to be passed to the driver h](j)}(h``allow_zero_bytesused``h]j)}(hjh]hallow_zero_bytesused}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h/allow bytesused == 0 to be passed to the driverh]h/allow bytesused == 0 to be passed to the driver}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h``quirk_poll_must_check_waiting_for_buffers`` Return ``EPOLLERR`` at poll when QBUF has not been called. This is a vb1 idiom that has been adopted also by vb2. h](j)}(h-``quirk_poll_must_check_waiting_for_buffers``h]j)}(hjXh]h)quirk_poll_must_check_waiting_for_buffers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjRubj)}(hhh]jT)}(hqReturn ``EPOLLERR`` at poll when QBUF has not been called. This is a vb1 idiom that has been adopted also by vb2.h](hReturn }(hjqhhhNhNubj)}(h ``EPOLLERR``h]hEPOLLERR}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh^ at poll when QBUF has not been called. This is a vb1 idiom that has been adopted also by vb2.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubj)}(h;``supports_requests`` this queue supports the Request API. h](j)}(h``supports_requests``h]j)}(hjh]hsupports_requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h$this queue supports the Request API.h]h$this queue supports the Request API.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``requires_requests`` this queue requires the Request API. If this is set to 1, then supports_requests must be set to 1 as well. h](j)}(h``requires_requests``h]j)}(hjh]hrequires_requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hjthis queue requires the Request API. If this is set to 1, then supports_requests must be set to 1 as well.h]hjthis queue requires the Request API. If this is set to 1, then supports_requests must be set to 1 as well.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``uses_qbuf`` qbuf was used directly for this queue. Set to 1 the first time this is called. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers from a request. h](j)}(h ``uses_qbuf``h]j)}(hjh]h uses_qbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hqbuf was used directly for this queue. Set to 1 the first time this is called. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers from a request.h]hqbuf was used directly for this queue. Set to 1 the first time this is called. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers from a request.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h``uses_requests`` requests are used for this queue. Set to 1 the first time a request is queued. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers directly. h](j)}(h``uses_requests``h]j)}(hjQh]h uses_requests}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubj)}(hhh]jT)}(hrequests are used for this queue. Set to 1 the first time a request is queued. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers directly.h]hrequests are used for this queue. Set to 1 the first time a request is queued. Set to 0 when the queue is canceled. If this is 1, then you cannot queue buffers directly.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(h``allow_cache_hints`` when set user-space can pass cache management hints in order to skip cache flush/invalidation on ->prepare() or/and ->finish(). h](j)}(h``allow_cache_hints``h]j)}(hjh]hallow_cache_hints}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hjubj)}(hhh]jT)}(hwhen set user-space can pass cache management hints in order to skip cache flush/invalidation on ->prepare() or/and ->finish().h]hwhen set user-space can pass cache management hints in order to skip cache flush/invalidation on ->prepare() or/and ->finish().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h```non_coherent_mem`` when set queue will attempt to allocate buffers using non-coherent memory. h](j)}(h``non_coherent_mem``h]j)}(hjh]hnon_coherent_mem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hjubj)}(hhh]jT)}(hJwhen set queue will attempt to allocate buffers using non-coherent memory.h]hJwhen set queue will attempt to allocate buffers using non-coherent memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hX,``lock`` pointer to a mutex that protects the :c:type:`struct vb2_queue `. The driver can set this to a mutex to let the v4l2 core serialize the queuing ioctls. If the driver wants to handle locking itself, then this should be set to NULL. This lock is not used by the videobuf2 core API. h](j)}(h``lock``h]j)}(hjh]hlock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hX"pointer to a mutex that protects the :c:type:`struct vb2_queue `. The driver can set this to a mutex to let the v4l2 core serialize the queuing ioctls. If the driver wants to handle locking itself, then this should be set to NULL. This lock is not used by the videobuf2 core API.h](h%pointer to a mutex that protects the }(hj hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj" h]hstruct vb2_queue}(hj$ hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj ubh. The driver can set this to a mutex to let the v4l2 core serialize the queuing ioctls. If the driver wants to handle locking itself, then this should be set to NULL. This lock is not used by the videobuf2 core API.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj? hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h``owner`` The filehandle that 'owns' the buffers, i.e. the filehandle that called reqbufs, create_buffers or started fileio. This field is not used by the videobuf2 core API, but it allows drivers to easily associate an owner filehandle with the queue. h](j)}(h ``owner``h]j)}(hj\ h]howner}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjV ubj)}(hhh]jT)}(hThe filehandle that 'owns' the buffers, i.e. the filehandle that called reqbufs, create_buffers or started fileio. This field is not used by the videobuf2 core API, but it allows drivers to easily associate an owner filehandle with the queue.h]hThe filehandle that ‘owns’ the buffers, i.e. the filehandle that called reqbufs, create_buffers or started fileio. This field is not used by the videobuf2 core API, but it allows drivers to easily associate an owner filehandle with the queue.}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjr ubah}(h]h ]h"]h$]h&]uh1jhjV ubeh}(h]h ]h"]h$]h&]uh1jhjq hMhjubj)}(h"``ops`` driver-specific callbacks h](j)}(h``ops``h]j)}(hj h]hops}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj ubj)}(hhh]jT)}(hdriver-specific callbacksh]hdriver-specific callbacks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h0``mem_ops`` memory allocator specific callbacks h](j)}(h ``mem_ops``h]j)}(hj h]hmem_ops}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj ubj)}(hhh]jT)}(h#memory allocator specific callbacksh]h#memory allocator specific callbacks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hZ``buf_ops`` callbacks to deliver buffer information. between user-space and kernel-space. h](j)}(h ``buf_ops``h]j)}(hj!h]hbuf_ops}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj!ubj)}(hhh]jT)}(hMcallbacks to deliver buffer information. between user-space and kernel-space.h]hMcallbacks to deliver buffer information. between user-space and kernel-space.}(hj!!hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h"``drv_priv`` driver private data. h](j)}(h ``drv_priv``h]j)}(hjB!h]hdrv_priv}(hjD!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@!ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj 3, then it is highly recommended that the driver implements the V4L2_CID_MIN_BUFFERS_FOR_CAPTURE/OUTPUT control. h](j)}(h``min_reqbufs_allocation``h]j)}(hj#h]hmin_reqbufs_allocation}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM:hj#ubj)}(hhh]jT)}(hXthe minimum number of buffers to be allocated when calling VIDIOC_REQBUFS. Note that VIDIOC_CREATE_BUFS will *not* modify the requested buffer count and does not use this field. Drivers can set this if there has to be a certain number of buffers available for the hardware to work effectively. This allows calling VIDIOC_REQBUFS with a buffer count of 1 and it will be automatically adjusted to a workable buffer count. If set, then **min_reqbufs_allocation** must be larger than **min_queued_buffers** + 1. If this field is > 3, then it is highly recommended that the driver implements the V4L2_CID_MIN_BUFFERS_FOR_CAPTURE/OUTPUT control.h](hmthe minimum number of buffers to be allocated when calling VIDIOC_REQBUFS. Note that VIDIOC_CREATE_BUFS will }(hj0#hhhNhNubj)}(h*not*h]hnot}(hj8#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0#ubhX? modify the requested buffer count and does not use this field. Drivers can set this if there has to be a certain number of buffers available for the hardware to work effectively. This allows calling VIDIOC_REQBUFS with a buffer count of 1 and it will be automatically adjusted to a workable buffer count. If set, then }(hj0#hhhNhNubj)}(h**min_reqbufs_allocation**h]hmin_reqbufs_allocation}(hjJ#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0#ubh must be larger than }(hj0#hhhNhNubj)}(h**min_queued_buffers**h]hmin_queued_buffers}(hj\#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0#ubh + 1. If this field is > 3, then it is highly recommended that the driver implements the V4L2_CID_MIN_BUFFERS_FOR_CAPTURE/OUTPUT control.}(hj0#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM/hj-#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj,#hM:hjubj)}(h_``alloc_devs`` :c:type:`struct device ` memory type/allocator-specific per-plane deviceh](j)}(h``alloc_devs``h]j)}(hj#h]h alloc_devs}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM:hj#ubj)}(hhh]jT)}(hP:c:type:`struct device ` memory type/allocator-specific per-plane deviceh](h)}(h :c:type:`struct device `h]j)}(hj#h]h struct device}(hj#hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjdeviceuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM;hj#ubh0 memory type/allocator-specific per-plane device}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj#hM;hj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM:hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)vb2_queue_allows_cache_hints (C function)c.vb2_queue_allows_cache_hintshNtauh1hhhhhhNhNubh)}(hhh](h)}(h7bool vb2_queue_allows_cache_hints (struct vb2_queue *q)h]h)}(h6bool vb2_queue_allows_cache_hints(struct vb2_queue *q)h](hdesc_sig_keyword_type)}(hboolh]hbool}(hj$hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j$hj#hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhj$hMubj)}(hvb2_queue_allows_cache_hintsh]j#)}(hvb2_queue_allows_cache_hintsh]hvb2_queue_allows_cache_hints}(hj$$hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj $ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj#hhhj$hMubhdesc_parameterlist)}(h(struct vb2_queue *q)h]hdesc_parameter)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjD$hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj@$ubj )}(h h]h }(hjQ$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@$ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjb$hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj_$ubah}(h]h ]h"]h$]h&] refdomainjmreftype identifier reftargetjd$modnameN classnameNjj)}j]j ASTIdentifier)}jx$j&$sbc.vb2_queue_allows_cache_hintsasbuh1hhj@$ubj )}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@$ubhdesc_sig_punctuation)}(h*h]h*}(hj$hhhNhNubah}(h]h ]pah"]h$]h&]uh1j$hj@$ubj#)}(hqh]hq}(hj$hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj@$ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj:$ubah}(h]h ]h"]h$]h&]hhuh1j8$hj#hhhj$hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj#hhhj$hMubah}(h]j#ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj$hMhj#hhubjO)}(hhh]jT)}(hCReturn true if the queue allows cache and memory consistency hints.h]hCReturn true if the queue allows cache and memory consistency hints.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$hhubah}(h]h ]h"]h$]h&]uh1jNhj#hhhj$hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj$jtj$jujvjwuh1hhhhhhNhNubjy)}(hp**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](jT)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$ubj)}(hhh]j)}(h^``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](j)}(h``struct vb2_queue *q``h]j)}(hj%h]hstruct vb2_queue *q}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj %ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj %ubj)}(hhh]jT)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hj(%hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj2%h]hstruct vb2_queue}(hj4%hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj0%ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj(%ubh with videobuf2 queue}(hj(%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjO%hMhj%%ubah}(h]h ]h"]h$]h&]uh1jhj %ubeh}(h]h ]h"]h$]h&]uh1jhj$%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane_vaddr (C function)c.vb2_plane_vaddrhNtauh1hhhhhhNhNubh)}(hhh](h)}(hEvoid * vb2_plane_vaddr (struct vb2_buffer *vb, unsigned int plane_no)h]h)}(hCvoid *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj%hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhj%hMubj$)}(hj$h]h*}(hj%hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj%hhhj%hMubj)}(hvb2_plane_vaddrh]j#)}(hvb2_plane_vaddrh]hvb2_plane_vaddr}(hj%hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj%ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj%hhhj%hMubj9$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj%ubj )}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hj%hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj%ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj%modnameN classnameNjj)}j]j$)}jx$j%sbc.vb2_plane_vaddrasbuh1hhj%ubj )}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj$)}(hj$h]h*}(hj"&hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj%ubj#)}(hvbh]hvb}(hj/&hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj%ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj%ubj?$)}(hunsigned int plane_noh](j$)}(hunsignedh]hunsigned}(hjH&hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjD&ubj )}(h h]h }(hjV&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjD&ubj$)}(hinth]hint}(hjd&hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjD&ubj )}(h h]h }(hjr&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjD&ubj#)}(hplane_noh]hplane_no}(hj&hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjD&ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj%ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj%hhhj%hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj%hhhj%hMubah}(h]j%ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj%hMhj%hhubjO)}(hhh]jT)}(h1Return a kernel virtual address of a given plane.h]h1Return a kernel virtual address of a given plane.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&hhubah}(h]h ]h"]h$]h&]uh1jNhj%hhhj%hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj&jtj&jujvjwuh1hhhhhhNhNubjy)}(hXZ**Parameters** ``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. ``unsigned int plane_no`` plane number for which the address is to be returned. **Description** This function returns a kernel virtual address of a given plane if such a mapping exist, NULL otherwise.h](jT)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&ubj)}(hhh](j)}(hy``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj&h]hstruct vb2_buffer *vb}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&ubj)}(hhh]jT)}(h^pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to.h](h pointer to }(hj'hhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hj'h]hstruct vb2_buffer}(hj'hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj 'ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj'ubh+ to which the plane in question belongs to.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj+'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj&ubj)}(hP``unsigned int plane_no`` plane number for which the address is to be returned. h](j)}(h``unsigned int plane_no``h]j)}(hjH'h]hunsigned int plane_no}(hjJ'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF'ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjB'ubj)}(hhh]jT)}(h5plane number for which the address is to be returned.h]h5plane number for which the address is to be returned.}(hja'hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj]'hMhj^'ubah}(h]h ]h"]h$]h&]uh1jhjB'ubeh}(h]h ]h"]h$]h&]uh1jhj]'hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubjT)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&ubjT)}(hhThis function returns a kernel virtual address of a given plane if such a mapping exist, NULL otherwise.h]hhThis function returns a kernel virtual address of a given plane if such a mapping exist, NULL otherwise.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane_cookie (C function)c.vb2_plane_cookiehNtauh1hhhhhhNhNubh)}(hhh](h)}(hFvoid * vb2_plane_cookie (struct vb2_buffer *vb, unsigned int plane_no)h]h)}(hDvoid *vb2_plane_cookie(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj'hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhj'hMubj$)}(hj$h]h*}(hj'hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj'hhhj'hMubj)}(hvb2_plane_cookieh]j#)}(hvb2_plane_cookieh]hvb2_plane_cookie}(hj'hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj'ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj'hhhj'hMubj9$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj(ubj )}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hj0(hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj-(ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj2(modnameN classnameNjj)}j]j$)}jx$j'sbc.vb2_plane_cookieasbuh1hhj(ubj )}(h h]h }(hjP(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj$)}(hj$h]h*}(hj^(hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj(ubj#)}(hvbh]hvb}(hjk(hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj(ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj (ubj?$)}(hunsigned int plane_noh](j$)}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj(ubj )}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj$)}(hinth]hint}(hj(hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj(ubj )}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj#)}(hplane_noh]hplane_no}(hj(hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj(ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj (ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj'hhhj'hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj'hhhj'hMubah}(h]j'ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj'hMhj'hhubjO)}(hhh]jT)}(h5Return allocator specific cookie for the given plane.h]h5Return allocator specific cookie for the given plane.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jNhj'hhhj'hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj(jtj(jujvjwuh1hhhhhhNhNubjy)}(hXe**Parameters** ``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. ``unsigned int plane_no`` plane number for which the cookie is to be returned. **Description** This function returns an allocator specific cookie for a given plane if available, NULL otherwise. The allocator should provide some simple static inline function, which would convert this cookie to the allocator specific type that can be used directly by the driver to access the buffer. This can be for example physical address, pointer to scatter list or IOMMU mapping.h](jT)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj )hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj)ubj)}(hhh](j)}(hy``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj')h]hstruct vb2_buffer *vb}(hj))hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%)ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj!)ubj)}(hhh]jT)}(h^pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to.h](h pointer to }(hj@)hhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hjJ)h]hstruct vb2_buffer}(hjL)hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjH)ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj@)ubh+ to which the plane in question belongs to.}(hj@)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjg)hMhj=)ubah}(h]h ]h"]h$]h&]uh1jhj!)ubeh}(h]h ]h"]h$]h&]uh1jhj<)hMhj)ubj)}(hO``unsigned int plane_no`` plane number for which the cookie is to be returned. h](j)}(h``unsigned int plane_no``h]j)}(hj)h]hunsigned int plane_no}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj~)ubj)}(hhh]jT)}(h4plane number for which the cookie is to be returned.h]h4plane number for which the cookie is to be returned.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj~)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)ubjT)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj)ubjT)}(hXtThis function returns an allocator specific cookie for a given plane if available, NULL otherwise. The allocator should provide some simple static inline function, which would convert this cookie to the allocator specific type that can be used directly by the driver to access the buffer. This can be for example physical address, pointer to scatter list or IOMMU mapping.h]hXtThis function returns an allocator specific cookie for a given plane if available, NULL otherwise. The allocator should provide some simple static inline function, which would convert this cookie to the allocator specific type that can be used directly by the driver to access the buffer. This can be for example physical address, pointer to scatter list or IOMMU mapping.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer_done (C function)c.vb2_buffer_donehNtauh1hhhhhhNhNubh)}(hhh](h)}(hIvoid vb2_buffer_done (struct vb2_buffer *vb, enum vb2_buffer_state state)h]h)}(hHvoid vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state)h](j$)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj*hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhj*hMubj)}(hvb2_buffer_doneh]j#)}(hvb2_buffer_doneh]hvb2_buffer_done}(hj%*hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj!*ubah}(h]h ](j5j6eh"]h$V]h&]hhuh1jhj*hhhj*hMubj9$)}(h4(struct vb2_buffer *vb, enum vb2_buffer_state state)h](j?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hjA*hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj=*ubj )}(h h]h }(hjN*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=*ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hj_*hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj\*ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetja*modnameN classnameNjj)}j]j$)}jx$j'*sbc.vb2_buffer_doneasbuh1hhj=*ubj )}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=*ubj$)}(hj$h]h*}(hj*hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj=*ubj#)}(hvbh]hvb}(hj*hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj=*ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9*ubj?$)}(henum vb2_buffer_state stateh](h)}(hhh]henum}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj*ubj )}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*ubh)}(hhh]j#)}(hvb2_buffer_stateh]hvb2_buffer_state}(hj*hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj*ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj*modnameN classnameNjj)}j]j{*c.vb2_buffer_doneasbuh1hhj*ubj )}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*ubj#)}(hstateh]hstate}(hj*hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj*ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9*ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj*hhhj*hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj)hhhj*hMubah}(h]j)ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj*hMhj)hhubjO)}(hhh]jT)}(h;inform videobuf2 that an operation on a buffer is finished.h]h;inform videobuf2 that an operation on a buffer is finished.}(hj'+hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$+hhubah}(h]h ]h"]h$]h&]uh1jNhj)hhhj*hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj?+jtj?+jujvjwuh1hhhhhhNhNubjy)}(hXb**Parameters** ``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to be used. ``enum vb2_buffer_state state`` state of the buffer, as defined by :c:type:`enum vb2_buffer_state `. Either ``VB2_BUF_STATE_DONE`` if the operation finished successfully, ``VB2_BUF_STATE_ERROR`` if the operation finished with an error or ``VB2_BUF_STATE_QUEUED``. **Description** This function should be called by the driver after a hardware operation on a buffer is finished and the buffer may be returned to userspace. The driver cannot use this buffer anymore until it is queued back to it by videobuf by the means of :c:type:`vb2_ops->buf_queue ` callback. Only buffers previously queued to the driver by :c:type:`vb2_ops->buf_queue ` can be passed to this function. While streaming a buffer can only be returned in state DONE or ERROR. The :c:type:`vb2_ops->start_streaming ` op can also return them in case the DMA engine cannot be started for some reason. In that case the buffers should be returned with state QUEUED to put them back into the queue.h](jT)}(h**Parameters**h]j)}(hjI+h]h Parameters}(hjK+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG+ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjC+ubj)}(hhh](j)}(hZ``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to be used. h](j)}(h``struct vb2_buffer *vb``h]j)}(hjh+h]hstruct vb2_buffer *vb}(hjj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf+ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjb+ubj)}(hhh]jT)}(h?pointer to :c:type:`struct vb2_buffer ` to be used.h](h pointer to }(hj+hhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hj+h]hstruct vb2_buffer}(hj+hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj}+hMhj+ubh to be used.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj}+hMhj~+ubah}(h]h ]h"]h$]h&]uh1jhjb+ubeh}(h]h ]h"]h$]h&]uh1jhj}+hMhj_+ubj)}(hX``enum vb2_buffer_state state`` state of the buffer, as defined by :c:type:`enum vb2_buffer_state `. Either ``VB2_BUF_STATE_DONE`` if the operation finished successfully, ``VB2_BUF_STATE_ERROR`` if the operation finished with an error or ``VB2_BUF_STATE_QUEUED``. h](j)}(h``enum vb2_buffer_state state``h]j)}(hj+h]henum vb2_buffer_state state}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj+ubj)}(hhh]jT)}(hstate of the buffer, as defined by :c:type:`enum vb2_buffer_state `. Either ``VB2_BUF_STATE_DONE`` if the operation finished successfully, ``VB2_BUF_STATE_ERROR`` if the operation finished with an error or ``VB2_BUF_STATE_QUEUED``.h](h#state of the buffer, as defined by }(hj+hhhNhNubh)}(h2:c:type:`enum vb2_buffer_state `h]j)}(hj+h]henum vb2_buffer_state}(hj+hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_buffer_stateuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj+ubh . Either }(hj+hhhNhNubj)}(h``VB2_BUF_STATE_DONE``h]hVB2_BUF_STATE_DONE}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh) if the operation finished successfully, }(hj+hhhNhNubj)}(h``VB2_BUF_STATE_ERROR``h]hVB2_BUF_STATE_ERROR}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh, if the operation finished with an error or }(hj+hhhNhNubj)}(h``VB2_BUF_STATE_QUEUED``h]hVB2_BUF_STATE_QUEUED}(hj-,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj,hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj_+ubeh}(h]h ]h"]h$]h&]uh1jhjC+ubjT)}(h**Description**h]j)}(hjY,h]h Description}(hj[,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW,ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjC+ubjT)}(hXThis function should be called by the driver after a hardware operation on a buffer is finished and the buffer may be returned to userspace. The driver cannot use this buffer anymore until it is queued back to it by videobuf by the means of :c:type:`vb2_ops->buf_queue ` callback. Only buffers previously queued to the driver by :c:type:`vb2_ops->buf_queue ` can be passed to this function.h](hThis function should be called by the driver after a hardware operation on a buffer is finished and the buffer may be returned to userspace. The driver cannot use this buffer anymore until it is queued back to it by videobuf by the means of }(hjo,hhhNhNubh)}(h&:c:type:`vb2_ops->buf_queue `h]j)}(hjy,h]hvb2_ops->buf_queue}(hj{,hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjw,ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjo,ubh; callback. Only buffers previously queued to the driver by }(hjo,hhhNhNubh)}(h&:c:type:`vb2_ops->buf_queue `h]j)}(hj,h]hvb2_ops->buf_queue}(hj,hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhj,hMhjo,ubh can be passed to this function.}(hjo,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj,hMhjC+ubjT)}(hX'While streaming a buffer can only be returned in state DONE or ERROR. The :c:type:`vb2_ops->start_streaming ` op can also return them in case the DMA engine cannot be started for some reason. In that case the buffers should be returned with state QUEUED to put them back into the queue.h](hJWhile streaming a buffer can only be returned in state DONE or ERROR. The }(hj,hhhNhNubh)}(h,:c:type:`vb2_ops->start_streaming `h]j)}(hj,h]hvb2_ops->start_streaming}(hj,hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj,ubh op can also return them in case the DMA engine cannot be started for some reason. In that case the buffers should be returned with state QUEUED to put them back into the queue.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj,hMhjC+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_discard_done (C function)c.vb2_discard_donehNtauh1hhhhhhNhNubh)}(hhh](h)}(h+void vb2_discard_done (struct vb2_queue *q)h]h)}(h*void vb2_discard_done(struct vb2_queue *q)h](j$)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj-hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj%-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhhj$-hMubj)}(hvb2_discard_doneh]j#)}(hvb2_discard_doneh]hvb2_discard_done}(hj7-hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj3-ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj-hhhj$-hMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjS-hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjO-ubj )}(h h]h }(hj`-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO-ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjq-hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjn-ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjs-modnameN classnameNjj)}j]j$)}jx$j9-sbc.vb2_discard_doneasbuh1hhjO-ubj )}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO-ubj$)}(hj$h]h*}(hj-hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjO-ubj#)}(hj$h]hq}(hj-hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjO-ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjK-ubah}(h]h ]h"]h$]h&]hhuh1j8$hj-hhhj$-hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj-hhhj$-hMubah}(h]j -ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj$-hMhj -hhubjO)}(hhh]jT)}(h#discard all buffers marked as DONE.h]h#discard all buffers marked as DONE.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-hhubah}(h]h ]h"]h$]h&]uh1jNhj -hhhj$-hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj-jtj-jujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** This function is intended to be used with suspend/resume operations. It discards all 'done' buffers as they would be too old to be requested after resume. Drivers must stop the hardware and synchronize with interrupt handlers and/or delayed works before calling this function to make sure no buffer will be touched by the driver and/or hardware.h](jT)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj.h]hstruct vb2_queue *q}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj.ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj/.hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj9.h]hstruct vb2_queue}(hj;.hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj7.ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj+.hMhj/.ubh with videobuf2 queue.}(hj/.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj+.hMhj,.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj+.hMhj .ubah}(h]h ]h"]h$]h&]uh1jhj-ubjT)}(h**Description**h]j)}(hjt.h]h Description}(hjv.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr.ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubjT)}(hThis function is intended to be used with suspend/resume operations. It discards all 'done' buffers as they would be too old to be requested after resume.h]hThis function is intended to be used with suspend/resume operations. It discards all ‘done’ buffers as they would be too old to be requested after resume.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubjT)}(hDrivers must stop the hardware and synchronize with interrupt handlers and/or delayed works before calling this function to make sure no buffer will be touched by the driver and/or hardware.h]hDrivers must stop the hardware and synchronize with interrupt handlers and/or delayed works before calling this function to make sure no buffer will be touched by the driver and/or hardware.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%vb2_wait_for_all_buffers (C function)c.vb2_wait_for_all_buffershNtauh1hhhhhhNhNubh)}(hhh](h)}(h2int vb2_wait_for_all_buffers (struct vb2_queue *q)h]h)}(h1int vb2_wait_for_all_buffers(struct vb2_queue *q)h](j$)}(hinth]hint}(hj.hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj.hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhj.hMubj)}(hvb2_wait_for_all_buffersh]j#)}(hvb2_wait_for_all_buffersh]hvb2_wait_for_all_buffers}(hj.hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj.ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj.hhhj.hMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj/ubj )}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj#/hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj /ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj%/modnameN classnameNjj)}j]j$)}jx$j.sbc.vb2_wait_for_all_buffersasbuh1hhj/ubj )}(h h]h }(hjC/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj$)}(hj$h]h*}(hjQ/hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj/ubj#)}(hj$h]hq}(hj^/hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj.ubah}(h]h ]h"]h$]h&]hhuh1j8$hj.hhhj.hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj.hhhj.hMubah}(h]j.ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj.hMhj.hhubjO)}(hhh]jT)}(h-wait until all buffers are given back to vb2.h]h-wait until all buffers are given back to vb2.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj/hhubah}(h]h ]h"]h$]h&]uh1jNhj.hhhj.hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj/jtj/jujvjwuh1hhhhhhNhNubjy)}(hX **Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** This function will wait until all buffers that have been given to the driver by :c:type:`vb2_ops->buf_queue ` are given back to vb2 with vb2_buffer_done(). It doesn't call :c:type:`vb2_ops->wait_prepare `/:c:type:`vb2_ops->wait_finish ` pair. It is intended to be called with all locks taken, for example from :c:type:`vb2_ops->stop_streaming ` callback.h](jT)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj/ubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj/h]hstruct vb2_queue *q}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj/ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj/hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj/h]hstruct vb2_queue}(hj/hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj/hMhj/ubh with videobuf2 queue.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubjT)}(h**Description**h]j)}(hj&0h]h Description}(hj(0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$0ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj/ubjT)}(hXThis function will wait until all buffers that have been given to the driver by :c:type:`vb2_ops->buf_queue ` are given back to vb2 with vb2_buffer_done(). It doesn't call :c:type:`vb2_ops->wait_prepare `/:c:type:`vb2_ops->wait_finish ` pair. It is intended to be called with all locks taken, for example from :c:type:`vb2_ops->stop_streaming ` callback.h](hPThis function will wait until all buffers that have been given to the driver by }(hj<0hhhNhNubh)}(h&:c:type:`vb2_ops->buf_queue `h]j)}(hjF0h]hvb2_ops->buf_queue}(hjH0hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjD0ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj<0ubhA are given back to vb2 with vb2_buffer_done(). It doesn’t call }(hj<0hhhNhNubh)}(h):c:type:`vb2_ops->wait_prepare `h]j)}(hjj0h]hvb2_ops->wait_prepare}(hjl0hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjh0ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhjc0hMhj<0ubh/}(hj<0hhhNhNubh)}(h(:c:type:`vb2_ops->wait_finish `h]j)}(hj0h]hvb2_ops->wait_finish}(hj0hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhjc0hMhj<0ubhJ pair. It is intended to be called with all locks taken, for example from }(hj<0hhhNhNubh)}(h+:c:type:`vb2_ops->stop_streaming `h]j)}(hj0h]hvb2_ops->stop_streaming}(hj0hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhjc0hMhj<0ubh callback.}(hj<0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjc0hMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_querybuf (C function)c.vb2_core_querybufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hMvoid vb2_core_querybuf (struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h]h)}(hLvoid vb2_core_querybuf(struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h](j$)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj0hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhj1hMubj)}(hvb2_core_querybufh]j#)}(hvb2_core_querybufh]hvb2_core_querybuf}(hj1hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj1ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj0hhhj1hMubj9$)}(h6(struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj41hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj01ubj )}(h h]h }(hjA1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj01ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjR1hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjO1ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjT1modnameN classnameNjj)}j]j$)}jx$j1sbc.vb2_core_querybufasbuh1hhj01ubj )}(h h]h }(hjr1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj01ubj$)}(hj$h]h*}(hj1hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj01ubj#)}(hj$h]hq}(hj1hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj01ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj,1ubj?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj1ubj )}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hj1hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj1ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj1modnameN classnameNjj)}j]jn1c.vb2_core_querybufasbuh1hhj1ubj )}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj$)}(hj$h]h*}(hj1hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj1ubj#)}(hvbh]hvb}(hj1hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj1ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj,1ubj?$)}(hvoid *pbh](j$)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj2ubj )}(h h]h }(hj#2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj$)}(hj$h]h*}(hj12hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj2ubj#)}(hpbh]hpb}(hj>2hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj2ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj,1ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj0hhhj1hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj0hhhj1hMubah}(h]j0ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj1hMhj0hhubjO)}(hhh]jT)}(hquery video buffer information.h]hquery video buffer information.}(hjh2hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hje2hhubah}(h]h ]h"]h$]h&]uh1jNhj0hhhj1hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj2jtj2jujvjwuh1hhhhhhNhNubjy)}(hXA**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. ``void *pb`` buffer struct passed from userspace. **Description** Videobuf2 core helper to implement VIDIOC_QUERYBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. The passed buffer should have been verified. This function fills the relevant information for the userspace. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj2ubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj2h]hstruct vb2_queue *q}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj2ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj2hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj2h]hstruct vb2_queue}(hj2hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj2hM hj2ubh with videobuf2 queue.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM hj2ubj)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj3h]hstruct vb2_buffer *vb}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj2ubj)}(hhh]jT)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hj3hhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hj(3h]h vb2_buffer}(hj*3hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj&3ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj3hM hj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj3hM hj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hM hj2ubj)}(h2``void *pb`` buffer struct passed from userspace. h](j)}(h ``void *pb``h]j)}(hja3h]hvoid *pb}(hjc3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_3ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj[3ubj)}(hhh]jT)}(h$buffer struct passed from userspace.h]h$buffer struct passed from userspace.}(hjz3hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjv3hM hjw3ubah}(h]h ]h"]h$]h&]uh1jhj[3ubeh}(h]h ]h"]h$]h&]uh1jhjv3hM hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubjT)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjT)}(hVideobuf2 core helper to implement VIDIOC_QUERYBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](hVideobuf2 core helper to implement VIDIOC_QUERYBUF() operation. It is called internally by VB2 by an API-specific handler, like }(hj3hhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjT)}(h,The passed buffer should have been verified.h]h,The passed buffer should have been verified.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjT)}(h?This function fills the relevant information for the userspace.h]h?This function fills the relevant information for the userspace.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjT)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_reqbufs (C function)c.vb2_core_reqbufshNtauh1hhhhhhNhNubh)}(hhh](h)}(hkint vb2_core_reqbufs (struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count)h]h)}(hjint vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count)h](j$)}(hinth]hint}(hj84hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj44hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM6ubj )}(h h]h }(hjG4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj44hhhjF4hM6ubj)}(hvb2_core_reqbufsh]j#)}(hvb2_core_reqbufsh]hvb2_core_reqbufs}(hjY4hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjU4ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj44hhhjF4hM6ubj9$)}(hV(struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hju4hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjq4ubj )}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq4ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj4hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj4ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj4modnameN classnameNjj)}j]j$)}jx$j[4sbc.vb2_core_reqbufsasbuh1hhjq4ubj )}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq4ubj$)}(hj$h]h*}(hj4hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjq4ubj#)}(hj$h]hq}(hj4hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjq4ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjm4ubj?$)}(henum vb2_memory memoryh](h)}(hhh]henum}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj4ubj )}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubh)}(hhh]j#)}(h vb2_memoryh]h vb2_memory}(hj5hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj5ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj5modnameN classnameNjj)}j]j4c.vb2_core_reqbufsasbuh1hhj4ubj )}(h h]h }(hj"5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj#)}(hmemoryh]hmemory}(hj05hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj4ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjm4ubj?$)}(hunsigned int flagsh](j$)}(hunsignedh]hunsigned}(hjI5hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjE5ubj )}(h h]h }(hjW5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjE5ubj$)}(hinth]hint}(hje5hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjE5ubj )}(h h]h }(hjs5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjE5ubj#)}(hflagsh]hflags}(hj5hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjE5ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjm4ubj?$)}(hunsigned int *counth](j$)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj5ubj )}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj$)}(hinth]hint}(hj5hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj5ubj )}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj$)}(hj$h]h*}(hj5hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj5ubj#)}(hcounth]hcount}(hj5hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj5ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjm4ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj44hhhjF4hM6ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj04hhhjF4hM6ubah}(h]j+4ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjF4hM6hj-4hhubjO)}(hhh]jT)}(hInitiate streaming.h]hInitiate streaming.}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj6hhubah}(h]h ]h"]h$]h&]uh1jNhj-4hhhjF4hM6ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj!6jtj!6jujvjwuh1hhhhhhNhNubjy)}(hX **Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``enum vb2_memory memory`` memory type, as defined by :c:type:`enum vb2_memory `. ``unsigned int flags`` auxiliary queue/buffer management flags. Currently, the only used flag is ``V4L2_MEMORY_FLAG_NON_COHERENT``. ``unsigned int *count`` requested buffer count. **Description** Videobuf2 core helper to implement VIDIOC_REQBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. This function: #) verifies streaming parameters passed from the userspace; #) sets up the queue; #) negotiates number of buffers and planes per buffer with the driver to be used during streaming; #) allocates internal buffer structures (:c:type:`struct vb2_buffer `), according to the agreed parameters; #) for MMAP memory type, allocates actual video memory, using the memory handling/allocation routines provided during queue initialization. If req->count is 0, all the memory will be freed instead. If the queue has been allocated previously by a previous vb2_core_reqbufs() call and the queue is not busy, memory will be reallocated. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hj+6h]h Parameters}(hj-6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)6ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj%6ubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjJ6h]hstruct vb2_queue *q}(hjL6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH6ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjD6ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjc6hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjm6h]hstruct vb2_queue}(hjo6hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjk6ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj_6hMhjc6ubh with videobuf2 queue.}(hjc6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj_6hMhj`6ubah}(h]h ]h"]h$]h&]uh1jhjD6ubeh}(h]h ]h"]h$]h&]uh1jhj_6hMhjA6ubj)}(h^``enum vb2_memory memory`` memory type, as defined by :c:type:`enum vb2_memory `. h](j)}(h``enum vb2_memory memory``h]j)}(hj6h]henum vb2_memory memory}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj6ubj)}(hhh]jT)}(hBmemory type, as defined by :c:type:`enum vb2_memory `.h](hmemory type, as defined by }(hj6hhhNhNubh)}(h&:c:type:`enum vb2_memory `h]j)}(hj6h]henum vb2_memory}(hj6hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_memoryuh1hhj6hMhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjA6ubj)}(h``unsigned int flags`` auxiliary queue/buffer management flags. Currently, the only used flag is ``V4L2_MEMORY_FLAG_NON_COHERENT``. h](j)}(h``unsigned int flags``h]j)}(hj7h]hunsigned int flags}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj6ubj)}(hhh]jT)}(hlauxiliary queue/buffer management flags. Currently, the only used flag is ``V4L2_MEMORY_FLAG_NON_COHERENT``.h](hJauxiliary queue/buffer management flags. Currently, the only used flag is }(hj7hhhNhNubj)}(h!``V4L2_MEMORY_FLAG_NON_COHERENT``h]hV4L2_MEMORY_FLAG_NON_COHERENT}(hj#7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjA6ubj)}(h0``unsigned int *count`` requested buffer count. h](j)}(h``unsigned int *count``h]j)}(hjN7h]hunsigned int *count}(hjP7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL7ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjH7ubj)}(hhh]jT)}(hrequested buffer count.h]hrequested buffer count.}(hjg7hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjc7hMhjd7ubah}(h]h ]h"]h$]h&]uh1jhjH7ubeh}(h]h ]h"]h$]h&]uh1jhjc7hMhjA6ubeh}(h]h ]h"]h$]h&]uh1jhj%6ubjT)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM!hj%6ubjT)}(hVideobuf2 core helper to implement VIDIOC_REQBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](h~Videobuf2 core helper to implement VIDIOC_REQBUF() operation. It is called internally by VB2 by an API-specific handler, like }(hj7hhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM!hj%6ubjT)}(hThis function:h]hThis function:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM$hj%6ubj)}(hhh](j)}(h8verifies streaming parameters passed from the userspace;h]jT)}(hj7h]h8verifies streaming parameters passed from the userspace;}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM&hj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(hsets up the queue;h]jT)}(hj7h]hsets up the queue;}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM'hj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(h_negotiates number of buffers and planes per buffer with the driver to be used during streaming;h]jT)}(h_negotiates number of buffers and planes per buffer with the driver to be used during streaming;h]h_negotiates number of buffers and planes per buffer with the driver to be used during streaming;}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM(hj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(htallocates internal buffer structures (:c:type:`struct vb2_buffer `), according to the agreed parameters;h]jT)}(htallocates internal buffer structures (:c:type:`struct vb2_buffer `), according to the agreed parameters;h](h&allocates internal buffer structures (}(hj8hhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hj)8h]hstruct vb2_buffer}(hj+8hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj'8ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM*hj8ubh&), according to the agreed parameters;}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjF8hM*hj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(hfor MMAP memory type, allocates actual video memory, using the memory handling/allocation routines provided during queue initialization. h]jT)}(hfor MMAP memory type, allocates actual video memory, using the memory handling/allocation routines provided during queue initialization.h]hfor MMAP memory type, allocates actual video memory, using the memory handling/allocation routines provided during queue initialization.}(hj[8hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM,hjW8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj%6ubjT)}(h9If req->count is 0, all the memory will be freed instead.h]h9If req->count is 0, all the memory will be freed instead.}(hjv8hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM/hj%6ubjT)}(hIf the queue has been allocated previously by a previous vb2_core_reqbufs() call and the queue is not busy, memory will be reallocated.h]hIf the queue has been allocated previously by a previous vb2_core_reqbufs() call and the queue is not busy, memory will be reallocated.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM1hj%6ubjT)}(h **Return**h]j)}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM4hj%6ubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM4hj%6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_core_create_bufs (C function)c.vb2_core_create_bufshNtauh1hhhhhhNhNubh)}(hhh](h)}(hint vb2_core_create_bufs (struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count, unsigned int requested_planes, const unsigned int requested_sizes[], unsigned int *first_index)h]h)}(hint vb2_core_create_bufs(struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count, unsigned int requested_planes, const unsigned int requested_sizes[], unsigned int *first_index)h](j$)}(hinth]hint}(hj8hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj8hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMPubj )}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhj8hMPubj)}(hvb2_core_create_bufsh]j#)}(hvb2_core_create_bufsh]hvb2_core_create_bufs}(hj8hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj8ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj8hhhj8hMPubj9$)}(h(struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count, unsigned int requested_planes, const unsigned int requested_sizes[], unsigned int *first_index)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj9ubj )}(h h]h }(hj%9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj69hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj39ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj89modnameN classnameNjj)}j]j$)}jx$j8sbc.vb2_core_create_bufsasbuh1hhj9ubj )}(h h]h }(hjV9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj$)}(hj$h]h*}(hjd9hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj9ubj#)}(hj$h]hq}(hjq9hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj9ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9ubj?$)}(henum vb2_memory memoryh](h)}(hhh]henum}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj9ubj )}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubh)}(hhh]j#)}(h vb2_memoryh]h vb2_memory}(hj9hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj9ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj9modnameN classnameNjj)}j]jR9c.vb2_core_create_bufsasbuh1hhj9ubj )}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj#)}(hmemoryh]hmemory}(hj9hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj9ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9ubj?$)}(hunsigned int flagsh](j$)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj9ubj )}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj$)}(hinth]hint}(hj:hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj9ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj#)}(hflagsh]hflags}(hj$:hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj9ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9ubj?$)}(hunsigned int *counth](j$)}(hunsignedh]hunsigned}(hj=:hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj9:ubj )}(h h]h }(hjK:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9:ubj$)}(hinth]hint}(hjY:hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj9:ubj )}(h h]h }(hjg:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9:ubj$)}(hj$h]h*}(hju:hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj9:ubj#)}(hcounth]hcount}(hj:hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj9:ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9ubj?$)}(hunsigned int requested_planesh](j$)}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj:ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj$)}(hinth]hint}(hj:hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj:ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj#)}(hrequested_planesh]hrequested_planes}(hj:hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9ubj?$)}(h$const unsigned int requested_sizes[]h](h)}(hconsth]hconst}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj:ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj$)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj:ubj )}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj$)}(hinth]hint}(hj$;hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj:ubj )}(h h]h }(hj2;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj#)}(hrequested_sizesh]hrequested_sizes}(hj@;hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj:ubj$)}(h[h]h[}(hjN;hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj:ubj$)}(h]h]h]}(hj\;hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9ubj?$)}(hunsigned int *first_indexh](j$)}(hunsignedh]hunsigned}(hju;hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjq;ubj )}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq;ubj$)}(hinth]hint}(hj;hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjq;ubj )}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq;ubj$)}(hj$h]h*}(hj;hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjq;ubj#)}(h first_indexh]h first_index}(hj;hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjq;ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj9ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj8hhhj8hMPubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj8hhhj8hMPubah}(h]j8ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj8hMPhj8hhubjO)}(hhh]jT)}(h3Allocate buffers and any required auxiliary structsh]h3Allocate buffers and any required auxiliary structs}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM:hj;hhubah}(h]h ]h"]h$]h&]uh1jNhj8hhhj8hMPubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj;jtj;jujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``enum vb2_memory memory`` memory type, as defined by :c:type:`enum vb2_memory `. ``unsigned int flags`` auxiliary queue/buffer management flags. ``unsigned int *count`` requested buffer count. ``unsigned int requested_planes`` number of planes requested. ``const unsigned int requested_sizes[]`` array with the size of the planes. ``unsigned int *first_index`` index of the first created buffer, all allocated buffers have indices in the range [first_index..first_index+count-1] **Description** Videobuf2 core helper to implement VIDIOC_CREATE_BUFS() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. This function: #) verifies parameter sanity; #) calls the :c:type:`vb2_ops->queue_setup ` queue operation; #) performs any necessary memory allocations. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM>hj<ubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj%<h]hstruct vb2_queue *q}(hj'<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#<ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM;hj<ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj><hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjH<h]hstruct vb2_queue}(hjJ<hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjF<ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj:<hM;hj><ubh with videobuf2 queue.}(hj><hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj:<hM;hj;<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj:<hM;hj<ubj)}(h^``enum vb2_memory memory`` memory type, as defined by :c:type:`enum vb2_memory `. h](j)}(h``enum vb2_memory memory``h]j)}(hj<h]henum vb2_memory memory}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM<hj{<ubj)}(hhh]jT)}(hBmemory type, as defined by :c:type:`enum vb2_memory `.h](hmemory type, as defined by }(hj<hhhNhNubh)}(h&:c:type:`enum vb2_memory `h]j)}(hj<h]henum vb2_memory}(hj<hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_memoryuh1hhj<hM<hj<ubh.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj<hM<hj<ubah}(h]h ]h"]h$]h&]uh1jhj{<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM<hj<ubj)}(h@``unsigned int flags`` auxiliary queue/buffer management flags. h](j)}(h``unsigned int flags``h]j)}(hj<h]hunsigned int flags}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM=hj<ubj)}(hhh]jT)}(h(auxiliary queue/buffer management flags.h]h(auxiliary queue/buffer management flags.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj<hM=hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM=hj<ubj)}(h0``unsigned int *count`` requested buffer count. h](j)}(h``unsigned int *count``h]j)}(hj=h]hunsigned int *count}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM>hj=ubj)}(hhh]jT)}(hrequested buffer count.h]hrequested buffer count.}(hj/=hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj+=hM>hj,=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj+=hM>hj<ubj)}(h>``unsigned int requested_planes`` number of planes requested. h](j)}(h!``unsigned int requested_planes``h]j)}(hjO=h]hunsigned int requested_planes}(hjQ=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM=ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM?hjI=ubj)}(hhh]jT)}(hnumber of planes requested.h]hnumber of planes requested.}(hjh=hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjd=hM?hje=ubah}(h]h ]h"]h$]h&]uh1jhjI=ubeh}(h]h ]h"]h$]h&]uh1jhjd=hM?hj<ubj)}(hL``const unsigned int requested_sizes[]`` array with the size of the planes. h](j)}(h(``const unsigned int requested_sizes[]``h]j)}(hj=h]h$const unsigned int requested_sizes[]}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM@hj=ubj)}(hhh]jT)}(h"array with the size of the planes.h]h"array with the size of the planes.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj=hM@hj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hM@hj<ubj)}(h``unsigned int *first_index`` index of the first created buffer, all allocated buffers have indices in the range [first_index..first_index+count-1] h](j)}(h``unsigned int *first_index``h]j)}(hj=h]hunsigned int *first_index}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMBhj=ubj)}(hhh]jT)}(huindex of the first created buffer, all allocated buffers have indices in the range [first_index..first_index+count-1]h]huindex of the first created buffer, all allocated buffers have indices in the range [first_index..first_index+count-1]@}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMAhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMBhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubjT)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMDhj<ubjT)}(hVideobuf2 core helper to implement VIDIOC_CREATE_BUFS() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](hVideobuf2 core helper to implement VIDIOC_CREATE_BUFS() operation. It is called internally by VB2 by an API-specific handler, like }(hj>hhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMDhj<ubjT)}(hThis function:h]hThis function:}(hj4>hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMHhj<ubj)}(hhh](j)}(hverifies parameter sanity;h]jT)}(hjH>h]hverifies parameter sanity;}(hjJ>hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMJhjF>ubah}(h]h ]h"]h$]h&]uh1jhjC>ubj)}(hCcalls the :c:type:`vb2_ops->queue_setup ` queue operation;h]jT)}(hj`>h](h calls the }(hjb>hhhNhNubh)}(h(:c:type:`vb2_ops->queue_setup `h]j)}(hjk>h]hvb2_ops->queue_setup}(hjm>hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhji>ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMKhjb>ubh queue operation;}(hjb>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj>hMKhj^>ubah}(h]h ]h"]h$]h&]uh1jhjC>ubj)}(h+performs any necessary memory allocations. h]jT)}(h*performs any necessary memory allocations.h]h*performs any necessary memory allocations.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMLhj>ubah}(h]h ]h"]h$]h&]uh1jhjC>ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj<ubjT)}(h **Return**h]j)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhj<ubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_core_prepare_buf (C function)c.vb2_core_prepare_bufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hOint vb2_core_prepare_buf (struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h]h)}(hNint vb2_core_prepare_buf(struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h](j$)}(hinth]hint}(hj>hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj>hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMjubj )}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>hhhj ?hMjubj)}(hvb2_core_prepare_bufh]j#)}(hvb2_core_prepare_bufh]hvb2_core_prepare_buf}(hj ?hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj?ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj>hhhj ?hMjubj9$)}(h6(struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj$hj4?ubj?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj?ubj )}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hj?hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj?ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj?modnameN classnameNjj)}j]jv?c.vb2_core_prepare_bufasbuh1hhj?ubj )}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj$)}(hj$h]h*}(hj?hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj?ubj#)}(hvbh]hvb}(hj@hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj?ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj4?ubj?$)}(hvoid *pbh](j$)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj@ubj )}(h h]h }(hj+@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj$)}(hj$h]h*}(hj9@hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj@ubj#)}(hpbh]hpb}(hjF@hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj@ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj4?ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj>hhhj ?hMjubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj>hhhj ?hMjubah}(h]j>ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj ?hMjhj>hhubjO)}(hhh]jT)}(h8Pass ownership of a buffer from userspace to the kernel.h]h8Pass ownership of a buffer from userspace to the kernel.}(hjp@hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMWhjm@hhubah}(h]h ]h"]h$]h&]uh1jNhj>hhhj ?hMjubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj@jtj@jujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. ``void *pb`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driver. **Description** Videobuf2 core helper to implement VIDIOC_PREPARE_BUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. The passed buffer should have been verified. This function calls vb2_ops->buf_prepare callback in the driver (if provided), in which driver-specific buffer initialization can be performed. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM[hj@ubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj@h]hstruct vb2_queue *q}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMYhj@ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj@hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj@h]hstruct vb2_queue}(hj@hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj@hMYhj@ubh with videobuf2 queue.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj@hMYhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMYhj@ubj)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj Ah]hstruct vb2_buffer *vb}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMZhjAubj)}(hhh]jT)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hj&AhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hj0Ah]h vb2_buffer}(hj2AhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj.Aubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj"AhMZhj&Aubh.}(hj&AhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj"AhMZhj#Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj"AhMZhj@ubj)}(h``void *pb`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driver. h](j)}(h ``void *pb``h]j)}(hjiAh]hvoid *pb}(hjkAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgAubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM\hjcAubj)}(hhh]jT)}(hzbuffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driver.h](h*buffer structure passed from userspace to }(hjAhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_prepare_buf `h]j)}(hjAh]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hjAhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM[hjAubh handler in driver.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjAhM[hjAubah}(h]h ]h"]h$]h&]uh1jhjcAubeh}(h]h ]h"]h$]h&]uh1jhj~AhM\hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubjT)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM^hj@ubjT)}(hVideobuf2 core helper to implement VIDIOC_PREPARE_BUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](hVideobuf2 core helper to implement VIDIOC_PREPARE_BUF() operation. It is called internally by VB2 by an API-specific handler, like }(hjAhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM^hj@ubjT)}(h,The passed buffer should have been verified.h]h,The passed buffer should have been verified.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMbhj@ubjT)}(hThis function calls vb2_ops->buf_prepare callback in the driver (if provided), in which driver-specific buffer initialization can be performed.h]hThis function calls vb2_ops->buf_prepare callback in the driver (if provided), in which driver-specific buffer initialization can be performed.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMdhj@ubjT)}(h **Return**h]j)}(hjBh]hReturn}(hj!BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhhj@ubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hj5BhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_core_remove_bufs (C function)c.vb2_core_remove_bufshNtauh1hhhhhhNhNubh)}(hhh](h)}(hVint vb2_core_remove_bufs (struct vb2_queue *q, unsigned int start, unsigned int count)h]h)}(hUint vb2_core_remove_bufs(struct vb2_queue *q, unsigned int start, unsigned int count)h](j$)}(hinth]hint}(hjdBhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj`Bhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMtubj )}(h h]h }(hjsBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`BhhhjrBhMtubj)}(hvb2_core_remove_bufsh]j#)}(hvb2_core_remove_bufsh]hvb2_core_remove_bufs}(hjBhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjBubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj`BhhhjrBhMtubj9$)}(h=(struct vb2_queue *q, unsigned int start, unsigned int count)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjBubj )}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjBhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjBubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjBmodnameN classnameNjj)}j]j$)}jx$jBsbc.vb2_core_remove_bufsasbuh1hhjBubj )}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBubj$)}(hj$h]h*}(hjBhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjBubj#)}(hj$h]hq}(hjBhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjBubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjBubj?$)}(hunsigned int starth](j$)}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjCubj )}(h h]h }(hj ChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj$)}(hinth]hint}(hj.ChhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjCubj )}(h h]h }(hj$hjBubj?$)}(hunsigned int counth](j$)}(hunsignedh]hunsigned}(hjcChhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj_Cubj )}(h h]h }(hjqChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_Cubj$)}(hinth]hint}(hjChhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj_Cubj )}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_Cubj#)}(hcounth]hcount}(hjChhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj_Cubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjBubeh}(h]h ]h"]h$]h&]hhuh1j8$hj`BhhhjrBhMtubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj\BhhhjrBhMtubah}(h]jWBah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjrBhMthjYBhhubjO)}(hhh]h}(h]h ]h"]h$]h&]uh1jNhjYBhhhjrBhMtubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjCjtjCjujvjwuh1hhhhhhNhNubjy)}(hX0**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``unsigned int start`` first index of the range of buffers to remove. ``unsigned int count`` number of buffers to remove. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMphjCubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjCh]hstruct vb2_queue *q}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMnhjCubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjDhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjDh]hstruct vb2_queue}(hjDhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj DhMnhjDubh with videobuf2 queue.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj DhMnhj Dubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj DhMnhjCubj)}(hF``unsigned int start`` first index of the range of buffers to remove. h](j)}(h``unsigned int start``h]j)}(hjSDh]hunsigned int start}(hjUDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQDubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMohjMDubj)}(hhh]jT)}(h.first index of the range of buffers to remove.h]h.first index of the range of buffers to remove.}(hjlDhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhDhMohjiDubah}(h]h ]h"]h$]h&]uh1jhjMDubeh}(h]h ]h"]h$]h&]uh1jhjhDhMohjCubj)}(h4``unsigned int count`` number of buffers to remove. h](j)}(h``unsigned int count``h]j)}(hjDh]hunsigned int count}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMphjDubj)}(hhh]jT)}(hnumber of buffers to remove.h]hnumber of buffers to remove.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjDhMphjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMphjCubeh}(h]h ]h"]h$]h&]uh1jhjCubjT)}(h **Return**h]j)}(hjDh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMrhjCubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMrhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_qbuf (C function)c.vb2_core_qbufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hcint vb2_core_qbuf (struct vb2_queue *q, struct vb2_buffer *vb, void *pb, struct media_request *req)h]h)}(hbint vb2_core_qbuf(struct vb2_queue *q, struct vb2_buffer *vb, void *pb, struct media_request *req)h](j$)}(hinth]hint}(hj EhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjEhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhjEhMubj)}(h vb2_core_qbufh]j#)}(h vb2_core_qbufh]h vb2_core_qbuf}(hj-EhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj)Eubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjEhhhjEhMubj9$)}(hQ(struct vb2_queue *q, struct vb2_buffer *vb, void *pb, struct media_request *req)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjIEhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjEEubj )}(h h]h }(hjVEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEEubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjgEhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjdEubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjiEmodnameN classnameNjj)}j]j$)}jx$j/Esbc.vb2_core_qbufasbuh1hhjEEubj )}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEEubj$)}(hj$h]h*}(hjEhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjEEubj#)}(hj$h]hq}(hjEhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjEEubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjAEubj?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjEubj )}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hjEhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjEubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjEmodnameN classnameNjj)}j]jEc.vb2_core_qbufasbuh1hhjEubj )}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj$)}(hj$h]h*}(hjFhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjEubj#)}(hvbh]hvb}(hjFhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjEubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjAEubj?$)}(hvoid *pbh](j$)}(hvoidh]hvoid}(hj*FhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj&Fubj )}(h h]h }(hj8FhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&Fubj$)}(hj$h]h*}(hjFFhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj&Fubj#)}(hpbh]hpb}(hjSFhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj&Fubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjAEubj?$)}(hstruct media_request *reqh](h)}(hjh]hstruct}(hjlFhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjhFubj )}(h h]h }(hjyFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhFubh)}(hhh]j#)}(h media_requesth]h media_request}(hjFhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjFubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjFmodnameN classnameNjj)}j]jEc.vb2_core_qbufasbuh1hhjhFubj )}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhFubj$)}(hj$h]h*}(hjFhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjhFubj#)}(hreqh]hreq}(hjFhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjhFubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjAEubeh}(h]h ]h"]h$]h&]hhuh1j8$hjEhhhjEhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjEhhhjEhMubah}(h]jDah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjEhMhjEhhubjO)}(hhh]jT)}(hQueue a buffer from userspaceh]hQueue a buffer from userspace}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMwhjFhhubah}(h]h ]h"]h$]h&]uh1jNhjEhhhjEhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjGjtjGjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. ``void *pb`` buffer structure passed from userspace to v4l2_ioctl_ops->vidioc_qbuf handler in driver ``struct media_request *req`` pointer to :c:type:`struct media_request `, may be NULL. **Description** Videobuf2 core helper to implement VIDIOC_QBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. This function: #) If **req** is non-NULL, then the buffer will be bound to this media request and it returns. The buffer will be prepared and queued to the driver (i.e. the next two steps) when the request itself is queued. #) if necessary, calls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed; #) if streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Gubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM{hj Gubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj.Gh]hstruct vb2_queue *q}(hj0GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Gubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMyhj(Gubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjGGhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjQGh]hstruct vb2_queue}(hjSGhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjOGubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjCGhMyhjGGubh with videobuf2 queue.}(hjGGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjCGhMyhjDGubah}(h]h ]h"]h$]h&]uh1jhj(Gubeh}(h]h ]h"]h$]h&]uh1jhjCGhMyhj%Gubj)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hjGh]hstruct vb2_buffer *vb}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMzhjGubj)}(hhh]jT)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hjGhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjGh]h vb2_buffer}(hjGhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhjGhMzhjGubh.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjGhMzhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMzhj%Gubj)}(he``void *pb`` buffer structure passed from userspace to v4l2_ioctl_ops->vidioc_qbuf handler in driver h](j)}(h ``void *pb``h]j)}(hjGh]hvoid *pb}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM|hjGubj)}(hhh]jT)}(hWbuffer structure passed from userspace to v4l2_ioctl_ops->vidioc_qbuf handler in driverh]hWbuffer structure passed from userspace to v4l2_ioctl_ops->vidioc_qbuf handler in driver}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM{hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM|hj%Gubj)}(hf``struct media_request *req`` pointer to :c:type:`struct media_request `, may be NULL. h](j)}(h``struct media_request *req``h]j)}(hj Hh]hstruct media_request *req}(hj"HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM}hjHubj)}(hhh]jT)}(hGpointer to :c:type:`struct media_request `, may be NULL.h](h pointer to }(hj9HhhhNhNubh)}(h.:c:type:`struct media_request `h]j)}(hjCHh]hstruct media_request}(hjEHhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjAHubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj media_requestuh1hhj5HhM}hj9Hubh, may be NULL.}(hj9HhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj5HhM}hj6Hubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhj5HhM}hj%Gubeh}(h]h ]h"]h$]h&]uh1jhj GubjT)}(h**Description**h]j)}(hj~Hh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Hubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj GubjT)}(hVideobuf2 core helper to implement VIDIOC_QBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](h|Videobuf2 core helper to implement VIDIOC_QBUF() operation. It is called internally by VB2 by an API-specific handler, like }(hjHhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj GubjT)}(hThis function:h]hThis function:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj Gubj)}(hhh](j)}(hIf **req** is non-NULL, then the buffer will be bound to this media request and it returns. The buffer will be prepared and queued to the driver (i.e. the next two steps) when the request itself is queued.h]jT)}(hIf **req** is non-NULL, then the buffer will be bound to this media request and it returns. The buffer will be prepared and queued to the driver (i.e. the next two steps) when the request itself is queued.h](hIf }(hjHhhhNhNubj)}(h**req**h]hreq}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh is non-NULL, then the buffer will be bound to this media request and it returns. The buffer will be prepared and queued to the driver (i.e. the next two steps) when the request itself is queued.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(hif necessary, calls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed;h]jT)}(hif necessary, calls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed;h](hif necessary, calls }(hjHhhhNhNubh)}(h(:c:type:`vb2_ops->buf_prepare `h]j)}(hjIh]hvb2_ops->buf_prepare}(hjIhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjHubhg callback in the driver (if provided), in which driver-specific buffer initialization can be performed;}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjIhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(hif streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing. h]jT)}(hif streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing.h](h@if streaming is on, queues the buffer in driver by the means of }(hj2IhhhNhNubh)}(h&:c:type:`vb2_ops->buf_queue `h]j)}(hjbuf_queue}(hj>IhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj:Iubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2Iubh callback for processing.}(hj2IhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjYIhMhj.Iubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj GubjT)}(h **Return**h]j)}(hjrIh]hReturn}(hjtIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpIubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj GubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj Gubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_dqbuf (C function)c.vb2_core_dqbufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hZint vb2_core_dqbuf (struct vb2_queue *q, unsigned int *pindex, void *pb, bool nonblocking)h]h)}(hYint vb2_core_dqbuf(struct vb2_queue *q, unsigned int *pindex, void *pb, bool nonblocking)h](j$)}(hinth]hint}(hjIhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjIhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhjIhMubj)}(hvb2_core_dqbufh]j#)}(hvb2_core_dqbufh]hvb2_core_dqbuf}(hjIhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjIubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjIhhhjIhMubj9$)}(hG(struct vb2_queue *q, unsigned int *pindex, void *pb, bool nonblocking)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjIubj )}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjJhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjJubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjJmodnameN classnameNjj)}j]j$)}jx$jIsbc.vb2_core_dqbufasbuh1hhjIubj )}(h h]h }(hj2JhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubj$)}(hj$h]h*}(hj@JhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjIubj#)}(hj$h]hq}(hjMJhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjIubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIubj?$)}(hunsigned int *pindexh](j$)}(hunsignedh]hunsigned}(hjeJhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjaJubj )}(h h]h }(hjsJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaJubj$)}(hinth]hint}(hjJhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjaJubj )}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaJubj$)}(hj$h]h*}(hjJhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjaJubj#)}(hpindexh]hpindex}(hjJhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjaJubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIubj?$)}(hvoid *pbh](j$)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjJubj )}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj$)}(hj$h]h*}(hjJhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjJubj#)}(hpbh]hpb}(hjJhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjJubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIubj?$)}(hbool nonblockingh](j$)}(hj$h]hbool}(hjKhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjKubj )}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKubj#)}(h nonblockingh]h nonblocking}(hj KhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjKubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIubeh}(h]h ]h"]h$]h&]hhuh1j8$hjIhhhjIhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjIhhhjIhMubah}(h]jIah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjIhMhjIhhubjO)}(hhh]jT)}(h!Dequeue a buffer to the userspaceh]h!Dequeue a buffer to the userspace}(hjJKhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjGKhhubah}(h]h ]h"]h$]h&]uh1jNhjIhhhjIhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjbKjtjbKjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue ``unsigned int *pindex`` pointer to the buffer index. May be NULL ``void *pb`` buffer structure passed from userspace to v4l2_ioctl_ops->vidioc_dqbuf handler in driver. ``bool nonblocking`` if true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (file->f_flags & O_NONBLOCK) here. **Description** Videobuf2 core helper to implement VIDIOC_DQBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. This function: #) calls buf_finish callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync, #) the buffer struct members are filled with relevant information for the userspace. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hjlKh]h Parameters}(hjnKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjKubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfKubj)}(hhh](j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue h](j)}(h``struct vb2_queue *q``h]j)}(hjKh]hstruct vb2_queue *q}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubj)}(hhh]jT)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hjKhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjKh]hstruct vb2_queue}(hjKhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjKhMhjKubh with videobuf2 queue}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubj)}(hB``unsigned int *pindex`` pointer to the buffer index. May be NULL h](j)}(h``unsigned int *pindex``h]j)}(hjKh]hunsigned int *pindex}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubj)}(hhh]jT)}(h(pointer to the buffer index. May be NULLh]h(pointer to the buffer index. May be NULL}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubj)}(hg``void *pb`` buffer structure passed from userspace to v4l2_ioctl_ops->vidioc_dqbuf handler in driver. h](j)}(h ``void *pb``h]j)}(hj Lh]hvoid *pb}(hj"LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjLubj)}(hhh]jT)}(hYbuffer structure passed from userspace to v4l2_ioctl_ops->vidioc_dqbuf handler in driver.h]hYbuffer structure passed from userspace to v4l2_ioctl_ops->vidioc_dqbuf handler in driver.}(hj9LhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj6Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhj5LhMhjKubj)}(h``bool nonblocking`` if true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (file->f_flags & O_NONBLOCK) here. h](j)}(h``bool nonblocking``h]j)}(hjZLh]hbool nonblocking}(hj\LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXLubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjTLubj)}(hhh]jT)}(hif true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (file->f_flags & O_NONBLOCK) here.h]hif true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (file->f_flags & O_NONBLOCK) here.}(hjsLhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjpLubah}(h]h ]h"]h$]h&]uh1jhjTLubeh}(h]h ]h"]h$]h&]uh1jhjoLhMhjKubeh}(h]h ]h"]h$]h&]uh1jhjfKubjT)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfKubjT)}(hVideobuf2 core helper to implement VIDIOC_DQBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](h}Videobuf2 core helper to implement VIDIOC_DQBUF() operation. It is called internally by VB2 by an API-specific handler, like }(hjLhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfKubjT)}(hThis function:h]hThis function:}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfKubj)}(hhh](j)}(hcalls buf_finish callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync,h]jT)}(hcalls buf_finish callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync,h]hcalls buf_finish callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync,}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hRthe buffer struct members are filled with relevant information for the userspace. h]jT)}(hQthe buffer struct members are filled with relevant information for the userspace.h]hQthe buffer struct members are filled with relevant information for the userspace.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjfKubjT)}(h **Return**h]j)}(hjMh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfKubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hj/MhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfKubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_streamon (C function)c.vb2_core_streamonhNtauh1hhhhhhNhNubh)}(hhh](h)}(h>int vb2_core_streamon (struct vb2_queue *q, unsigned int type)h]h)}(h=int vb2_core_streamon(struct vb2_queue *q, unsigned int type)h](j$)}(hinth]hint}(hj^MhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjZMhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjmMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZMhhhjlMhMubj)}(hvb2_core_streamonh]j#)}(hvb2_core_streamonh]hvb2_core_streamon}(hjMhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj{Mubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjZMhhhjlMhMubj9$)}(h((struct vb2_queue *q, unsigned int type)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjMubj )}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjMhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjMubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjMmodnameN classnameNjj)}j]j$)}jx$jMsbc.vb2_core_streamonasbuh1hhjMubj )}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj$)}(hj$h]h*}(hjMhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjMubj#)}(hj$h]hq}(hjMhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjMubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjMubj?$)}(hunsigned int typeh](j$)}(hunsignedh]hunsigned}(hj NhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjNubj )}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj$)}(hinth]hint}(hj(NhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjNubj )}(h h]h }(hj6NhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj#)}(htypeh]htype}(hjDNhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjNubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjMubeh}(h]h ]h"]h$]h&]hhuh1j8$hjZMhhhjlMhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjVMhhhjlMhMubah}(h]jQMah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjlMhMhjSMhhubjO)}(hhh]jT)}(hImplements VB2 stream ON logich]hImplements VB2 stream ON logic}(hjnNhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjkNhhubah}(h]h ]h"]h$]h&]uh1jNhjSMhhhjlMhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjNjtjNjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue ``unsigned int type`` type of the queue to be started. For V4L2, this is defined by :c:type:`enum v4l2_buf_type ` type. **Description** Videobuf2 core helper to implement VIDIOC_STREAMON() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubj)}(hhh](j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue h](j)}(h``struct vb2_queue *q``h]j)}(hjNh]hstruct vb2_queue *q}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubj)}(hhh]jT)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hjNhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjNh]hstruct vb2_queue}(hjNhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjNhMhjNubh with videobuf2 queue}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjNubj)}(h``unsigned int type`` type of the queue to be started. For V4L2, this is defined by :c:type:`enum v4l2_buf_type ` type. h](j)}(h``unsigned int type``h]j)}(hj Oh]hunsigned int type}(hj OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjOubj)}(hhh]jT)}(hptype of the queue to be started. For V4L2, this is defined by :c:type:`enum v4l2_buf_type ` type.h](h>type of the queue to be started. For V4L2, this is defined by }(hj$OhhhNhNubh)}(h,:c:type:`enum v4l2_buf_type `h]j)}(hj.Oh]henum v4l2_buf_type}(hj0OhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj,Oubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$Oubh type.}(hj$OhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjKOhMhj!Oubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj OhMhjNubeh}(h]h ]h"]h$]h&]uh1jhjNubjT)}(h**Description**h]j)}(hjjOh]h Description}(hjlOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhOubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubjT)}(hVideobuf2 core helper to implement VIDIOC_STREAMON() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](hVideobuf2 core helper to implement VIDIOC_STREAMON() operation. It is called internally by VB2 by an API-specific handler, like }(hjOhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubjT)}(h **Return**h]j)}(hjOh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_streamoff (C function)c.vb2_core_streamoffhNtauh1hhhhhhNhNubh)}(hhh](h)}(h?int vb2_core_streamoff (struct vb2_queue *q, unsigned int type)h]h)}(h>int vb2_core_streamoff(struct vb2_queue *q, unsigned int type)h](j$)}(hinth]hint}(hjOhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjOhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhhjOhMubj)}(hvb2_core_streamoffh]j#)}(hvb2_core_streamoffh]hvb2_core_streamoff}(hj PhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjPubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjOhhhjOhMubj9$)}(h((struct vb2_queue *q, unsigned int type)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj%PhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj!Pubj )}(h h]h }(hj2PhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!Pubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjCPhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj@Pubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjEPmodnameN classnameNjj)}j]j$)}jx$j Psbc.vb2_core_streamoffasbuh1hhj!Pubj )}(h h]h }(hjcPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!Pubj$)}(hj$h]h*}(hjqPhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj!Pubj#)}(hj$h]hq}(hj~PhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj!Pubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjPubj?$)}(hunsigned int typeh](j$)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjPubj )}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj$)}(hinth]hint}(hjPhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjPubj )}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj#)}(htypeh]htype}(hjPhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjPubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjPubeh}(h]h ]h"]h$]h&]hhuh1j8$hjOhhhjOhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjOhhhjOhMubah}(h]jOah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjOhMhjOhhubjO)}(hhh]jT)}(hImplements VB2 stream OFF logich]hImplements VB2 stream OFF logic}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPhhubah}(h]h ]h"]h$]h&]uh1jNhjOhhhjOhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjQjtjQjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue ``unsigned int type`` type of the queue to be started. For V4L2, this is defined by :c:type:`enum v4l2_buf_type ` type. **Description** Videobuf2 core helper to implement VIDIOC_STREAMOFF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQubj)}(hhh](j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue h](j)}(h``struct vb2_queue *q``h]j)}(hj9Qh]hstruct vb2_queue *q}(hj;QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Qubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj3Qubj)}(hhh]jT)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hjRQhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj\Qh]hstruct vb2_queue}(hj^QhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjZQubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjNQhMhjRQubh with videobuf2 queue}(hjRQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjNQhMhjOQubah}(h]h ]h"]h$]h&]uh1jhj3Qubeh}(h]h ]h"]h$]h&]uh1jhjNQhMhj0Qubj)}(h``unsigned int type`` type of the queue to be started. For V4L2, this is defined by :c:type:`enum v4l2_buf_type ` type. h](j)}(h``unsigned int type``h]j)}(hjQh]hunsigned int type}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQubj)}(hhh]jT)}(hptype of the queue to be started. For V4L2, this is defined by :c:type:`enum v4l2_buf_type ` type.h](h>type of the queue to be started. For V4L2, this is defined by }(hjQhhhNhNubh)}(h,:c:type:`enum v4l2_buf_type `h]j)}(hjQh]henum v4l2_buf_type}(hjQhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQubh type.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj0Qubeh}(h]h ]h"]h$]h&]uh1jhjQubjT)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQubjT)}(hVideobuf2 core helper to implement VIDIOC_STREAMOFF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``.h](hVideobuf2 core helper to implement VIDIOC_STREAMOFF() operation. It is called internally by VB2 by an API-specific handler, like }(hj RhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Rubh.}(hj RhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQubjT)}(h **Return**h]j)}(hj-Rh]hReturn}(hj/RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Rubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQubjT)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjCRhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_expbuf (C function)c.vb2_core_expbufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hint vb2_core_expbuf (struct vb2_queue *q, int *fd, unsigned int type, struct vb2_buffer *vb, unsigned int plane, unsigned int flags)h]h)}(hint vb2_core_expbuf(struct vb2_queue *q, int *fd, unsigned int type, struct vb2_buffer *vb, unsigned int plane, unsigned int flags)h](j$)}(hinth]hint}(hjrRhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjnRhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnRhhhjRhMubj)}(hvb2_core_expbufh]j#)}(hvb2_core_expbufh]hvb2_core_expbuf}(hjRhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjRubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjnRhhhjRhMubj9$)}(hp(struct vb2_queue *q, int *fd, unsigned int type, struct vb2_buffer *vb, unsigned int plane, unsigned int flags)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjRubj )}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjRhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjRubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjRmodnameN classnameNjj)}j]j$)}jx$jRsbc.vb2_core_expbufasbuh1hhjRubj )}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj$)}(hj$h]h*}(hjRhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjRubj#)}(hj$h]hq}(hjShhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjRubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjRubj?$)}(hint *fdh](j$)}(hinth]hint}(hj ShhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjSubj )}(h h]h }(hj.ShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj$)}(hj$h]h*}(hj$hjRubj?$)}(hunsigned int typeh](j$)}(hunsignedh]hunsigned}(hjbShhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj^Subj )}(h h]h }(hjpShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^Subj$)}(hinth]hint}(hj~ShhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj^Subj )}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^Subj#)}(htypeh]htype}(hjShhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj^Subeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjRubj?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjSubj )}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hjShhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjSubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjSmodnameN classnameNjj)}j]jRc.vb2_core_expbufasbuh1hhjSubj )}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj$)}(hj$h]h*}(hjShhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjSubj#)}(hvbh]hvb}(hj ThhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjSubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjRubj?$)}(hunsigned int planeh](j$)}(hunsignedh]hunsigned}(hj#ThhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjTubj )}(h h]h }(hj1ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj$)}(hinth]hint}(hj?ThhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjTubj )}(h h]h }(hjMThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj#)}(hplaneh]hplane}(hj[ThhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjTubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjRubj?$)}(hunsigned int flagsh](j$)}(hunsignedh]hunsigned}(hjtThhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjpTubj )}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpTubj$)}(hinth]hint}(hjThhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjpTubj )}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpTubj#)}(hflagsh]hflags}(hjThhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjpTubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjRubeh}(h]h ]h"]h$]h&]hhuh1j8$hjnRhhhjRhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjjRhhhjRhMubah}(h]jeRah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjRhMhjgRhhubjO)}(hhh]jT)}(h%Export a buffer as a file descriptor.h]h%Export a buffer as a file descriptor.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jNhjgRhhhjRhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjTjtjTjujvjwuh1hhhhhhNhNubjy)}(hXS**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``int *fd`` pointer to the file descriptor associated with DMABUF (set by driver). ``unsigned int type`` buffer type. ``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. ``unsigned int plane`` index of the plane to be exported, 0 for single plane queues ``unsigned int flags`` file flags for newly created file, as defined at include/uapi/asm-generic/fcntl.h. Currently, the only used flag is ``O_CLOEXEC``. is supported, refer to manual of open syscall for more details. **Description** Videobuf2 core helper to implement VIDIOC_EXPBUF() operation. It is called internally by VB2 by an API-specific handler, like ``videobuf2-v4l2.h``. **Return** returns zero on success; an error code otherwise.h](jT)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjTubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjUh]hstruct vb2_queue *q}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjUubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj0UhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj:Uh]hstruct vb2_queue}(hj$hj|Wubah}(h]h ]h"]h$]h&]hhuh1j8$hjCWhhhjUWhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj?WhhhjUWhMubah}(h]j:Wah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjUWhMhj` with videobuf2 queue. This structure should be allocated in driver **Description** The :c:type:`vb2_queue` structure should be allocated by the driver. The driver is responsible of clearing it's content and setting initial values for some required entries before calling this function. .. note:: The following fields at **q** should be set before calling this function: :c:type:`vb2_queue->ops `, :c:type:`vb2_queue->mem_ops `, :c:type:`vb2_queue->type `.h](jT)}(h**Parameters**h]j)}(hj(Xh]h Parameters}(hj*XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Xubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj"Xubj)}(hhh]j)}(h``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. This structure should be allocated in driver h](j)}(h``struct vb2_queue *q``h]j)}(hjGXh]hstruct vb2_queue *q}(hjIXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEXubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjAXubj)}(hhh]jT)}(htpointer to :c:type:`struct vb2_queue ` with videobuf2 queue. This structure should be allocated in driverh](h pointer to }(hj`XhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjjXh]hstruct vb2_queue}(hjlXhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjhXubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj`XubhC with videobuf2 queue. This structure should be allocated in driver}(hj`XhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjXhMhj]Xubah}(h]h ]h"]h$]h&]uh1jhjAXubeh}(h]h ]h"]h$]h&]uh1jhj\XhMhj>Xubah}(h]h ]h"]h$]h&]uh1jhj"XubjT)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj"XubjT)}(hThe :c:type:`vb2_queue` structure should be allocated by the driver. The driver is responsible of clearing it's content and setting initial values for some required entries before calling this function.h](hThe }(hjXhhhNhNubh)}(h:c:type:`vb2_queue`h]j)}(hjXh]h vb2_queue}(hjXhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjXubh structure should be allocated by the driver. The driver is responsible of clearing it’s content and setting initial values for some required entries before calling this function.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjXhMhj"Xubj)}(hThe following fields at **q** should be set before calling this function: :c:type:`vb2_queue->ops `, :c:type:`vb2_queue->mem_ops `, :c:type:`vb2_queue->type `.h]jT)}(hThe following fields at **q** should be set before calling this function: :c:type:`vb2_queue->ops `, :c:type:`vb2_queue->mem_ops `, :c:type:`vb2_queue->type `.h](hThe following fields at }(hjXhhhNhNubj)}(h**q**h]hq}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh- should be set before calling this function: }(hjXhhhNhNubh)}(h$:c:type:`vb2_queue->ops `h]j)}(hjYh]hvb2_queue->ops}(hjYhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj Yubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjXubh, }(hjXhhhNhNubh)}(h(:c:type:`vb2_queue->mem_ops `h]j)}(hj2Yh]hvb2_queue->mem_ops}(hj4YhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj0Yubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj+YhMhjXubh, }hjXsbh)}(h%:c:type:`vb2_queue->type `h]j)}(hjUYh]hvb2_queue->type}(hjWYhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjSYubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj+YhMhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj+YhMhjXubah}(h]h ]h"]h$]h&]uh1jhj"Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#vb2_core_queue_release (C function)c.vb2_core_queue_releasehNtauh1hhhhhhNhNubh)}(hhh](h)}(h1void vb2_core_queue_release (struct vb2_queue *q)h]h)}(h0void vb2_core_queue_release(struct vb2_queue *q)h](j$)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjYhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhjYhMubj)}(hvb2_core_queue_releaseh]j#)}(hvb2_core_queue_releaseh]hvb2_core_queue_release}(hjYhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjYubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjYhhhjYhMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjYubj )}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjYhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjYubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjYmodnameN classnameNjj)}j]j$)}jx$jYsbc.vb2_core_queue_releaseasbuh1hhjYubj )}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj$)}(hj$h]h*}(hj+ZhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjYubj#)}(hj$h]hq}(hj8ZhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjYubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjYubah}(h]h ]h"]h$]h&]hhuh1j8$hjYhhhjYhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjYhhhjYhMubah}(h]jYah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjYhMhjYhhubjO)}(hhh]jT)}(h1stop streaming, release the queue and free memoryh]h1stop streaming, release the queue and free memory}(hjaZhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^Zhhubah}(h]h ]h"]h$]h&]uh1jNhjYhhhjYhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjyZjtjyZjujvjwuh1hhhhhhNhNubjy)}(hXC**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** This function stops streaming and performs necessary clean ups, including freeing video buffer memory. The driver is responsible for freeing the :c:type:`struct vb2_queue ` itself.h](jT)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj}Zubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjZh]hstruct vb2_queue *q}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjZubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjZhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjZh]hstruct vb2_queue}(hjZhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjZhMhjZubh with videobuf2 queue.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhj}ZubjT)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj}ZubjT)}(hThis function stops streaming and performs necessary clean ups, including freeing video buffer memory. The driver is responsible for freeing the :c:type:`struct vb2_queue ` itself.h](hThis function stops streaming and performs necessary clean ups, including freeing video buffer memory. The driver is responsible for freeing the }(hj[hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj [h]hstruct vb2_queue}(hj"[hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj[ubh itself.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj=[hMhj}Zubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_error (C function)c.vb2_queue_errorhNtauh1hhhhhhNhNubh)}(hhh](h)}(h*void vb2_queue_error (struct vb2_queue *q)h]h)}(h)void vb2_queue_error(struct vb2_queue *q)h](j$)}(hvoidh]hvoid}(hjh[hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjd[hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjw[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjd[hhhjv[hMubj)}(hvb2_queue_errorh]j#)}(hvb2_queue_errorh]hvb2_queue_error}(hj[hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj[ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjd[hhhjv[hMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj[ubj )}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj[hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj[ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj[modnameN classnameNjj)}j]j$)}jx$j[sbc.vb2_queue_errorasbuh1hhj[ubj )}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubj$)}(hj$h]h*}(hj[hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj[ubj#)}(hj$h]hq}(hj[hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj[ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj[ubah}(h]h ]h"]h$]h&]hhuh1j8$hjd[hhhjv[hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj`[hhhjv[hMubah}(h]j[[ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjv[hMhj][hhubjO)}(hhh]jT)}(h!signal a fatal error on the queueh]h!signal a fatal error on the queue}(hj'\hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$\hhubah}(h]h ]h"]h$]h&]uh1jNhj][hhhjv[hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj?\jtj?\jujvjwuh1hhhhhhNhNubjy)}(hXX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** Flag that a fatal unrecoverable error has occurred and wake up all processes waiting on the queue. Polling will now set ``EPOLLERR`` and queuing and dequeuing buffers will return ``-EIO``. The error flag will be cleared when canceling the queue, either from vb2_streamoff() or vb2_queue_release(). Drivers should thus not call this function before starting the stream, otherwise the error flag will remain set until the queue is released when closing the device node.h](jT)}(h**Parameters**h]j)}(hjI\h]h Parameters}(hjK\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG\ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjC\ubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh\h]hstruct vb2_queue *q}(hjj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf\ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjb\ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj\hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj\h]hstruct vb2_queue}(hj\hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj}\hMhj\ubh with videobuf2 queue.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj}\hMhj~\ubah}(h]h ]h"]h$]h&]uh1jhjb\ubeh}(h]h ]h"]h$]h&]uh1jhj}\hMhj_\ubah}(h]h ]h"]h$]h&]uh1jhjC\ubjT)}(h**Description**h]j)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjC\ubjT)}(hFlag that a fatal unrecoverable error has occurred and wake up all processes waiting on the queue. Polling will now set ``EPOLLERR`` and queuing and dequeuing buffers will return ``-EIO``.h](hxFlag that a fatal unrecoverable error has occurred and wake up all processes waiting on the queue. Polling will now set }(hj\hhhNhNubj)}(h ``EPOLLERR``h]hEPOLLERR}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh/ and queuing and dequeuing buffers will return }(hj\hhhNhNubj)}(h``-EIO``h]h-EIO}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjC\ubjT)}(hXThe error flag will be cleared when canceling the queue, either from vb2_streamoff() or vb2_queue_release(). Drivers should thus not call this function before starting the stream, otherwise the error flag will remain set until the queue is released when closing the device node.h]hXThe error flag will be cleared when canceling the queue, either from vb2_streamoff() or vb2_queue_release(). Drivers should thus not call this function before starting the stream, otherwise the error flag will remain set until the queue is released when closing the device node.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjC\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_mmap (C function) c.vb2_mmaphNtauh1hhhhhhNhNubh)}(hhh](h)}(h>int vb2_mmap (struct vb2_queue *q, struct vm_area_struct *vma)h]h)}(h=int vb2_mmap(struct vb2_queue *q, struct vm_area_struct *vma)h](j$)}(hinth]hint}(hj>]hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj:]hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjM]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:]hhhjL]hMubj)}(hvb2_mmaph]j#)}(hvb2_mmaph]hvb2_mmap}(hj_]hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj[]ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj:]hhhjL]hMubj9$)}(h1(struct vb2_queue *q, struct vm_area_struct *vma)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj{]hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjw]ubj )}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjw]ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj]hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj]ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj]modnameN classnameNjj)}j]j$)}jx$ja]sb c.vb2_mmapasbuh1hhjw]ubj )}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjw]ubj$)}(hj$h]h*}(hj]hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjw]ubj#)}(hj$h]hq}(hj]hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjw]ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjs]ubj?$)}(hstruct vm_area_struct *vmah](h)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj]ubj )}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubh)}(hhh]j#)}(hvm_area_structh]hvm_area_struct}(hj ^hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj^ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj ^modnameN classnameNjj)}j]j] c.vb2_mmapasbuh1hhj]ubj )}(h h]h }(hj(^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubj$)}(hj$h]h*}(hj6^hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj]ubj#)}(hvmah]hvma}(hjC^hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj]ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjs]ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj:]hhhjL]hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj6]hhhjL]hMubah}(h]j1]ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjL]hMhj3]hhubjO)}(hhh]jT)}(h1map video buffers into application address space.h]h1map video buffers into application address space.}(hjm^hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hjj^hhubah}(h]h ]h"]h$]h&]uh1jNhj3]hhhjL]hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj^jtj^jujvjwuh1hhhhhhNhNubjy)}(hX2**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct vm_area_struct *vma`` pointer to :c:type:`struct vm_area_struct ` with the vma passed to the mmap file operation handler in the driver. **Description** Should be called from mmap file operation handler of a driver. This function maps one plane of one of the available video buffers to userspace. To map whole video memory allocated on reqbufs, this function has to be called once per each plane per each buffer previously allocated. When the userspace application calls mmap, it passes to it an offset returned to it earlier by the means of :c:type:`v4l2_ioctl_ops->vidioc_querybuf ` handler. That offset acts as a "cookie", which is then used to identify the plane to be mapped. This function finds a plane with a matching offset and a mapping is performed by the means of a provided memory operation. The return values from this function are intended to be directly returned from the mmap handler in driver.h](jT)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^ubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj^h]hstruct vb2_queue *q}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj^ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj^hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj^h]hstruct vb2_queue}(hj^hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj^hM hj^ubh with videobuf2 queue.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hj^ubj)}(h``struct vm_area_struct *vma`` pointer to :c:type:`struct vm_area_struct ` with the vma passed to the mmap file operation handler in the driver. h](j)}(h``struct vm_area_struct *vma``h]j)}(hj _h]hstruct vm_area_struct *vma}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj_ubj)}(hhh]jT)}(hpointer to :c:type:`struct vm_area_struct ` with the vma passed to the mmap file operation handler in the driver.h](h pointer to }(hj#_hhhNhNubh)}(h0:c:type:`struct vm_area_struct `h]j)}(hj-_h]hstruct vm_area_struct}(hj/_hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj+_ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvm_area_structuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj#_ubhF with the vma passed to the mmap file operation handler in the driver.}(hj#_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjJ_hM hj _ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubjT)}(h**Description**h]j)}(hji_h]h Description}(hjk_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg_ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^ubjT)}(hXShould be called from mmap file operation handler of a driver. This function maps one plane of one of the available video buffers to userspace. To map whole video memory allocated on reqbufs, this function has to be called once per each plane per each buffer previously allocated.h]hXShould be called from mmap file operation handler of a driver. This function maps one plane of one of the available video buffers to userspace. To map whole video memory allocated on reqbufs, this function has to be called once per each plane per each buffer previously allocated.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^ubjT)}(hXWhen the userspace application calls mmap, it passes to it an offset returned to it earlier by the means of :c:type:`v4l2_ioctl_ops->vidioc_querybuf ` handler. That offset acts as a "cookie", which is then used to identify the plane to be mapped.h](hlWhen the userspace application calls mmap, it passes to it an offset returned to it earlier by the means of }(hj_hhhNhNubh)}(h::c:type:`v4l2_ioctl_ops->vidioc_querybuf `h]j)}(hj_h]hv4l2_ioctl_ops->vidioc_querybuf}(hj_hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj_ubhd handler. That offset acts as a “cookie”, which is then used to identify the plane to be mapped.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj_hMhj^ubjT)}(hzThis function finds a plane with a matching offset and a mapping is performed by the means of a provided memory operation.h]hzThis function finds a plane with a matching offset and a mapping is performed by the means of a provided memory operation.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^ubjT)}(hjThe return values from this function are intended to be directly returned from the mmap handler in driver.h]hjThe return values from this function are intended to be directly returned from the mmap handler in driver.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_get_unmapped_area (C function)c.vb2_get_unmapped_areahNtauh1hhhhhhNhNubh)}(hhh](h)}(hunsigned long vb2_get_unmapped_area (struct vb2_queue *q, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h]h)}(hunsigned long vb2_get_unmapped_area(struct vb2_queue *q, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j$)}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj_hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM1ubj )}(h h]h }(hj `hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhj `hM1ubj$)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj_hhhj `hM1ubj )}(h h]h }(hj)`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhj `hM1ubj)}(hvb2_get_unmapped_areah]j#)}(hvb2_get_unmapped_areah]hvb2_get_unmapped_area}(hj;`hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj7`ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj_hhhj `hM1ubj9$)}(hf(struct vb2_queue *q, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjW`hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjS`ubj )}(h h]h }(hjd`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjS`ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hju`hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjr`ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjw`modnameN classnameNjj)}j]j$)}jx$j=`sbc.vb2_get_unmapped_areaasbuh1hhjS`ubj )}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjS`ubj$)}(hj$h]h*}(hj`hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjS`ubj#)}(hj$h]hq}(hj`hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjS`ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjO`ubj?$)}(hunsigned long addrh](j$)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj`ubj )}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj$)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj`ubj )}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj#)}(haddrh]haddr}(hjahhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj`ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjO`ubj?$)}(hunsigned long lenh](j$)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjaubj )}(h h]h }(hj'ahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj$)}(hlongh]hlong}(hj5ahhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjaubj )}(h h]h }(hjCahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj#)}(hlenh]hlen}(hjQahhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjaubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjO`ubj?$)}(hunsigned long pgoffh](j$)}(hunsignedh]hunsigned}(hjjahhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjfaubj )}(h h]h }(hjxahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfaubj$)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjfaubj )}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfaubj#)}(hpgoffh]hpgoff}(hjahhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjfaubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjO`ubj?$)}(hunsigned long flagsh](j$)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjaubj )}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj$)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjaubj )}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj#)}(hflagsh]hflags}(hjahhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjaubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjO`ubeh}(h]h ]h"]h$]h&]hhuh1j8$hj_hhhj `hM1ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj_hhhj `hM1ubah}(h]j_ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj `hM1hj_hhubjO)}(hhh]jT)}(h1map video buffers into application address space.h]h1map video buffers into application address space.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM#hjbhhubah}(h]h ]h"]h$]h&]uh1jNhj_hhhj `hM1ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj5bjtj5bjujvjwuh1hhhhhhNhNubjy)}(hXs**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``unsigned long addr`` memory address. ``unsigned long len`` buffer size. ``unsigned long pgoff`` page offset. ``unsigned long flags`` memory flags. **Description** This function is used in noMMU platforms to propose address mapping for a given buffer. It's intended to be used as a handler for the :c:type:`file_operations->get_unmapped_area ` operation. This is called by the mmap() syscall routines will call this to get a proposed address for the mapping, when ``!CONFIG_MMU``.h](jT)}(h**Parameters**h]j)}(hj?bh]h Parameters}(hjAbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=bubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM'hj9bubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj^bh]hstruct vb2_queue *q}(hj`bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\bubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM$hjXbubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjwbhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjbh]hstruct vb2_queue}(hjbhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjsbhM$hjwbubh with videobuf2 queue.}(hjwbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjsbhM$hjtbubah}(h]h ]h"]h$]h&]uh1jhjXbubeh}(h]h ]h"]h$]h&]uh1jhjsbhM$hjUbubj)}(h'``unsigned long addr`` memory address. h](j)}(h``unsigned long addr``h]j)}(hjbh]hunsigned long addr}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM%hjbubj)}(hhh]jT)}(hmemory address.h]hmemory address.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjbhM%hjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhM%hjUbubj)}(h#``unsigned long len`` buffer size. h](j)}(h``unsigned long len``h]j)}(hjbh]hunsigned long len}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM&hjbubj)}(hhh]jT)}(h buffer size.h]h buffer size.}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1jShjchM&hj cubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjchM&hjUbubj)}(h%``unsigned long pgoff`` page offset. h](j)}(h``unsigned long pgoff``h]j)}(hj,ch]hunsigned long pgoff}(hj.chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*cubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM'hj&cubj)}(hhh]jT)}(h page offset.h]h page offset.}(hjEchhhNhNubah}(h]h ]h"]h$]h&]uh1jShjAchM'hjBcubah}(h]h ]h"]h$]h&]uh1jhj&cubeh}(h]h ]h"]h$]h&]uh1jhjAchM'hjUbubj)}(h&``unsigned long flags`` memory flags. h](j)}(h``unsigned long flags``h]j)}(hjech]hunsigned long flags}(hjgchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjccubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM(hj_cubj)}(hhh]jT)}(h memory flags.h]h memory flags.}(hj~chhhNhNubah}(h]h ]h"]h$]h&]uh1jShjzchM(hj{cubah}(h]h ]h"]h$]h&]uh1jhj_cubeh}(h]h ]h"]h$]h&]uh1jhjzchM(hjUbubeh}(h]h ]h"]h$]h&]uh1jhj9bubjT)}(h**Description**h]j)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM*hj9bubjT)}(hThis function is used in noMMU platforms to propose address mapping for a given buffer. It's intended to be used as a handler for the :c:type:`file_operations->get_unmapped_area ` operation.h](hThis function is used in noMMU platforms to propose address mapping for a given buffer. It’s intended to be used as a handler for the }(hjchhhNhNubh)}(h>:c:type:`file_operations->get_unmapped_area `h]j)}(hjch]h"file_operations->get_unmapped_area}(hjchhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjfile_operationsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM*hjcubh operation.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjchM*hj9bubjT)}(h}This is called by the mmap() syscall routines will call this to get a proposed address for the mapping, when ``!CONFIG_MMU``.h](hmThis is called by the mmap() syscall routines will call this to get a proposed address for the mapping, when }(hjchhhNhNubj)}(h``!CONFIG_MMU``h]h !CONFIG_MMU}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM.hj9bubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_poll (C function)c.vb2_core_pollhNtauh1hhhhhhNhNubh)}(hhh](h)}(hQ__poll_t vb2_core_poll (struct vb2_queue *q, struct file *file, poll_table *wait)h]h)}(hP__poll_t vb2_core_poll(struct vb2_queue *q, struct file *file, poll_table *wait)h](h)}(hhh]j#)}(h__poll_th]h__poll_t}(hj,dhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj)dubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj.dmodnameN classnameNjj)}j]j$)}jx$ vb2_core_pollsbc.vb2_core_pollasbuh1hhj%dhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMJubj )}(h h]h }(hjNdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%dhhhjMdhMJubj)}(h vb2_core_pollh]j#)}(hjJdh]h vb2_core_poll}(hj`dhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj\dubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj%dhhhjMdhMJubj9$)}(h:(struct vb2_queue *q, struct file *file, poll_table *wait)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj{dhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjwdubj )}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwdubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjdhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjdubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjdmodnameN classnameNjj)}j]jHdc.vb2_core_pollasbuh1hhjwdubj )}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwdubj$)}(hj$h]h*}(hjdhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjwdubj#)}(hj$h]hq}(hjdhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjwdubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjsdubj?$)}(hstruct file *fileh](h)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjdubj )}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubh)}(hhh]j#)}(hfileh]hfile}(hjehhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjeubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj emodnameN classnameNjj)}j]jHdc.vb2_core_pollasbuh1hhjdubj )}(h h]h }(hj&ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj$)}(hj$h]h*}(hj4ehhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjdubj#)}(hfileh]hfile}(hjAehhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjdubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjsdubj?$)}(hpoll_table *waith](h)}(hhh]j#)}(h poll_tableh]h poll_table}(hj]ehhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjZeubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj_emodnameN classnameNjj)}j]jHdc.vb2_core_pollasbuh1hhjVeubj )}(h h]h }(hj{ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVeubj$)}(hj$h]h*}(hjehhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjVeubj#)}(hwaith]hwait}(hjehhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjVeubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjsdubeh}(h]h ]h"]h$]h&]hhuh1j8$hj%dhhhjMdhMJubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj!dhhhjMdhMJubah}(h]jdah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjMdhMJhjdhhubjO)}(hhh]jT)}(h implements poll syscall() logic.h]h implements poll syscall() logic.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM9hjehhubah}(h]h ]h"]h$]h&]uh1jNhjdhhhjMdhMJubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjejtjejujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct file *file`` :c:type:`struct file ` argument passed to the poll file operation handler. ``poll_table *wait`` :c:type:`poll_table` wait argument passed to the poll file operation handler. **Description** This function implements poll file operation handler for a driver. For CAPTURE queues, if a buffer is ready to be dequeued, the userspace will be informed that the file descriptor of a video device is available for reading. For OUTPUT queues, if a buffer is ready to be dequeued, the file descriptor will be reported as available for writing. The return values from this function are intended to be directly returned from poll handler in driver.h](jT)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM=hjeubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjfh]hstruct vb2_queue *q}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM:hjeubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjfhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj$fh]hstruct vb2_queue}(hj&fhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj"fubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjfhM:hjfubh with videobuf2 queue.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjfhM:hjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjfhM:hjeubj)}(hg``struct file *file`` :c:type:`struct file ` argument passed to the poll file operation handler. h](j)}(h``struct file *file``h]j)}(hj]fh]hstruct file *file}(hj_fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[fubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM<hjWfubj)}(hhh]jT)}(hP:c:type:`struct file ` argument passed to the poll file operation handler.h](h)}(h:c:type:`struct file `h]j)}(hj|fh]h struct file}(hj~fhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjzfubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjfileuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM;hjvfubh4 argument passed to the poll file operation handler.}(hjvfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjfhM;hjsfubah}(h]h ]h"]h$]h&]uh1jhjWfubeh}(h]h ]h"]h$]h&]uh1jhjrfhM<hjeubj)}(hc``poll_table *wait`` :c:type:`poll_table` wait argument passed to the poll file operation handler. h](j)}(h``poll_table *wait``h]j)}(hjfh]hpoll_table *wait}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM>hjfubj)}(hhh]jT)}(hM:c:type:`poll_table` wait argument passed to the poll file operation handler.h](h)}(h:c:type:`poll_table`h]j)}(hjfh]h poll_table}(hjfhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj poll_tableuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM=hjfubh9 wait argument passed to the poll file operation handler.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjfhM=hjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhM>hjeubeh}(h]h ]h"]h$]h&]uh1jhjeubjT)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM@hjeubjT)}(hXVThis function implements poll file operation handler for a driver. For CAPTURE queues, if a buffer is ready to be dequeued, the userspace will be informed that the file descriptor of a video device is available for reading. For OUTPUT queues, if a buffer is ready to be dequeued, the file descriptor will be reported as available for writing.h]hXVThis function implements poll file operation handler for a driver. For CAPTURE queues, if a buffer is ready to be dequeued, the userspace will be informed that the file descriptor of a video device is available for reading. For OUTPUT queues, if a buffer is ready to be dequeued, the file descriptor will be reported as available for writing.}(hj'ghhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM@hjeubjT)}(hfThe return values from this function are intended to be directly returned from poll handler in driver.h]hfThe return values from this function are intended to be directly returned from poll handler in driver.}(hj6ghhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMGhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_read (C function) c.vb2_readhNtauh1hhhhhhNhNubh)}(hhh](h)}(hbsize_t vb2_read (struct vb2_queue *q, char __user *data, size_t count, loff_t *ppos, int nonblock)h]h)}(hasize_t vb2_read(struct vb2_queue *q, char __user *data, size_t count, loff_t *ppos, int nonblock)h](h)}(hhh]j#)}(hsize_th]hsize_t}(hjhghhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjegubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjjgmodnameN classnameNjj)}j]j$)}jx$vb2_readsb c.vb2_readasbuh1hhjaghhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMUubj )}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaghhhjghMUubj)}(hvb2_readh]j#)}(hjgh]hvb2_read}(hjghhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjgubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjaghhhjghMUubj9$)}(hR(struct vb2_queue *q, char __user *data, size_t count, loff_t *ppos, int nonblock)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjgubj )}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjghhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjgubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjgmodnameN classnameNjj)}j]jg c.vb2_readasbuh1hhjgubj )}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj$)}(hj$h]h*}(hjhhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjgubj#)}(hj$h]hq}(hjhhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjgubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjgubj?$)}(hchar __user *datah](j$)}(hcharh]hchar}(hj&hhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj"hubj )}(h h]h }(hj4hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"hubh__user}(hj"hhhhNhNubj )}(h h]h }(hjFhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"hubj$)}(hj$h]h*}(hjThhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj"hubj#)}(hdatah]hdata}(hjahhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj"hubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjgubj?$)}(h size_t counth](h)}(hhh]j#)}(hsize_th]hsize_t}(hj}hhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjzhubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjhmodnameN classnameNjj)}j]jg c.vb2_readasbuh1hhjvhubj )}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhubj#)}(hcounth]hcount}(hjhhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjvhubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjgubj?$)}(h loff_t *pposh](h)}(hhh]j#)}(hloff_th]hloff_t}(hjhhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjhubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjhmodnameN classnameNjj)}j]jg c.vb2_readasbuh1hhjhubj )}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhubj$)}(hj$h]h*}(hjhhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjhubj#)}(hpposh]hppos}(hjhhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjhubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjgubj?$)}(h int nonblockh](j$)}(hinth]hint}(hjihhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjiubj )}(h h]h }(hj%ihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj#)}(hnonblockh]hnonblock}(hj3ihhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjiubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjgubeh}(h]h ]h"]h$]h&]hhuh1j8$hjaghhhjghMUubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj]ghhhjghMUubah}(h]jXgah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjghMUhjZghhubjO)}(hhh]jT)}(h implements read() syscall logic.h]h implements read() syscall logic.}(hj]ihhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhjZihhubah}(h]h ]h"]h$]h&]uh1jNhjZghhhjghMUubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjuijtjuijujvjwuh1hhhhhhNhNubjy)}(hXc**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``char __user *data`` pointed to target userspace buffer ``size_t count`` number of bytes to read ``loff_t *ppos`` file handle position tracking pointer ``int nonblock`` mode selector (1 means blocking calls, 0 means nonblocking)h](jT)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}iubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMRhjyiubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjih]hstruct vb2_queue *q}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMOhjiubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjihhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjih]hstruct vb2_queue}(hjihhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjihMOhjiubh with videobuf2 queue.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjihMOhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMOhjiubj)}(h9``char __user *data`` pointed to target userspace buffer h](j)}(h``char __user *data``h]j)}(hjih]hchar __user *data}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMPhjiubj)}(hhh]jT)}(h"pointed to target userspace bufferh]h"pointed to target userspace buffer}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjjhMPhjjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjjhMPhjiubj)}(h)``size_t count`` number of bytes to read h](j)}(h``size_t count``h]j)}(hj3jh]h size_t count}(hj5jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1jubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMQhj-jubj)}(hhh]jT)}(hnumber of bytes to readh]hnumber of bytes to read}(hjLjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjHjhMQhjIjubah}(h]h ]h"]h$]h&]uh1jhj-jubeh}(h]h ]h"]h$]h&]uh1jhjHjhMQhjiubj)}(h7``loff_t *ppos`` file handle position tracking pointer h](j)}(h``loff_t *ppos``h]j)}(hjljh]h loff_t *ppos}(hjnjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMRhjfjubj)}(hhh]jT)}(h%file handle position tracking pointerh]h%file handle position tracking pointer}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjjhMRhjjubah}(h]h ]h"]h$]h&]uh1jhjfjubeh}(h]h ]h"]h$]h&]uh1jhjjhMRhjiubj)}(hL``int nonblock`` mode selector (1 means blocking calls, 0 means nonblocking)h](j)}(h``int nonblock``h]j)}(hjjh]h int nonblock}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMThjjubj)}(hhh]jT)}(h;mode selector (1 means blocking calls, 0 means nonblocking)h]h;mode selector (1 means blocking calls, 0 means nonblocking)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMShjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMThjiubeh}(h]h ]h"]h$]h&]uh1jhjyiubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_write (C function) c.vb2_writehNtauh1hhhhhhNhNubh)}(hhh](h)}(hisize_t vb2_write (struct vb2_queue *q, const char __user *data, size_t count, loff_t *ppos, int nonblock)h]h)}(hhsize_t vb2_write(struct vb2_queue *q, const char __user *data, size_t count, loff_t *ppos, int nonblock)h](h)}(hhh]j#)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjkmodnameN classnameNjj)}j]j$)}jx$ vb2_writesb c.vb2_writeasbuh1hhjjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM_ubj )}(h h]h }(hj$khhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhj#khM_ubj)}(h vb2_writeh]j#)}(hj kh]h vb2_write}(hj6khhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj2kubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjjhhhj#khM_ubj9$)}(hX(struct vb2_queue *q, const char __user *data, size_t count, loff_t *ppos, int nonblock)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjQkhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjMkubj )}(h h]h }(hj^khhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMkubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjokhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjlkubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjqkmodnameN classnameNjj)}j]jk c.vb2_writeasbuh1hhjMkubj )}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMkubj$)}(hj$h]h*}(hjkhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjMkubj#)}(hj$h]hq}(hjkhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjMkubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIkubj?$)}(hconst char __user *datah](h)}(hj:h]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjkubj )}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj$)}(hcharh]hchar}(hjkhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjkubj )}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubh__user}(hjkhhhNhNubj )}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj$)}(hj$h]h*}(hj lhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjkubj#)}(hdatah]hdata}(hjlhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjkubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIkubj?$)}(h size_t counth](h)}(hhh]j#)}(hsize_th]hsize_t}(hj2lhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj/lubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj4lmodnameN classnameNjj)}j]jk c.vb2_writeasbuh1hhj+lubj )}(h h]h }(hjPlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+lubj#)}(hcounth]hcount}(hj^lhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj+lubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIkubj?$)}(h loff_t *pposh](h)}(hhh]j#)}(hloff_th]hloff_t}(hjzlhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjwlubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj|lmodnameN classnameNjj)}j]jk c.vb2_writeasbuh1hhjslubj )}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjslubj$)}(hj$h]h*}(hjlhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjslubj#)}(hpposh]hppos}(hjlhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjslubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIkubj?$)}(h int nonblockh](j$)}(hinth]hint}(hjlhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjlubj )}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj#)}(hnonblockh]hnonblock}(hjlhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjlubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjIkubeh}(h]h ]h"]h$]h&]hhuh1j8$hjjhhhj#khM_ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjjhhhj#khM_ubah}(h]jjah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj#khM_hjjhhubjO)}(hhh]jT)}(h!implements write() syscall logic.h]h!implements write() syscall logic.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMXhjmhhubah}(h]h ]h"]h$]h&]uh1jNhjjhhhj#khM_ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj*mjtj*mjujvjwuh1hhhhhhNhNubjy)}(hXj**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``const char __user *data`` pointed to target userspace buffer ``size_t count`` number of bytes to write ``loff_t *ppos`` file handle position tracking pointer ``int nonblock`` mode selector (1 means blocking calls, 0 means nonblocking)h](jT)}(h**Parameters**h]j)}(hj4mh]h Parameters}(hj6mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2mubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM\hj.mubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjSmh]hstruct vb2_queue *q}(hjUmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQmubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMYhjMmubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjlmhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjvmh]hstruct vb2_queue}(hjxmhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjtmubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhmhMYhjlmubh with videobuf2 queue.}(hjlmhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhmhMYhjimubah}(h]h ]h"]h$]h&]uh1jhjMmubeh}(h]h ]h"]h$]h&]uh1jhjhmhMYhjJmubj)}(h?``const char __user *data`` pointed to target userspace buffer h](j)}(h``const char __user *data``h]j)}(hjmh]hconst char __user *data}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMZhjmubj)}(hhh]jT)}(h"pointed to target userspace bufferh]h"pointed to target userspace buffer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjmhMZhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMZhjJmubj)}(h*``size_t count`` number of bytes to write h](j)}(h``size_t count``h]j)}(hjmh]h size_t count}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM[hjmubj)}(hhh]jT)}(hnumber of bytes to writeh]hnumber of bytes to write}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjmhM[hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhM[hjJmubj)}(h7``loff_t *ppos`` file handle position tracking pointer h](j)}(h``loff_t *ppos``h]j)}(hj!nh]h loff_t *ppos}(hj#nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM\hjnubj)}(hhh]jT)}(h%file handle position tracking pointerh]h%file handle position tracking pointer}(hj:nhhhNhNubah}(h]h ]h"]h$]h&]uh1jShj6nhM\hj7nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj6nhM\hjJmubj)}(hL``int nonblock`` mode selector (1 means blocking calls, 0 means nonblocking)h](j)}(h``int nonblock``h]j)}(hjZnh]h int nonblock}(hj\nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXnubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM^hjTnubj)}(hhh]jT)}(h;mode selector (1 means blocking calls, 0 means nonblocking)h]h;mode selector (1 means blocking calls, 0 means nonblocking)}(hjsnhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM]hjpnubah}(h]h ]h"]h$]h&]uh1jhjTnubeh}(h]h ]h"]h$]h&]uh1jhjonhM^hjJmubeh}(h]h ]h"]h$]h&]uh1jhj.mubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_thread_fnc (C macro)c.vb2_thread_fnchNtauh1hhhhhhNhNubh)}(hhh](h)}(hvb2_thread_fnch]h)}(hvb2_thread_fnch]j)}(hvb2_thread_fnch]j#)}(hjnh]hvb2_thread_fnc}(hjnhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjnubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjnhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM`ubah}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjnhhhjnhM`ubah}(h]jnah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjnhM`hjnhhubjO)}(hhh]jT)}(h7**Typedef**: callback function for use with vb2_thread.h](j)}(h **Typedef**h]hTypedef}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh,: callback function for use with vb2_thread.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMchjnhhubah}(h]h ]h"]h$]h&]uh1jNhjnhhhjnhM`ubeh}(h]h ](jmmacroeh"]h$]h&]jrjmjsjojtjojujvjwuh1hhhhhhNhNubjT)}(h **Syntax**h]j)}(hjoh]hSyntax}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMfhhhhubh block_quote)}(h;``int vb2_thread_fnc (struct vb2_buffer *vb, void *priv)`` h]jT)}(h:``int vb2_thread_fnc (struct vb2_buffer *vb, void *priv)``h]j)}(hj%oh]h6int vb2_thread_fnc (struct vb2_buffer *vb, void *priv)}(hj'ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#oubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhhjoubah}(h]h ]h"]h$]h&]uh1johj:ohMhhhhhubjy)}(h**Parameters** ``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. ``void *priv`` pointer to a private data. **Description** This is called whenever a buffer is dequeued in the thread.h](jT)}(h**Parameters**h]j)}(hjGoh]h Parameters}(hjIohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEoubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMlhjAoubj)}(hhh](j)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hjfoh]hstruct vb2_buffer *vb}(hjhohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdoubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMehj`oubj)}(hhh]jT)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hjohhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjoh]h vb2_buffer}(hjohhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj{ohMehjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj{ohMehj|oubah}(h]h ]h"]h$]h&]uh1jhj`oubeh}(h]h ]h"]h$]h&]uh1jhj{ohMehj]oubj)}(h*``void *priv`` pointer to a private data. h](j)}(h``void *priv``h]j)}(hjoh]h void *priv}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMfhjoubj)}(hhh]jT)}(hpointer to a private data.h]hpointer to a private data.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jShjohMfhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMfhj]oubeh}(h]h ]h"]h$]h&]uh1jhjAoubjT)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhhjAoubjT)}(h;This is called whenever a buffer is dequeued in the thread.h]h;This is called whenever a buffer is dequeued in the thread.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhhjAoubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_thread_start (C function)c.vb2_thread_starthNtauh1hhhhhhNhNubh)}(hhh](h)}(hcint vb2_thread_start (struct vb2_queue *q, vb2_thread_fnc fnc, void *priv, const char *thread_name)h]h)}(hbint vb2_thread_start(struct vb2_queue *q, vb2_thread_fnc fnc, void *priv, const char *thread_name)h](j$)}(hinth]hint}(hjBphhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj>phhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM|ubj )}(h h]h }(hjQphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>phhhjPphM|ubj)}(hvb2_thread_starth]j#)}(hvb2_thread_starth]hvb2_thread_start}(hjcphhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj_pubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj>phhhjPphM|ubj9$)}(hN(struct vb2_queue *q, vb2_thread_fnc fnc, void *priv, const char *thread_name)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj{pubj )}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{pubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjphhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjpubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjpmodnameN classnameNjj)}j]j$)}jx$jepsbc.vb2_thread_startasbuh1hhj{pubj )}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{pubj$)}(hj$h]h*}(hjphhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj{pubj#)}(hj$h]hq}(hjphhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj{pubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjwpubj?$)}(hvb2_thread_fnc fnch](h)}(hhh]j#)}(hvb2_thread_fnch]hvb2_thread_fnc}(hjphhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjpubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjpmodnameN classnameNjj)}j]jpc.vb2_thread_startasbuh1hhjpubj )}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj#)}(hfnch]hfnc}(hjqhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjpubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjwpubj?$)}(h void *privh](j$)}(hvoidh]hvoid}(hj8qhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj4qubj )}(h h]h }(hjFqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4qubj$)}(hj$h]h*}(hjTqhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj4qubj#)}(hprivh]hpriv}(hjaqhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj4qubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjwpubj?$)}(hconst char *thread_nameh](h)}(hj:h]hconst}(hjzqhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjvqubj )}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvqubj$)}(hcharh]hchar}(hjqhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjvqubj )}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvqubj$)}(hj$h]h*}(hjqhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjvqubj#)}(h thread_nameh]h thread_name}(hjqhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjvqubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjwpubeh}(h]h ]h"]h$]h&]hhuh1j8$hj>phhhjPphM|ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj:phhhjPphM|ubah}(h]j5pah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjPphM|hj7phhubjO)}(hhh]jT)}(h#start a thread for the given queue.h]h#start a thread for the given queue.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMmhjqhhubah}(h]h ]h"]h$]h&]uh1jNhj7phhhjPphM|ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjrjtjrjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``vb2_thread_fnc fnc`` :c:type:`vb2_thread_fnc` callback function. ``void *priv`` priv pointer passed to the callback function. ``const char *thread_name`` the name of the thread. This will be prefixed with "vb2-". **Description** This starts a thread that will queue and dequeue until an error occurs or vb2_thread_stop() is called. .. attention:: This function should not be used for anything else but the videobuf2-dvb support. If you think you have another good use-case for this, then please contact the linux-media mailing list first.h](jT)}(h**Parameters**h]j)}(hj rh]h Parameters}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMqhjrubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj)rh]hstruct vb2_queue *q}(hj+rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'rubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMnhj#rubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjBrhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjLrh]hstruct vb2_queue}(hjNrhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjJrubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj>rhMnhjBrubh with videobuf2 queue.}(hjBrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj>rhMnhj?rubah}(h]h ]h"]h$]h&]uh1jhj#rubeh}(h]h ]h"]h$]h&]uh1jhj>rhMnhj rubj)}(hC``vb2_thread_fnc fnc`` :c:type:`vb2_thread_fnc` callback function. h](j)}(h``vb2_thread_fnc fnc``h]j)}(hjrh]hvb2_thread_fnc fnc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMohjrubj)}(hhh]jT)}(h+:c:type:`vb2_thread_fnc` callback function.h](h)}(h:c:type:`vb2_thread_fnc`h]j)}(hjrh]hvb2_thread_fnc}(hjrhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_thread_fncuh1hhjrhMohjrubh callback function.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjrhMohjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMohj rubj)}(h=``void *priv`` priv pointer passed to the callback function. h](j)}(h``void *priv``h]j)}(hjrh]h void *priv}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMphjrubj)}(hhh]jT)}(h-priv pointer passed to the callback function.h]h-priv pointer passed to the callback function.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjrhMphjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMphj rubj)}(hW``const char *thread_name`` the name of the thread. This will be prefixed with "vb2-". h](j)}(h``const char *thread_name``h]j)}(hjsh]hconst char *thread_name}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMqhjsubj)}(hhh]jT)}(h:the name of the thread. This will be prefixed with "vb2-".h]h>the name of the thread. This will be prefixed with “vb2-“.}(hj/shhhNhNubah}(h]h ]h"]h$]h&]uh1jShj+shMqhj,subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj+shMqhj rubeh}(h]h ]h"]h$]h&]uh1jhjrubjT)}(h**Description**h]j)}(hjQsh]h Description}(hjSshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOsubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMshjrubjT)}(hfThis starts a thread that will queue and dequeue until an error occurs or vb2_thread_stop() is called.h]hfThis starts a thread that will queue and dequeue until an error occurs or vb2_thread_stop() is called.}(hjgshhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMshjrubh attention)}(hThis function should not be used for anything else but the videobuf2-dvb support. If you think you have another good use-case for this, then please contact the linux-media mailing list first.h]jT)}(hThis function should not be used for anything else but the videobuf2-dvb support. If you think you have another good use-case for this, then please contact the linux-media mailing list first.h]hThis function should not be used for anything else but the videobuf2-dvb support. If you think you have another good use-case for this, then please contact the linux-media mailing list first.}(hj|shhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMxhjxsubah}(h]h ]h"]h$]h&]uh1jvshjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_thread_stop (C function)c.vb2_thread_stophNtauh1hhhhhhNhNubh)}(hhh](h)}(h)int vb2_thread_stop (struct vb2_queue *q)h]h)}(h(int vb2_thread_stop(struct vb2_queue *q)h](j$)}(hinth]hint}(hjshhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjshhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhjshMubj)}(hvb2_thread_stoph]j#)}(hvb2_thread_stoph]hvb2_thread_stop}(hjshhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjsubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjshhhjshMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjsubj )}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj thhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj tubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjtmodnameN classnameNjj)}j]j$)}jx$jssbc.vb2_thread_stopasbuh1hhjsubj )}(h h]h }(hj,thhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj$)}(hj$h]h*}(hj:thhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjsubj#)}(hj$h]hq}(hjGthhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjsubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjsubah}(h]h ]h"]h$]h&]hhuh1j8$hjshhhjshMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjshhhjshMubah}(h]jsah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjshMhjshhubjO)}(hhh]jT)}(h$stop the thread for the given queue.h]h$stop the thread for the given queue.}(hjpthhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjmthhubah}(h]h ]h"]h$]h&]uh1jNhjshhhjshMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjtjtjtjujvjwuh1hhhhhhNhNubjy)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jT)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjtubj)}(hhh]j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](j)}(h``struct vb2_queue *q``h]j)}(hjth]hstruct vb2_queue *q}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjtubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjthhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjth]hstruct vb2_queue}(hjthhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjtubh with videobuf2 queue.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_is_streaming (C function)c.vb2_is_streaminghNtauh1hhhhhhNhNubh)}(hhh](h)}(h+bool vb2_is_streaming (struct vb2_queue *q)h]h)}(h*bool vb2_is_streaming(struct vb2_queue *q)h](j$)}(hj$h]hbool}(hj.uhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj*uhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj$hjbuubah}(h]h ]h"]h$]h&]hhuh1j8$hj*uhhhj;uhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj&uhhhj;uhMubah}(h]j!uah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj;uhMhj#uhhubjO)}(hhh]jT)}(h%return streaming status of the queue.h]h%return streaming status of the queue.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjuhhubah}(h]h ]h"]h$]h&]uh1jNhj#uhhhj;uhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjvjtjvjujvjwuh1hhhhhhNhNubjy)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jT)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj vubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjvubj)}(hhh]j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](j)}(h``struct vb2_queue *q``h]j)}(hj-vh]hstruct vb2_queue *q}(hj/vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+vubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj'vubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjFvhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjPvh]hstruct vb2_queue}(hjRvhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjNvubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjFvubh with videobuf2 queue.}(hjFvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjmvhMhjCvubah}(h]h ]h"]h$]h&]uh1jhj'vubeh}(h]h ]h"]h$]h&]uh1jhjBvhMhj$vubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_fileio_is_active (C function)c.vb2_fileio_is_activehNtauh1hhhhhhNhNubh)}(hhh](h)}(h/bool vb2_fileio_is_active (struct vb2_queue *q)h]h)}(h.bool vb2_fileio_is_active(struct vb2_queue *q)h](j$)}(hj$h]hbool}(hjvhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjvhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhhhjvhMubj)}(hvb2_fileio_is_activeh]j#)}(hvb2_fileio_is_activeh]hvb2_fileio_is_active}(hjvhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjvubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjvhhhjvhMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjvubj )}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjwhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjwubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjwmodnameN classnameNjj)}j]j$)}jx$jvsbc.vb2_fileio_is_activeasbuh1hhjvubj )}(h h]h }(hj$whhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubj$)}(hj$h]h*}(hj2whhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjvubj#)}(hj$h]hq}(hj?whhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjvubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjvubah}(h]h ]h"]h$]h&]hhuh1j8$hjvhhhjvhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjvhhhjvhMubah}(h]jvah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjvhMhjvhhubjO)}(hhh]jT)}(h return true if fileio is active.h]h return true if fileio is active.}(hjhwhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjewhhubah}(h]h ]h"]h$]h&]uh1jNhjvhhhjvhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjwjtjwjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** This returns true if read() or write() is used to stream the data as opposed to stream I/O. This is almost never an important distinction, except in rare cases. One such case is that using read() or write() to stream a format using ``V4L2_FIELD_ALTERNATE`` is not allowed since there is no way you can pass the field information of each buffer to/from userspace. A driver that supports this field format should check for this in the :c:type:`vb2_ops->queue_setup ` op and reject it if this function returns true.h](jT)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjwubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjwh]hstruct vb2_queue *q}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjwubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjwhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjwh]hstruct vb2_queue}(hjwhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjwhMhjwubh with videobuf2 queue.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubjT)}(h**Description**h]j)}(hjxh]h Description}(hj xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjwubjT)}(hX This returns true if read() or write() is used to stream the data as opposed to stream I/O. This is almost never an important distinction, except in rare cases. One such case is that using read() or write() to stream a format using ``V4L2_FIELD_ALTERNATE`` is not allowed since there is no way you can pass the field information of each buffer to/from userspace. A driver that supports this field format should check for this in the :c:type:`vb2_ops->queue_setup ` op and reject it if this function returns true.h](hThis returns true if read() or write() is used to stream the data as opposed to stream I/O. This is almost never an important distinction, except in rare cases. One such case is that using read() or write() to stream a format using }(hjxhhhNhNubj)}(h``V4L2_FIELD_ALTERNATE``h]hV4L2_FIELD_ALTERNATE}(hj%xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh is not allowed since there is no way you can pass the field information of each buffer to/from userspace. A driver that supports this field format should check for this in the }(hjxhhhNhNubh)}(h(:c:type:`vb2_ops->queue_setup `h]j)}(hj9xh]hvb2_ops->queue_setup}(hj;xhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj7xubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjxubh0 op and reject it if this function returns true.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjVxhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vb2_get_num_buffers (C function)c.vb2_get_num_buffershNtauh1hhhhhhNhNubh)}(hhh](h)}(h6unsigned int vb2_get_num_buffers (struct vb2_queue *q)h]h)}(h5unsigned int vb2_get_num_buffers(struct vb2_queue *q)h](j$)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj}xhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}xhhhjxhMubj$)}(hinth]hint}(hjxhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj}xhhhjxhMubj )}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}xhhhjxhMubj)}(hvb2_get_num_buffersh]j#)}(hvb2_get_num_buffersh]hvb2_get_num_buffers}(hjxhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjxubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj}xhhhjxhMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjxubj )}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjxhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjxubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjxmodnameN classnameNjj)}j]j$)}jx$jxsbc.vb2_get_num_buffersasbuh1hhjxubj )}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj$)}(hj$h]h*}(hj&yhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjxubj#)}(hj$h]hq}(hj3yhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjxubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjxubah}(h]h ]h"]h$]h&]hhuh1j8$hj}xhhhjxhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjyxhhhjxhMubah}(h]jtxah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjxhMhjvxhhubjO)}(hhh]jT)}(h#get the number of buffer in a queueh]h#get the number of buffer in a queue}(hj\yhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjYyhhubah}(h]h ]h"]h$]h&]uh1jNhjvxhhhjxhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjtyjtjtyjujvjwuh1hhhhhhNhNubjy)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jT)}(h**Parameters**h]j)}(hj~yh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|yubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjxyubj)}(hhh]j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](j)}(h``struct vb2_queue *q``h]j)}(hjyh]hstruct vb2_queue *q}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjyubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjyhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjyh]hstruct vb2_queue}(hjyhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjyubh with videobuf2 queue.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjxyubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_is_busy (C function) c.vb2_is_busyhNtauh1hhhhhhNhNubh)}(hhh](h)}(h&bool vb2_is_busy (struct vb2_queue *q)h]h)}(h%bool vb2_is_busy(struct vb2_queue *q)h](j$)}(hj$h]hbool}(hjzhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjzhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj(zhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzhhhj'zhMubj)}(h vb2_is_busyh]j#)}(h vb2_is_busyh]h vb2_is_busy}(hj:zhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj6zubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjzhhhj'zhMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjVzhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjRzubj )}(h h]h }(hjczhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRzubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjtzhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjqzubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjvzmodnameN classnameNjj)}j]j$)}jx$j$hjNzubah}(h]h ]h"]h$]h&]hhuh1j8$hjzhhhj'zhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjzhhhj'zhMubah}(h]j zah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj'zhMhjzhhubjO)}(hhh]jT)}(h return busy status of the queue.h]h return busy status of the queue.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1jNhjzhhhj'zhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjzjtjzjujvjwuh1hhhhhhNhNubjy)}(h**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** This function checks if queue has any buffers allocated.h](jT)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjzubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj{h]hstruct vb2_queue *q}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hWhMhj{ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj2{hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj<{h]hstruct vb2_queue}(hj>{hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj:{ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj.{hMhj2{ubh with videobuf2 queue.}(hj2{hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj.{hMhj/{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj.{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhjzubjT)}(h**Description**h]j)}(hjw{h]h Description}(hjy{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju{ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjzubjT)}(h8This function checks if queue has any buffers allocated.h]h8This function checks if queue has any buffers allocated.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_get_drv_priv (C function)c.vb2_get_drv_privhNtauh1hhhhhhNhNubh)}(hhh](h)}(h-void * vb2_get_drv_priv (struct vb2_queue *q)h]h)}(h+void *vb2_get_drv_priv(struct vb2_queue *q)h](j$)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj{hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhj{hMubj$)}(hj$h]h*}(hj{hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj{hhhj{hMubj)}(hvb2_get_drv_privh]j#)}(hvb2_get_drv_privh]hvb2_get_drv_priv}(hj{hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj{ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj{hhhj{hMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj|ubj )}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj$|hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj!|ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj&|modnameN classnameNjj)}j]j$)}jx$j{sbc.vb2_get_drv_privasbuh1hhj|ubj )}(h h]h }(hjD|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubj$)}(hj$h]h*}(hjR|hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj|ubj#)}(hj$h]hq}(hj_|hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj|ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj{ubah}(h]h ]h"]h$]h&]hhuh1j8$hj{hhhj{hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj{hhhj{hMubah}(h]j{ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj{hMhj{hhubjO)}(hhh]jT)}(h5return driver private data associated with the queue.h]h5return driver private data associated with the queue.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj|hhubah}(h]h ]h"]h$]h&]uh1jNhj{hhhj{hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj|jtj|jujvjwuh1hhhhhhNhNubjy)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jT)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj|ubj)}(hhh]j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](j)}(h``struct vb2_queue *q``h]j)}(hj|h]hstruct vb2_queue *q}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj|ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj|hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj|h]hstruct vb2_queue}(hj|hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj|ubh with videobuf2 queue.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj }hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_set_plane_payload (C function)c.vb2_set_plane_payloadhNtauh1hhhhhhNhNubh)}(hhh](h)}(h]void vb2_set_plane_payload (struct vb2_buffer *vb, unsigned int plane_no, unsigned long size)h]h)}(h\void vb2_set_plane_payload(struct vb2_buffer *vb, unsigned int plane_no, unsigned long size)h](j$)}(hvoidh]hvoid}(hjF}hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjB}hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjU}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB}hhhjT}hMubj)}(hvb2_set_plane_payloadh]j#)}(hvb2_set_plane_payloadh]hvb2_set_plane_payload}(hjg}hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjc}ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjB}hhhjT}hMubj9$)}(hB(struct vb2_buffer *vb, unsigned int plane_no, unsigned long size)h](j?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj}ubj )}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hj}hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj}ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj}modnameN classnameNjj)}j]j$)}jx$ji}sbc.vb2_set_plane_payloadasbuh1hhj}ubj )}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj$)}(hj$h]h*}(hj}hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj}ubj#)}(hvbh]hvb}(hj}hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj}ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj{}ubj?$)}(hunsigned int plane_noh](j$)}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj}ubj )}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj$)}(hinth]hint}(hj~hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj}ubj )}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj#)}(hplane_noh]hplane_no}(hj-~hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj}ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj{}ubj?$)}(hunsigned long sizeh](j$)}(hunsignedh]hunsigned}(hjF~hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjB~ubj )}(h h]h }(hjT~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB~ubj$)}(hlongh]hlong}(hjb~hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjB~ubj )}(h h]h }(hjp~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB~ubj#)}(hsizeh]hsize}(hj~~hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjB~ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj{}ubeh}(h]h ]h"]h$]h&]hhuh1j8$hjB}hhhjT}hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj>}hhhjT}hMubah}(h]j9}ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjT}hMhj;}hhubjO)}(hhh]jT)}(h)set bytesused for the plane **plane_no**.h](hset bytesused for the plane }(hj~hhhNhNubj)}(h **plane_no**h]hplane_no}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj~hhubah}(h]h ]h"]h$]h&]uh1jNhj;}hhhjT}hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj~jtj~jujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. ``unsigned int plane_no`` plane number for which payload should be set. ``unsigned long size`` payload in bytes.h](jT)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj~ubj)}(hhh](j)}(hy``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj~h]hstruct vb2_buffer *vb}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj~ubj)}(hhh]jT)}(h^pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to.h](h pointer to }(hjhhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hjh]hstruct vb2_buffer}(hj hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubh+ to which the plane in question belongs to.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj;hMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(hH``unsigned int plane_no`` plane number for which payload should be set. h](j)}(h``unsigned int plane_no``h]j)}(hjXh]hunsigned int plane_no}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjRubj)}(hhh]jT)}(h-plane number for which payload should be set.h]h-plane number for which payload should be set.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhj~ubj)}(h(``unsigned long size`` payload in bytes.h](j)}(h``unsigned long size``h]j)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hpayload in bytes.h]hpayload in bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_get_plane_payload (C function)c.vb2_get_plane_payloadhNtauh1hhhhhhNhNubh)}(hhh](h)}(hRunsigned long vb2_get_plane_payload (struct vb2_buffer *vb, unsigned int plane_no)h]h)}(hQunsigned long vb2_get_plane_payload(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj$)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhjhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(hvb2_get_plane_payloadh]j#)}(hvb2_get_plane_payloadh]hvb2_get_plane_payload}(hj(hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj$ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhMubj9$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj@ubj )}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hjbhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj_ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjdmodnameN classnameNjj)}j]j$)}jx$j*sbc.vb2_get_plane_payloadasbuh1hhj@ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj@ubj#)}(hvbh]hvb}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj@ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj<ubj?$)}(hunsigned int plane_noh](j$)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjubj )}(h h]h }(hjĀhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hinth]hint}(hjҀhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj#)}(hplane_noh]hplane_no}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj<ubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhMubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhMhjhhubjO)}(hhh]jT)}(h$get bytesused for the plane plane_noh]h$get bytesused for the plane plane_no}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj0jtj0jujvjwuh1hhhhhhNhNubjy)}(h**Parameters** ``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. ``unsigned int plane_no`` plane number for which payload should be set.h](jT)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj4ubj)}(hhh](j)}(hy``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. h](j)}(h``struct vb2_buffer *vb``h]j)}(hjYh]hstruct vb2_buffer *vb}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjSubj)}(hhh]jT)}(h^pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to.h](h pointer to }(hjrhhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hj|h]hstruct vb2_buffer}(hj~hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjrubh+ to which the plane in question belongs to.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(hG``unsigned int plane_no`` plane number for which payload should be set.h](j)}(h``unsigned int plane_no``h]j)}(hjh]hunsigned int plane_no}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h-plane number for which payload should be set.h]h-plane number for which payload should be set.}(hjρhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj́ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjˁhMhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane_size (C function)c.vb2_plane_sizehNtauh1hhhhhhNhNubh)}(hhh](h)}(hKunsigned long vb2_plane_size (struct vb2_buffer *vb, unsigned int plane_no)h]h)}(hJunsigned long vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhjhMubj$)}(hlongh]hlong}(hj-hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj hhhjhMubj )}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhjhMubj)}(hvb2_plane_sizeh]j#)}(hvb2_plane_sizeh]hvb2_plane_size}(hjMhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjIubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj hhhjhMubj9$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjeubj )}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jOsbc.vb2_plane_sizeasbuh1hhjeubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjeubj#)}(hvbh]hvb}(hj‚hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjeubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjaubj?$)}(hunsigned int plane_noh](j$)}(hunsignedh]hunsigned}(hjۂhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjׂubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjׂubj$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjׂubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjׂubj#)}(hplane_noh]hplane_no}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjׂubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjaubeh}(h]h ]h"]h$]h&]hhuh1j8$hj hhhjhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhMubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhMhjhhubjO)}(hhh]jT)}(hreturn plane size in bytes.h]hreturn plane size in bytes.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj:hhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjUjtjUjujvjwuh1hhhhhhNhNubjy)}(h**Parameters** ``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. ``unsigned int plane_no`` plane number for which size should be returned.h](jT)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjYubj)}(hhh](j)}(hy``struct vb2_buffer *vb`` pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj~h]hstruct vb2_buffer *vb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjxubj)}(hhh]jT)}(h^pointer to :c:type:`struct vb2_buffer ` to which the plane in question belongs to.h](h pointer to }(hjhhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hjh]hstruct vb2_buffer}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubh+ to which the plane in question belongs to.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(hI``unsigned int plane_no`` plane number for which size should be returned.h](j)}(h``unsigned int plane_no``h]j)}(hjۃh]hunsigned int plane_no}(hj݃hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjكubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjՃubj)}(hhh]jT)}(h/plane number for which size should be returned.h]h/plane number for which size should be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjՃubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'vb2_start_streaming_called (C function)c.vb2_start_streaming_calledhNtauh1hhhhhhNhNubh)}(hhh](h)}(h5bool vb2_start_streaming_called (struct vb2_queue *q)h]h)}(h4bool vb2_start_streaming_called(struct vb2_queue *q)h](j$)}(hj$h]hbool}(hj5hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj1hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhjBhMubj)}(hvb2_start_streaming_calledh]j#)}(hvb2_start_streaming_calledh]hvb2_start_streaming_called}(hjUhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjQubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj1hhhjBhMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjmubj )}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jWsbc.vb2_start_streaming_calledasbuh1hhjmubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjmubj#)}(hj$h]hq}(hjʄhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjmubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjiubah}(h]h ]h"]h$]h&]hhuh1j8$hj1hhhjBhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj-hhhjBhMubah}(h]j(ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjBhMhj*hhubjO)}(hhh]jT)}(h"return streaming status of driver.h]h"return streaming status of driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jNhj*hhhjBhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj jtj jujvjwuh1hhhhhhNhNubjy)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](j)}(h``struct vb2_queue *q``h]j)}(hj4h]hstruct vb2_queue *q}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj.ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjMhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjWh]hstruct vb2_queue}(hjYhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjMubh with videobuf2 queue.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjthMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+vb2_clear_last_buffer_dequeued (C function) c.vb2_clear_last_buffer_dequeuedhNtauh1hhhhhhNhNubh)}(hhh](h)}(h9void vb2_clear_last_buffer_dequeued (struct vb2_queue *q)h]h)}(h8void vb2_clear_last_buffer_dequeued(struct vb2_queue *q)h](j$)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(hvb2_clear_last_buffer_dequeuedh]j#)}(hvb2_clear_last_buffer_dequeuedh]hvb2_clear_last_buffer_dequeued}(hj҅hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj΅ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jԅsb c.vb2_clear_last_buffer_dequeuedasbuh1hhjubj )}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hj:hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjGhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubah}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhMubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhMhjhhubjO)}(hhh]jT)}(h)clear last buffer dequeued flag of queue.h]h)clear last buffer dequeued flag of queue.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]j)}(h_``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjʆhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjԆh]hstruct vb2_queue}(hjֆhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj҆ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjʆubh with videobuf2 queue.}(hjʆhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhMhjdžubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƆhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_get_buffer (C function)c.vb2_get_bufferhNtauh1hhhhhhNhNubh)}(hhh](h)}(hLstruct vb2_buffer * vb2_get_buffer (struct vb2_queue *q, unsigned int index)h]h)}(hJstruct vb2_buffer *vb2_get_buffer(struct vb2_queue *q, unsigned int index)h](h)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj*hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM ubj )}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhj;hM ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hjMhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjJubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjOmodnameN classnameNjj)}j]j$)}jx$vb2_get_buffersbc.vb2_get_bufferasbuh1hhj*hhhj;hM ubj )}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhj;hM ubj$)}(hj$h]h*}(hj|hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj*hhhj;hM ubj)}(hvb2_get_bufferh]j#)}(hjkh]hvb2_get_buffer}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj*hhhj;hM ubj9$)}(h)(struct vb2_queue *q, unsigned int index)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjƇhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjÇubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjȇmodnameN classnameNjj)}j]jic.vb2_get_bufferasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hunsigned int indexh](j$)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjubj )}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hinth]hint}(hj3hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjubj )}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj#)}(hindexh]hindex}(hjOhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubeh}(h]h ]h"]h$]h&]hhuh1j8$hj*hhhj;hM ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj&hhhj;hM ubah}(h]j!ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj;hM hj#hhubjO)}(hhh]jT)}(hget a buffer from a queueh]hget a buffer from a queue}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjvhhubah}(h]h ]h"]h$]h&]uh1jNhj#hhhj;hM ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hXf**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``unsigned int index`` buffer index **Description** This function obtains a buffer from a queue, by its index. Keep in mind that there is no refcounting involved in this operation, so the buffer lifetime should be taken into consideration.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjӈhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj݈h]hstruct vb2_queue}(hj߈hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjۈubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjψhMhjӈubh with videobuf2 queue.}(hjӈhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjψhMhjЈubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjψhMhjubj)}(h$``unsigned int index`` buffer index h](j)}(h``unsigned int index``h]j)}(hjh]hunsigned int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(hhh]jT)}(h buffer indexh]h buffer index}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjT)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubjT)}(hThis function obtains a buffer from a queue, by its index. Keep in mind that there is no refcounting involved in this operation, so the buffer lifetime should be taken into consideration.h]hThis function obtains a buffer from a queue, by its index. Keep in mind that there is no refcounting involved in this operation, so the buffer lifetime should be taken into consideration.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer_in_use (C function)c.vb2_buffer_in_usehNtauh1hhhhhhNhNubh)}(hhh](h)}(hCbool vb2_buffer_in_use (struct vb2_queue *q, struct vb2_buffer *vb)h]h)}(hBbool vb2_buffer_in_use(struct vb2_queue *q, struct vb2_buffer *vb)h](j$)}(hj$h]hbool}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM'ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhM'ubj)}(hvb2_buffer_in_useh]j#)}(hvb2_buffer_in_useh]hvb2_buffer_in_use}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhM'ubj9$)}(h,(struct vb2_queue *q, struct vb2_buffer *vb)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj҉hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjΉubj )}(h h]h }(hj߉hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjΉubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jsbc.vb2_buffer_in_useasbuh1hhjΉubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjΉubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjΉubj#)}(hj$h]hq}(hj+hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjΉubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjʉubj?$)}(hstruct vb2_buffer *vbh](h)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj?ubj )}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hjahhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj^ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjcmodnameN classnameNjj)}j]j c.vb2_buffer_in_useasbuh1hhj?ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj?ubj#)}(hvbh]hvb}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj?ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjʉubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhM'ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhM'ubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhM'hjhhubjO)}(hhh]jT)}(hkreturn true if the buffer is in use and the queue cannot be freed (by the means of VIDIOC_REQBUFS(0)) call.h]hkreturn true if the buffer is in use and the queue cannot be freed (by the means of VIDIOC_REQBUFS(0)) call.}(hjĊhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM!hjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhM'ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj܊jtj܊jujvjwuh1hhhhhhNhNubjy)}(h**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct vb2_buffer *vb`` buffer for which plane size should be returned.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM%hjubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM%hjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj(h]hstruct vb2_queue}(hj*hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhM%hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubj)}(hI``struct vb2_buffer *vb`` buffer for which plane size should be returned.h](j)}(h``struct vb2_buffer *vb``h]j)}(hjah]hstruct vb2_buffer *vb}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM'hj[ubj)}(hhh]jT)}(h/buffer for which plane size should be returned.h]h/buffer for which plane size should be returned.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM$hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM'hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#vb2_verify_memory_type (C function)c.vb2_verify_memory_typehNtauh1hhhhhhNhNubh)}(hhh](h)}(h[int vb2_verify_memory_type (struct vb2_queue *q, enum vb2_memory memory, unsigned int type)h]h)}(hZint vb2_verify_memory_type(struct vb2_queue *q, enum vb2_memory memory, unsigned int type)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM3ubj )}(h h]h }(hjʋhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjɋhM3ubj)}(hvb2_verify_memory_typeh]j#)}(hvb2_verify_memory_typeh]hvb2_verify_memory_type}(hj܋hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj؋ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjɋhM3ubj9$)}(h@(struct vb2_queue *q, enum vb2_memory memory, unsigned int type)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jދsbc.vb2_verify_memory_typeasbuh1hhjubj )}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjDhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjQhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(henum vb2_memory memoryh](h)}(hhh]henum}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjeubj )}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubh)}(hhh]j#)}(h vb2_memoryh]h vb2_memory}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j2c.vb2_verify_memory_typeasbuh1hhjeubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj#)}(hmemoryh]hmemory}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjeubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hunsigned int typeh](j$)}(hunsignedh]hunsigned}(hǰhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjȌubj )}(h h]h }(hjڌhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjȌubj$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjȌubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjȌubj#)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjȌubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjɋhM3ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjɋhM3ubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjɋhM3hjhhubjO)}(hhh]jT)}(hiCheck whether the memory type and buffer type passed to a buffer operation are compatible with the queue.h]hiCheck whether the memory type and buffer type passed to a buffer operation are compatible with the queue.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM*hj+hhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjɋhM3ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjFjtjFjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``enum vb2_memory memory`` memory model, as defined by enum :c:type:`vb2_memory`. ``unsigned int type`` private buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on enum :c:type:`v4l2_buf_type`.h](jT)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM.hjJubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjoh]hstruct vb2_queue *q}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM-hjiubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhM-hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjfubj)}(hR``enum vb2_memory memory`` memory model, as defined by enum :c:type:`vb2_memory`. h](j)}(h``enum vb2_memory memory``h]j)}(hjˍh]henum vb2_memory memory}(hj͍hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɍubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM.hjōubj)}(hhh]jT)}(h6memory model, as defined by enum :c:type:`vb2_memory`.h](h!memory model, as defined by enum }(hjhhhNhNubh)}(h:c:type:`vb2_memory`h]j)}(hjh]h vb2_memory}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_memoryuh1hhjhM.hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjōubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjfubj)}(h``unsigned int type`` private buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on enum :c:type:`v4l2_buf_type`.h](j)}(h``unsigned int type``h]j)}(hj'h]hunsigned int type}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM0hj!ubj)}(hhh]jT)}(hprivate buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on enum :c:type:`v4l2_buf_type`.h](hprivate buffer type whose content is defined by the vb2-core caller. For example, for V4L2, it should match the types defined on enum }(hj@hhhNhNubh)}(h:c:type:`v4l2_buf_type`h]j)}(hjJh]h v4l2_buf_type}(hjLhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM/hj@ubh.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjghM/hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM0hjfubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)vb2_request_object_is_buffer (C function)c.vb2_request_object_is_bufferhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDbool vb2_request_object_is_buffer (struct media_request_object *obj)h]h)}(hCbool vb2_request_object_is_buffer(struct media_request_object *obj)h](j$)}(hj$h]hbool}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM;ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhM;ubj)}(hvb2_request_object_is_bufferh]j#)}(hvb2_request_object_is_bufferh]hvb2_request_object_is_buffer}(hjĎhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhM;ubj9$)}(h"(struct media_request_object *obj)h]j?$)}(h struct media_request_object *objh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj܎ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj܎ubh)}(hhh]j#)}(hmedia_request_objecth]hmedia_request_object}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jƎsbc.vb2_request_object_is_bufferasbuh1hhj܎ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj܎ubj$)}(hj$h]h*}(hj,hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj܎ubj#)}(hobjh]hobj}(hj9hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj܎ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj؎ubah}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhM;ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhM;ubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhM;hjhhubjO)}(hhh]jT)}(h%return true if the object is a bufferh]h%return true if the object is a buffer}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM7hj`hhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhM;ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj{jtj{jujvjwuh1hhhhhhNhNubjy)}(hJ**Parameters** ``struct media_request_object *obj`` the request object.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM;hjubj)}(hhh]j)}(h8``struct media_request_object *obj`` the request object.h](j)}(h$``struct media_request_object *obj``h]j)}(hjh]h struct media_request_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM=hjubj)}(hhh]jT)}(hthe request object.h]hthe request object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#vb2_request_buffer_cnt (C function)c.vb2_request_buffer_cnthNtauh1hhhhhhNhNubh)}(hhh](h)}(h?unsigned int vb2_request_buffer_cnt (struct media_request *req)h]h)}(h>unsigned int vb2_request_buffer_cnt(struct media_request *req)h](j$)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMBubj )}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hMBubj$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhj hMBubj )}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hMBubj)}(hvb2_request_buffer_cnth]j#)}(hvb2_request_buffer_cnth]hvb2_request_buffer_cnt}(hj;hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj7ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj hMBubj9$)}(h(struct media_request *req)h]j?$)}(hstruct media_request *reqh](h)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjSubj )}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubh)}(hhh]j#)}(h media_requesth]h media_request}(hjuhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjrubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjwmodnameN classnameNjj)}j]j$)}jx$j=sbc.vb2_request_buffer_cntasbuh1hhjSubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjSubj#)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjSubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjOubah}(h]h ]h"]h$]h&]hhuh1j8$hjhhhj hMBubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhj hMBubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj hMBhjhhubjO)}(hhh]jT)}(h+return the number of buffers in the requesth]h+return the number of buffers in the request}(hjڐhhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM>hjאhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhj hMBubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(h<**Parameters** ``struct media_request *req`` the request.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMBhjubj)}(hhh]j)}(h*``struct media_request *req`` the request.h](j)}(h``struct media_request *req``h]j)}(hjh]hstruct media_request *req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMDhjubj)}(hhh]jT)}(h the request.h]h the request.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jShm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.h1hM@hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_v4l2_buffer (C struct)c.vb2_v4l2_bufferhNtauh1hhhhhhNhNubh)}(hhh](h)}(hvb2_v4l2_bufferh]h)}(hstruct vb2_v4l2_bufferh](h)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjqhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhjhKubj)}(hvb2_v4l2_bufferh]j#)}(hjoh]hvb2_v4l2_buffer}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjqhhhjhKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjmhhhjhKubah}(h]jhah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhKhjjhhubjO)}(hhh]jT)}(h"video buffer information for v4l2.h]h"video buffer information for v4l2.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jNhjjhhhjhKubeh}(h]h ](jmstructeh"]h$]h&]jrjmjsjϑjtjϑjujvjwuh1hhhhhhNhNubjy)}(hX **Definition**:: struct vb2_v4l2_buffer { struct vb2_buffer vb2_buf; __u32 flags; __u32 field; struct v4l2_timecode timecode; __u32 sequence; __s32 request_fd; bool is_held; struct vb2_plane planes[VB2_MAX_PLANES]; }; **Members** ``vb2_buf`` embedded struct :c:type:`vb2_buffer`. ``flags`` buffer informational flags. ``field`` field order of the image in the buffer, as defined by :c:type:`enum v4l2_field `. ``timecode`` frame timecode. ``sequence`` sequence count of this frame. ``request_fd`` the request_fd associated with this buffer ``is_held`` if true, then this capture buffer was held ``planes`` plane information (userptr/fd, length, bytesused, data_offset).h](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjۑhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjבubh:}(hjבhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK!hjӑubj4)}(hstruct vb2_v4l2_buffer { struct vb2_buffer vb2_buf; __u32 flags; __u32 field; struct v4l2_timecode timecode; __u32 sequence; __s32 request_fd; bool is_held; struct vb2_plane planes[VB2_MAX_PLANES]; };h]hstruct vb2_v4l2_buffer { struct vb2_buffer vb2_buf; __u32 flags; __u32 field; struct v4l2_timecode timecode; __u32 sequence; __s32 request_fd; bool is_held; struct vb2_plane planes[VB2_MAX_PLANES]; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j3hn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK#hjӑubjT)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK.hjӑubj)}(hhh](j)}(h2``vb2_buf`` embedded struct :c:type:`vb2_buffer`. h](j)}(h ``vb2_buf``h]j)}(hj$h]hvb2_buf}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK hjubj)}(hhh]jT)}(h%embedded struct :c:type:`vb2_buffer`.h](hembedded struct }(hj=hhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjGh]h vb2_buffer}(hjIhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj9hK hj=ubh.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj9hK hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hK hjubj)}(h&``flags`` buffer informational flags. h](j)}(h ``flags``h]j)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK!hjzubj)}(hhh]jT)}(hbuffer informational flags.h]hbuffer informational flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhK!hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhK!hjubj)}(hh``field`` field order of the image in the buffer, as defined by :c:type:`enum v4l2_field `. h](j)}(h ``field``h]j)}(hjh]hfield}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK#hjubj)}(hhh]jT)}(h]field order of the image in the buffer, as defined by :c:type:`enum v4l2_field `.h](h6field order of the image in the buffer, as defined by }(hjҒhhhNhNubh)}(h&:c:type:`enum v4l2_field `h]j)}(hjܒh]henum v4l2_field}(hjޒhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjڒubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_fielduh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK"hjҒubh.}(hjҒhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhK"hjϒubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjΒhK#hjubj)}(h``timecode`` frame timecode. h](j)}(h ``timecode``h]j)}(hjh]htimecode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK$hjubj)}(hhh]jT)}(hframe timecode.h]hframe timecode.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj+hK$hj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hK$hjubj)}(h+``sequence`` sequence count of this frame. h](j)}(h ``sequence``h]j)}(hjOh]hsequence}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK%hjIubj)}(hhh]jT)}(hsequence count of this frame.h]hsequence count of this frame.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjdhK%hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhK%hjubj)}(h:``request_fd`` the request_fd associated with this buffer h](j)}(h``request_fd``h]j)}(hjh]h request_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK&hjubj)}(hhh]jT)}(h*the request_fd associated with this bufferh]h*the request_fd associated with this buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjubj)}(h7``is_held`` if true, then this capture buffer was held h](j)}(h ``is_held``h]j)}(hjh]his_held}(hjÓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK'hjubj)}(hhh]jT)}(h*if true, then this capture buffer was heldh]h*if true, then this capture buffer was held}(hjړhhhNhNubah}(h]h ]h"]h$]h&]uh1jShj֓hK'hjדubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj֓hK'hjubj)}(hJ``planes`` plane information (userptr/fd, length, bytesused, data_offset).h](j)}(h ``planes``h]j)}(hjh]hplanes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK'hjubj)}(hhh]jT)}(h?plane information (userptr/fd, length, bytesused, data_offset).h]h?plane information (userptr/fd, length, bytesused, data_offset).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK'hjubeh}(h]h ]h"]h$]h&]uh1jhjӑubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubjT)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK+hhhhubjT)}(hShould contain enough information to be able to cover all the fields of :c:type:`struct v4l2_buffer ` at ``videodev2.h``.h](hHShould contain enough information to be able to cover all the fields of }(hjShhhNhNubh)}(h*:c:type:`struct v4l2_buffer `h]j)}(hj]h]hstruct v4l2_buffer}(hj_hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK)hjSubh at }(hjShhhNhNubj)}(h``videodev2.h``h]h videodev2.h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjzhK)hhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_find_buffer (C function)c.vb2_find_bufferhNtauh1hhhhhhNhNubh)}(hhh](h)}(hHstruct vb2_buffer * vb2_find_buffer (struct vb2_queue *q, u64 timestamp)h]h)}(hFstruct vb2_buffer *vb2_find_buffer(struct vb2_queue *q, u64 timestamp)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKIubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKIubh)}(hhh]j#)}(h vb2_bufferh]h vb2_buffer}(hjϔhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj̔ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjєmodnameN classnameNjj)}j]j$)}jx$vb2_find_buffersbc.vb2_find_bufferasbuh1hhjhhhjhKIubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKIubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjhhhjhKIubj)}(hvb2_find_bufferh]j#)}(hjh]hvb2_find_buffer}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhKIubj9$)}(h$(struct vb2_queue *q, u64 timestamp)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj&ubj )}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjHhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjEubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjJmodnameN classnameNjj)}j]jc.vb2_find_bufferasbuh1hhj&ubj )}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj$)}(hj$h]h*}(hjthhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj&ubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj&ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj"ubj?$)}(h u64 timestamph](h)}(hhh]j#)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]jc.vb2_find_bufferasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj#)}(h timestamph]h timestamp}(hjȕhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj"ubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhKIubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhKIubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhKIhjhhubjO)}(hhh]jT)}(h"Find a buffer with given timestamph]h"Find a buffer with given timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhKIubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj jtj jujvjwuh1hhhhhhNhNubjy)}(h**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``u64 timestamp`` the timestamp to find. **Description** Returns the buffer with the given **timestamp**, or NULL if not found.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKFhjubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj3h]hstruct vb2_queue *q}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKDhj-ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjLhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjVh]hstruct vb2_queue}(hjXhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjHhKDhjLubh with videobuf2 queue.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjHhKDhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKDhj*ubj)}(h)``u64 timestamp`` the timestamp to find. h](j)}(h``u64 timestamp``h]j)}(hjh]h u64 timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKEhjubj)}(hhh]jT)}(hthe timestamp to find.h]hthe timestamp to find.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKEhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubjT)}(h**Description**h]j)}(hjʖh]h Description}(hj̖hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȖubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKGhjubjT)}(hFReturns the buffer with the given **timestamp**, or NULL if not found.h](h"Returns the buffer with the given }(hjhhhNhNubj)}(h **timestamp**h]h timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or NULL if not found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_reqbufs (C function) c.vb2_reqbufshNtauh1hhhhhhNhNubh)}(hhh](h)}(hFint vb2_reqbufs (struct vb2_queue *q, struct v4l2_requestbuffers *req)h]h)}(hEint vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req)h](j$)}(hinth]hint}(hj!hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKUubj )}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj/hKUubj)}(h vb2_reqbufsh]j#)}(h vb2_reqbufsh]h vb2_reqbufs}(hjBhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj>ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj/hKUubj9$)}(h6(struct vb2_queue *q, struct v4l2_requestbuffers *req)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjZubj )}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj|hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjyubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj~modnameN classnameNjj)}j]j$)}jx$jDsb c.vb2_reqbufsasbuh1hhjZubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjZubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjZubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjVubj?$)}(hstruct v4l2_requestbuffers *reqh](h)}(hjh]hstruct}(hjϗhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj˗ubj )}(h h]h }(hjܗhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj˗ubh)}(hhh]j#)}(hv4l2_requestbuffersh]hv4l2_requestbuffers}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j c.vb2_reqbufsasbuh1hhj˗ubj )}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj˗ubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj˗ubj#)}(hreqh]hreq}(hj&hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj˗ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjVubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhj/hKUubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhj/hKUubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj/hKUhjhhubjO)}(hhh]jT)}(hMWrapper for vb2_core_reqbufs() that also verifies the memory and type values.h]hMWrapper for vb2_core_reqbufs() that also verifies the memory and type values.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKNhjMhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhj/hKUubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjhjtjhjujvjwuh1hhhhhhNhNubjy)}(hX;**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct v4l2_requestbuffers *req`` :c:type:`struct v4l2_requestbuffers ` passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_reqbufs ` handler in driver.h](jT)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKRhjlubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKQhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKQhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubj)}(h``struct v4l2_requestbuffers *req`` :c:type:`struct v4l2_requestbuffers ` passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_reqbufs ` handler in driver.h](j)}(h#``struct v4l2_requestbuffers *req``h]j)}(hjh]hstruct v4l2_requestbuffers *req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKRhjubj)}(hhh]jT)}(h:c:type:`struct v4l2_requestbuffers ` passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_reqbufs ` handler in driver.h](h)}(h::c:type:`struct v4l2_requestbuffers `h]j)}(hj h]hstruct v4l2_requestbuffers}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_requestbuffersuh1hhjhKRhjubh passed from userspace to }(hjhhhNhNubh)}(h9:c:type:`v4l2_ioctl_ops->vidioc_reqbufs `h]j)}(hj/h]hv4l2_ioctl_ops->vidioc_reqbufs}(hj1hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhjhKRhjubh handler in driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubeh}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_create_bufs (C function)c.vb2_create_bufshNtauh1hhhhhhNhNubh)}(hhh](h)}(hMint vb2_create_bufs (struct vb2_queue *q, struct v4l2_create_buffers *create)h]h)}(hLint vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK_ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK_ubj)}(hvb2_create_bufsh]j#)}(hvb2_create_bufsh]hvb2_create_bufs}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhK_ubj9$)}(h9(struct vb2_queue *q, struct v4l2_create_buffers *create)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjřhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjҙhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jsbc.vb2_create_bufsasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(h"struct v4l2_create_buffers *createh](h)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj2ubj )}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubh)}(hhh]j#)}(hv4l2_create_buffersh]hv4l2_create_buffers}(hjThhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjQubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjVmodnameN classnameNjj)}j]jc.vb2_create_bufsasbuh1hhj2ubj )}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj2ubj#)}(hcreateh]hcreate}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj2ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhK_ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhK_ubah}(h]j{ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhK_hj}hhubjO)}(hhh]jT)}(hQWrapper for vb2_core_create_bufs() that also verifies the memory and type values.h]hQWrapper for vb2_core_create_bufs() that also verifies the memory and type values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKXhjhhubah}(h]h ]h"]h$]h&]uh1jNhj}hhhjhK_ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjϚjtjϚjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct v4l2_create_buffers *create`` creation parameters, passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_create_bufs ` handler in driverh](jT)}(h**Parameters**h]j)}(hjٚh]h Parameters}(hjۚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjךubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK\hjӚubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK[hjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj hK[hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj hK[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK[hjubj)}(h``struct v4l2_create_buffers *create`` creation parameters, passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_create_bufs ` handler in driverh](j)}(h&``struct v4l2_create_buffers *create``h]j)}(hjTh]h"struct v4l2_create_buffers *create}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK\hjNubj)}(hhh]jT)}(h}creation parameters, passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_create_bufs ` handler in driverh](h.creation parameters, passed from userspace to }(hjmhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_create_bufs `h]j)}(hjwh]h"v4l2_ioctl_ops->vidioc_create_bufs}(hjyhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhjihK\hjmubh handler in driver}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjihK\hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihK\hjubeh}(h]h ]h"]h$]h&]uh1jhjӚubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_prepare_buf (C function)c.vb2_prepare_bufhNtauh1hhhhhhNhNubh)}(hhh](h)}(h[int vb2_prepare_buf (struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h]h)}(hZint vb2_prepare_buf(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h](j$)}(hinth]hint}(hjЛhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj̛hhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKwubj )}(h h]h }(hjߛhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj̛hhhjޛhKwubj)}(hvb2_prepare_bufh]j#)}(hvb2_prepare_bufh]hvb2_prepare_buf}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj̛hhhjޛhKwubj9$)}(hG(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hj+hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj(ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj-modnameN classnameNjj)}j]j$)}jx$jsbc.vb2_prepare_bufasbuh1hhj ubj )}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj$)}(hj$h]h*}(hjYhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj ubj#)}(hj$h]hq}(hjfhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hstruct media_device *mdevh](h)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjzubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubh)}(hhh]j#)}(h media_deviceh]h media_device}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]jGc.vb2_prepare_bufasbuh1hhjzubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj$)}(hj$h]h*}(hjȜhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjzubj#)}(hmdevh]hmdev}(hj՜hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjzubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hstruct v4l2_buffer *bh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h v4l2_bufferh]h v4l2_buffer}(hj hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]jGc.vb2_prepare_bufasbuh1hhjubj )}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hj8hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hbh]hb}(hjEhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubeh}(h]h ]h"]h$]h&]hhuh1j8$hj̛hhhjޛhKwubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjțhhhjޛhKwubah}(h]jÛah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjޛhKwhjśhhubjO)}(hhh]jT)}(h7Pass ownership of a buffer from userspace to the kernelh]h7Pass ownership of a buffer from userspace to the kernel}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKbhjlhhubah}(h]h ]h"]h$]h&]uh1jNhjśhhhjޛhKwubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct media_device *mdev`` pointer to :c:type:`struct media_device `, may be NULL. ``struct v4l2_buffer *b`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driver **Description** Should be called from :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` ioctl handler of a driver. This function: #) verifies the passed buffer, #) calls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed. #) if **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the prepared buffer to the request. The return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driver.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKfhjubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKdhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjɝhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjӝh]hstruct vb2_queue}(hj՝hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjѝubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjŝhKdhjɝubh with videobuf2 queue.}(hjɝhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjŝhKdhjƝubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŝhKdhjubj)}(hd``struct media_device *mdev`` pointer to :c:type:`struct media_device `, may be NULL. h](j)}(h``struct media_device *mdev``h]j)}(hj h]hstruct media_device *mdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKehjubj)}(hhh]jT)}(hEpointer to :c:type:`struct media_device `, may be NULL.h](h pointer to }(hj%hhhNhNubh)}(h,:c:type:`struct media_device `h]j)}(hj/h]hstruct media_device}(hj1hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj media_deviceuh1hhj!hKehj%ubh, may be NULL.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj!hKehj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hKehjubj)}(h``struct v4l2_buffer *b`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driver h](j)}(h``struct v4l2_buffer *b``h]j)}(hjhh]hstruct v4l2_buffer *b}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKghjbubj)}(hhh]jT)}(hybuffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driverh](h*buffer structure passed from userspace to }(hjhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_prepare_buf `h]j)}(hjh]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKfhjubh handler in driver}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKfhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKghjubeh}(h]h ]h"]h$]h&]uh1jhjubjT)}(h**Description**h]j)}(hjǞh]h Description}(hjɞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŞubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKihjubjT)}(hnShould be called from :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` ioctl handler of a driver.h](hShould be called from }(hjݞhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_prepare_buf `h]j)}(hjh]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKihjݞubh ioctl handler of a driver.}(hjݞhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKihjubjT)}(hThis function:h]hThis function:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKlhjubj)}(hhh](j)}(hverifies the passed buffer,h]jT)}(hj#h]hverifies the passed buffer,}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKnhj!ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hcalls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed.h]jT)}(hcalls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed.h](hcalls }(hj=hhhNhNubh)}(h(:c:type:`vb2_ops->buf_prepare `h]j)}(hjGh]hvb2_ops->buf_prepare}(hjIhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKohj=ubhg callback in the driver (if provided), in which driver-specific buffer initialization can be performed.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjdhKohj9ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(htif **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the prepared buffer to the request. h]jT)}(hsif **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the prepared buffer to the request.h](hif }(hjyhhhNhNubj)}(h**b->request_fd**h]h b->request_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh is non-zero and }(hjyhhhNhNubj)}(h**mdev->ops->req_queue**h]hmdev->ops->req_queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh6 is set, then bind the prepared buffer to the request.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKqhjuubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjubjT)}(hThe return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driver.h](hOThe return values from this function are intended to be directly returned from }(hjhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_prepare_buf `h]j)}(hjŸh]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hjğhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKthjubh handler in driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjߟhKthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_qbuf (C function) c.vb2_qbufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hTint vb2_qbuf (struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h]h)}(hSint vb2_qbuf(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h](j$)}(hinth]hint}(hj hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKubj)}(hvb2_qbufh]j#)}(hvb2_qbufh]hvb2_qbuf}(hj+hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj'ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhKubj9$)}(hG(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjCubj )}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjehhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjbubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjgmodnameN classnameNjj)}j]j$)}jx$j-sb c.vb2_qbufasbuh1hhjCubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjCubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjCubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj?ubj?$)}(hstruct media_device *mdevh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjŠhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h media_deviceh]h media_device}(hj֠hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjӠubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjؠmodnameN classnameNjj)}j]j c.vb2_qbufasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hmdevh]hmdev}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj?ubj?$)}(hstruct v4l2_buffer *bh](h)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj$ubj )}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$ubh)}(hhh]j#)}(h v4l2_bufferh]h v4l2_buffer}(hjFhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjCubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjHmodnameN classnameNjj)}j]j c.vb2_qbufasbuh1hhj$ubj )}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$ubj$)}(hj$h]h*}(hjrhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj$ubj#)}(hjGh]hb}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj$ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj?ubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhKubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhKhjhhubjO)}(hhh]jT)}(hQueue a buffer from userspaceh]hQueue a buffer from userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK{hjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhKubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hXL**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct media_device *mdev`` pointer to :c:type:`struct media_device `, may be NULL. ``struct v4l2_buffer *b`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler in driver **Description** Should be called from :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler of a driver. This function: #) verifies the passed buffer; #) if **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the buffer to the request. #) if necessary, calls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed; #) if streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing. The return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler in driver.h](jT)}(h**Parameters**h]j)}(hjʡh]h Parameters}(hj̡hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȡubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjġubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK|hjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj h]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhK|hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhK|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK|hjubj)}(hd``struct media_device *mdev`` pointer to :c:type:`struct media_device `, may be NULL. h](j)}(h``struct media_device *mdev``h]j)}(hjEh]hstruct media_device *mdev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK}hj?ubj)}(hhh]jT)}(hEpointer to :c:type:`struct media_device `, may be NULL.h](h pointer to }(hj^hhhNhNubh)}(h,:c:type:`struct media_device `h]j)}(hjhh]hstruct media_device}(hjjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj media_deviceuh1hhjZhK}hj^ubh, may be NULL.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjZhK}hj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhK}hjubj)}(h``struct v4l2_buffer *b`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler in driver h](j)}(h``struct v4l2_buffer *b``h]j)}(hjh]hstruct v4l2_buffer *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(hrbuffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler in driverh](h*buffer structure passed from userspace to }(hjhhhNhNubh)}(h6:c:type:`v4l2_ioctl_ops->vidioc_qbuf `h]j)}(hjĢh]hv4l2_ioctl_ops->vidioc_qbuf}(hjƢhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj¢ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK~hjubh handler in driver}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhK~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjġubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjġubjT)}(haShould be called from :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler of a driver.h](hShould be called from }(hjhhhNhNubh)}(h6:c:type:`v4l2_ioctl_ops->vidioc_qbuf `h]j)}(hj h]hv4l2_ioctl_ops->vidioc_qbuf}(hj"hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh handler of a driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj=hKhjġubjT)}(hThis function:h]hThis function:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjġubj)}(hhh](j)}(hverifies the passed buffer;h]jT)}(hj\h]hverifies the passed buffer;}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjZubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hjif **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the buffer to the request.h]jT)}(hjif **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the buffer to the request.h](hif }(hjvhhhNhNubj)}(h**b->request_fd**h]h b->request_fd}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh is non-zero and }(hjvhhhNhNubj)}(h**mdev->ops->req_queue**h]hmdev->ops->req_queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh- is set, then bind the buffer to the request.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjrubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hif necessary, calls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed;h]jT)}(hif necessary, calls :c:type:`vb2_ops->buf_prepare ` callback in the driver (if provided), in which driver-specific buffer initialization can be performed;h](hif necessary, calls }(hjhhhNhNubh)}(h(:c:type:`vb2_ops->buf_prepare `h]j)}(hjh]hvb2_ops->buf_prepare}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubhg callback in the driver (if provided), in which driver-specific buffer initialization can be performed;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjڣhKhjubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hif streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing. h]jT)}(hif streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing.h](h@if streaming is on, queues the buffer in driver by the means of }(hjhhhNhNubh)}(h&:c:type:`vb2_ops->buf_queue `h]j)}(hjh]hvb2_ops->buf_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh callback for processing.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjġubjT)}(hThe return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler in driver.h](hOThe return values from this function are intended to be directly returned from }(hj-hhhNhNubh)}(h6:c:type:`v4l2_ioctl_ops->vidioc_qbuf `h]j)}(hj7h]hv4l2_ioctl_ops->vidioc_qbuf}(hj9hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj-ubh handler in driver.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjThKhjġubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_expbuf (C function) c.vb2_expbufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hBint vb2_expbuf (struct vb2_queue *q, struct v4l2_exportbuffer *eb)h]h)}(hAint vb2_expbuf(struct vb2_queue *q, struct v4l2_exportbuffer *eb)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj{hhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhjhKubj)}(h vb2_expbufh]j#)}(h vb2_expbufh]h vb2_expbuf}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj{hhhjhKubj9$)}(h3(struct vb2_queue *q, struct v4l2_exportbuffer *eb)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjɤhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjڤhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjפubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjܤmodnameN classnameNjj)}j]j$)}jx$jsb c.vb2_expbufasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hstruct v4l2_exportbuffer *ebh](h)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj)ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubh)}(hhh]j#)}(hv4l2_exportbufferh]hv4l2_exportbuffer}(hjKhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjHubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjMmodnameN classnameNjj)}j]j c.vb2_expbufasbuh1hhj)ubj )}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj$)}(hj$h]h*}(hjwhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj)ubj#)}(hebh]heb}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj)ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubeh}(h]h ]h"]h$]h&]hhuh1j8$hj{hhhjhKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjwhhhjhKubah}(h]jrah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhKhjthhubjO)}(hhh]jT)}(h$Export a buffer as a file descriptorh]h$Export a buffer as a file descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jNhjthhhjhKubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjƥjtjƥjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct v4l2_exportbuffer *eb`` export buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_expbuf ` handler in driver **Description** The return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_expbuf ` handler in driver.h](jT)}(h**Parameters**h]j)}(hjХh]h Parameters}(hjҥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΥubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjʥubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``struct v4l2_exportbuffer *eb`` export buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_expbuf ` handler in driver h](j)}(h ``struct v4l2_exportbuffer *eb``h]j)}(hjKh]hstruct v4l2_exportbuffer *eb}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjEubj)}(hhh]jT)}(h{export buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_expbuf ` handler in driverh](h1export buffer structure passed from userspace to }(hjdhhhNhNubh)}(h8:c:type:`v4l2_ioctl_ops->vidioc_expbuf `h]j)}(hjnh]hv4l2_ioctl_ops->vidioc_expbuf}(hjphhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjdubh handler in driver}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjubeh}(h]h ]h"]h$]h&]uh1jhjʥubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjʥubjT)}(hThe return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_expbuf ` handler in driver.h](hOThe return values from this function are intended to be directly returned from }(hjhhhNhNubh)}(h8:c:type:`v4l2_ioctl_ops->vidioc_expbuf `h]j)}(hjʦh]hv4l2_ioctl_ops->vidioc_expbuf}(hj̦hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjȦubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh handler in driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjʥubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_dqbuf (C function) c.vb2_dqbufhNtauh1hhhhhhNhNubh)}(hhh](h)}(hLint vb2_dqbuf (struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking)h]h)}(hKint vb2_dqbuf(struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKubj)}(h vb2_dqbufh]j#)}(h vb2_dqbufh]h vb2_dqbuf}(hj3hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj/ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj hKubj9$)}(h>(struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjKubj )}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjmhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjomodnameN classnameNjj)}j]j$)}jx$j5sb c.vb2_dqbufasbuh1hhjKubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjKubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjKubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjGubj?$)}(hstruct v4l2_buffer *bh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjͧhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h v4l2_bufferh]h v4l2_buffer}(hjާhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjۧubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j c.vb2_dqbufasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hj hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hjGh]hb}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjGubj?$)}(hbool nonblockingh](j$)}(hj$h]hbool}(hj/hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj+ubj )}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj#)}(h nonblockingh]h nonblocking}(hjJhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj+ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjGubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhj hKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj hhhj hKubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj hKhjhhubjO)}(hhh]jT)}(h!Dequeue a buffer to the userspaceh]h!Dequeue a buffer to the userspace}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjqhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhj hKubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hXf**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct v4l2_buffer *b`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_dqbuf ` handler in driver ``bool nonblocking`` if true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (:c:type:`file->f_flags ` & ``O_NONBLOCK``) here **Description** Should be called from :c:type:`v4l2_ioctl_ops->vidioc_dqbuf ` ioctl handler of a driver. This function: #) verifies the passed buffer; #) calls :c:type:`vb2_ops->buf_finish ` callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync; #) the buffer struct members are filled with relevant information for the userspace. The return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_dqbuf ` handler in driver.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjΨhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjبh]hstruct vb2_queue}(hjڨhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj֨ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjʨhKhjΨubh with videobuf2 queue.}(hjΨhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjʨhKhj˨ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjʨhKhjubj)}(h``struct v4l2_buffer *b`` buffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_dqbuf ` handler in driver h](j)}(h``struct v4l2_buffer *b``h]j)}(hjh]hstruct v4l2_buffer *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj ubj)}(hhh]jT)}(hsbuffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_dqbuf ` handler in driverh](h*buffer structure passed from userspace to }(hj*hhhNhNubh)}(h7:c:type:`v4l2_ioctl_ops->vidioc_dqbuf `h]j)}(hj4h]hv4l2_ioctl_ops->vidioc_dqbuf}(hj6hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj*ubh handler in driver}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjQhKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubj)}(h``bool nonblocking`` if true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (:c:type:`file->f_flags ` & ``O_NONBLOCK``) here h](j)}(h``bool nonblocking``h]j)}(hjnh]hbool nonblocking}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhubj)}(hhh]jT)}(hif true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (:c:type:`file->f_flags ` & ``O_NONBLOCK``) hereh](hif true, this call will not sleep waiting for a buffer if no buffers ready for dequeuing are present. Normally the driver would be passing (}(hjhhhNhNubh)}(h:c:type:`file->f_flags `h]j)}(hjh]h file->f_flags}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjfileuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh & }(hjhhhNhNubj)}(h``O_NONBLOCK``h]h O_NONBLOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) here}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjT)}(h**Description**h]j)}(hjߩh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݩubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubjT)}(hhShould be called from :c:type:`v4l2_ioctl_ops->vidioc_dqbuf ` ioctl handler of a driver.h](hShould be called from }(hjhhhNhNubh)}(h7:c:type:`v4l2_ioctl_ops->vidioc_dqbuf `h]j)}(hjh]hv4l2_ioctl_ops->vidioc_dqbuf}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh ioctl handler of a driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubjT)}(hThis function:h]hThis function:}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh](j)}(hverifies the passed buffer;h]jT)}(hj;h]hverifies the passed buffer;}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj9ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hcalls :c:type:`vb2_ops->buf_finish ` callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync;h]jT)}(hcalls :c:type:`vb2_ops->buf_finish ` callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync;h](hcalls }(hjUhhhNhNubh)}(h':c:type:`vb2_ops->buf_finish `h]j)}(hj_h]hvb2_ops->buf_finish}(hjahhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjvb2_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjUubh callback in the driver (if provided), in which driver can perform any additional operations that may be required before returning the buffer to userspace, such as cache sync;}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj|hKhjQubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hRthe buffer struct members are filled with relevant information for the userspace. h]jT)}(hQthe buffer struct members are filled with relevant information for the userspace.h]hQthe buffer struct members are filled with relevant information for the userspace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjubjT)}(hThe return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_dqbuf ` handler in driver.h](hOThe return values from this function are intended to be directly returned from }(hjhhhNhNubh)}(h7:c:type:`v4l2_ioctl_ops->vidioc_dqbuf `h]j)}(hjh]hv4l2_ioctl_ops->vidioc_dqbuf}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh handler in driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjӪhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_streamon (C function)c.vb2_streamonhNtauh1hhhhhhNhNubh)}(hhh](h)}(h?int vb2_streamon (struct vb2_queue *q, enum v4l2_buf_type type)h]h)}(h>int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKubj)}(h vb2_streamonh]j#)}(h vb2_streamonh]h vb2_streamon}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj hKubj9$)}(h.(struct vb2_queue *q, enum v4l2_buf_type type)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj7ubj )}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjYhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjVubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj[modnameN classnameNjj)}j]j$)}jx$j!sbc.vb2_streamonasbuh1hhj7ubj )}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj7ubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj7ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj3ubj?$)}(henum v4l2_buf_type typeh](h)}(hhh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h v4l2_buf_typeh]h v4l2_buf_type}(hjʫhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjǫubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj̫modnameN classnameNjj)}j]juc.vb2_streamonasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj#)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj3ubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhj hKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhj hKubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj hKhjhhubjO)}(hhh]jT)}(hstart streamingh]hstart streaming}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhj hKubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj8jtj8jujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``enum v4l2_buf_type type`` type argument passed from userspace to vidioc_streamon handler, as defined by :c:type:`enum v4l2_buf_type `. **Description** Should be called from :c:type:`v4l2_ioctl_ops->vidioc_streamon ` handler of a driver. This function: 1) verifies current state 2) passes any previously queued buffers to the driver and starts streaming The return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_streamon ` handler in the driver.h](jT)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj<ubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjah]hstruct vb2_queue *q}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj[ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjzhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjvhKhjzubh with videobuf2 queue.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjvhKhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjXubj)}(h``enum v4l2_buf_type type`` type argument passed from userspace to vidioc_streamon handler, as defined by :c:type:`enum v4l2_buf_type `. h](j)}(h``enum v4l2_buf_type type``h]j)}(hjh]henum v4l2_buf_type type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(h{type argument passed from userspace to vidioc_streamon handler, as defined by :c:type:`enum v4l2_buf_type `.h](hNtype argument passed from userspace to vidioc_streamon handler, as defined by }(hj֬hhhNhNubh)}(h,:c:type:`enum v4l2_buf_type `h]j)}(hjh]henum v4l2_buf_type}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjެubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj֬ubh.}(hj֬hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjӬubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҬhKhjXubeh}(h]h ]h"]h$]h&]uh1jhj<ubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj<ubjT)}(heShould be called from :c:type:`v4l2_ioctl_ops->vidioc_streamon ` handler of a driver.h](hShould be called from }(hj2hhhNhNubh)}(h::c:type:`v4l2_ioctl_ops->vidioc_streamon `h]j)}(hj<h]hv4l2_ioctl_ops->vidioc_streamon}(hj>hhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj2ubh handler of a driver.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjYhKhj<ubjT)}(hThis function:h]hThis function:}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj<ubj)}(hhh](j)}(hverifies current stateh]jT)}(hjxh]hverifies current state}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjvubah}(h]h ]h"]h$]h&]uh1jhjsubj)}(hHpasses any previously queued buffers to the driver and starts streaming h]jT)}(hGpasses any previously queued buffers to the driver and starts streamingh]hGpasses any previously queued buffers to the driver and starts streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj<ubjT)}(hThe return values from this function are intended to be directly returned from :c:type:`v4l2_ioctl_ops->vidioc_streamon ` handler in the driver.h](hOThe return values from this function are intended to be directly returned from }(hjhhhNhNubh)}(h::c:type:`v4l2_ioctl_ops->vidioc_streamon `h]j)}(hjh]hv4l2_ioctl_ops->vidioc_streamon}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh handler in the driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjԭhKhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_streamoff (C function)c.vb2_streamoffhNtauh1hhhhhhNhNubh)}(hhh](h)}(h@int vb2_streamoff (struct vb2_queue *q, enum v4l2_buf_type type)h]h)}(h?int vb2_streamoff(struct vb2_queue *q, enum v4l2_buf_type type)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKubj)}(h vb2_streamoffh]j#)}(h vb2_streamoffh]h vb2_streamoff}(hj hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj hKubj9$)}(h.(struct vb2_queue *q, enum v4l2_buf_type type)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhj8ubj )}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjZhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjWubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj\modnameN classnameNjj)}j]j$)}jx$j"sbc.vb2_streamoffasbuh1hhj8ubj )}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj8ubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj4ubj?$)}(henum v4l2_buf_type typeh](h)}(hhh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h v4l2_buf_typeh]h v4l2_buf_type}(hjˮhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjȮubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjͮmodnameN classnameNjj)}j]jvc.vb2_streamoffasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj#)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj4ubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhj hKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhj hKubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj hKhjhhubjO)}(hhh]jT)}(hstop streamingh]hstop streaming}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhj hKubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj9jtj9jujvjwuh1hhhhhhNhNubjy)}(hX}**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``enum v4l2_buf_type type`` type argument passed from userspace to vidioc_streamoff handler **Description** Should be called from vidioc_streamoff handler of a driver. This function: #) verifies current state, #) stop streaming and dequeues any queued buffers, including those previously passed to the driver (after waiting for the driver to finish). This call can be used for pausing playback. The return values from this function are intended to be directly returned from vidioc_streamoff handler in the driverh](jT)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj=ubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjbh]hstruct vb2_queue *q}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj\ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj{hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjwhKhj{ubh with videobuf2 queue.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjwhKhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhjYubj)}(h\``enum v4l2_buf_type type`` type argument passed from userspace to vidioc_streamoff handler h](j)}(h``enum v4l2_buf_type type``h]j)}(hjh]henum v4l2_buf_type type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(h?type argument passed from userspace to vidioc_streamoff handlerh]h?type argument passed from userspace to vidioc_streamoff handler}(hjׯhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjӯhKhjԯubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӯhKhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj=ubjT)}(h;Should be called from vidioc_streamoff handler of a driver.h]h;Should be called from vidioc_streamoff handler of a driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj=ubjT)}(hThis function:h]hThis function:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj=ubj)}(hhh](j)}(hverifies current state,h]jT)}(hj2h]hverifies current state,}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj0ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hstop streaming and dequeues any queued buffers, including those previously passed to the driver (after waiting for the driver to finish). h]jT)}(hstop streaming and dequeues any queued buffers, including those previously passed to the driver (after waiting for the driver to finish).h]hstop streaming and dequeues any queued buffers, including those previously passed to the driver (after waiting for the driver to finish).}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjHubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj=ubjT)}(hThis call can be used for pausing playback. The return values from this function are intended to be directly returned from vidioc_streamoff handler in the driverh]hThis call can be used for pausing playback. The return values from this function are intended to be directly returned from vidioc_streamoff handler in the driver}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_init (C function)c.vb2_queue_inithNtauh1hhhhhhNhNubh)}(hhh](h)}(h(int vb2_queue_init (struct vb2_queue *q)h]h)}(h'int vb2_queue_init(struct vb2_queue *q)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKubj)}(hvb2_queue_inith]j#)}(hvb2_queue_inith]hvb2_queue_init}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhjhKubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjӰhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjϰubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjϰubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$jsbc.vb2_queue_initasbuh1hhjϰubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjϰubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjϰubj#)}(hj$h]hq}(hj,hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjϰubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hj˰ubah}(h]h ]h"]h$]h&]hhuh1j8$hjhhhjhKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjhKubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhKhjhhubjO)}(hhh]jT)}(hinitialize a videobuf2 queueh]hinitialize a videobuf2 queue}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjRhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjhKubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjmjtjmjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** The vb2_queue structure should be allocated by the driver. The driver is responsible of clearing it's content and setting initial values for some required entries before calling this function. q->ops, q->mem_ops, q->type and q->io_modes are mandatory. Please refer to the struct vb2_queue description in include/media/videobuf2-core.h for more information.h](jT)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjqubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjqubjT)}(hXdThe vb2_queue structure should be allocated by the driver. The driver is responsible of clearing it's content and setting initial values for some required entries before calling this function. q->ops, q->mem_ops, q->type and q->io_modes are mandatory. Please refer to the struct vb2_queue description in include/media/videobuf2-core.h for more information.h]hXfThe vb2_queue structure should be allocated by the driver. The driver is responsible of clearing it’s content and setting initial values for some required entries before calling this function. q->ops, q->mem_ops, q->type and q->io_modes are mandatory. Please refer to the struct vb2_queue description in include/media/videobuf2-core.h for more information.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vb2_queue_init_name (C function)c.vb2_queue_init_namehNtauh1hhhhhhNhNubh)}(hhh](h)}(h?int vb2_queue_init_name (struct vb2_queue *q, const char *name)h]h)}(h>int vb2_queue_init_name(struct vb2_queue *q, const char *name)h](j$)}(hinth]hint}(hj9hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj5hhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhjGhKubj)}(hvb2_queue_init_nameh]j#)}(hvb2_queue_init_nameh]hvb2_queue_init_name}(hjZhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjVubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj5hhhjGhKubj9$)}(h'(struct vb2_queue *q, const char *name)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjrubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$j\sbc.vb2_queue_init_nameasbuh1hhjrubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj$)}(hj$h]h*}(hj²hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjrubj#)}(hj$h]hq}(hjϲhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjrubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjnubj?$)}(hconst char *nameh](h)}(hj:h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hnameh]hname}(hj+hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjnubeh}(h]h ]h"]h$]h&]hhuh1j8$hj5hhhjGhKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj1hhhjGhKubah}(h]j,ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjGhKhj.hhubjO)}(hhh]jT)}(h(initialize a videobuf2 queue with a nameh]h(initialize a videobuf2 queue with a name}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjRhhubah}(h]h ]h"]h$]h&]uh1jNhj.hhhjGhKubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjmjtjmjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``const char *name`` the queue name **Description** This function initializes the vb2_queue exactly like vb2_queue_init(), and additionally sets the queue name. The queue name is used for logging purpose, and should uniquely identify the queue within the context of the device it belongs to. This is useful to attribute kernel log messages to the right queue for m2m devices or other devices that handle multiple queues.h](jT)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjqubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjh]hstruct vb2_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h$``const char *name`` the queue name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubj)}(hhh]jT)}(hthe queue nameh]hthe queue name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjqubjT)}(h**Description**h]j)}(hj-h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjqubjT)}(hXpThis function initializes the vb2_queue exactly like vb2_queue_init(), and additionally sets the queue name. The queue name is used for logging purpose, and should uniquely identify the queue within the context of the device it belongs to. This is useful to attribute kernel log messages to the right queue for m2m devices or other devices that handle multiple queues.h]hXpThis function initializes the vb2_queue exactly like vb2_queue_init(), and additionally sets the queue name. The queue name is used for logging purpose, and should uniquely identify the queue within the context of the device it belongs to. This is useful to attribute kernel log messages to the right queue for m2m devices or other devices that handle multiple queues.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_release (C function)c.vb2_queue_releasehNtauh1hhhhhhNhNubh)}(hhh](h)}(h,void vb2_queue_release (struct vb2_queue *q)h]h)}(h+void vb2_queue_release(struct vb2_queue *q)h](j$)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjnhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhjhMubj)}(hvb2_queue_releaseh]j#)}(hvb2_queue_releaseh]hvb2_queue_release}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjnhhhjhMubj9$)}(h(struct vb2_queue *q)h]j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjʹhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjʴubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjϴmodnameN classnameNjj)}j]j$)}jx$jsbc.vb2_queue_releaseasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubah}(h]h ]h"]h$]h&]hhuh1j8$hjnhhhjhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjjhhhjhMubah}(h]jeah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhMhjghhubjO)}(hhh]jT)}(h1stop streaming, release the queue and free memoryh]h1stop streaming, release the queue and free memory}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj.hhubah}(h]h ]h"]h$]h&]uh1jNhjghhhjhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjIjtjIjujvjwuh1hhhhhhNhNubjy)}(hX0**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. **Description** This function stops streaming and performs necessary clean ups, including freeing video buffer memory. The driver is responsible for freeing the vb2_queue structure itself.h](jT)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjMubj)}(hhh]j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjrh]hstruct vb2_queue *q}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjlubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubah}(h]h ]h"]h$]h&]uh1jhjMubjT)}(h**Description**h]j)}(hjеh]h Description}(hjҵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjεubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjMubjT)}(hThis function stops streaming and performs necessary clean ups, including freeing video buffer memory. The driver is responsible for freeing the vb2_queue structure itself.h]hThis function stops streaming and performs necessary clean ups, including freeing video buffer memory. The driver is responsible for freeing the vb2_queue structure itself.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_queue_change_type (C function)c.vb2_queue_change_typehNtauh1hhhhhhNhNubh)}(hhh](h)}(hBint vb2_queue_change_type (struct vb2_queue *q, unsigned int type)h]h)}(hAint vb2_queue_change_type(struct vb2_queue *q, unsigned int type)h](j$)}(hinth]hint}(hjhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMubj )}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj#hMubj)}(hvb2_queue_change_typeh]j#)}(hvb2_queue_change_typeh]hvb2_queue_change_type}(hj6hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj2ubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj#hMubj9$)}(h((struct vb2_queue *q, unsigned int type)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjNubj )}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjphhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjmubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjrmodnameN classnameNjj)}j]j$)}jx$j8sbc.vb2_queue_change_typeasbuh1hhjNubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjNubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjNubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjJubj?$)}(hunsigned int typeh](j$)}(hunsignedh]hunsigned}(hjöhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjubj )}(h h]h }(hjѶhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hinth]hint}(hj߶hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj#)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjJubeh}(h]h ]h"]h$]h&]hhuh1j8$hjhhhj#hMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj hhhj#hMubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj#hMhj hhubjO)}(hhh]jT)}(h(change the type of an inactive vb2_queueh]h(change the type of an inactive vb2_queue}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhj"hhubah}(h]h ]h"]h$]h&]uh1jNhj hhhj#hMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj=jtj=jujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``unsigned int type`` the type to change to (V4L2_BUF_TYPE_VIDEO_*) **Description** This function changes the type of the vb2_queue. This is only possible if the queue is not busy (i.e. no buffers have been allocated). vb2_queue_change_type() can be used to support multiple buffer types using the same queue. The driver can implement v4l2_ioctl_ops.vidioc_reqbufs and v4l2_ioctl_ops.vidioc_create_bufs functions and call vb2_queue_change_type() before calling vb2_ioctl_reqbufs() or vb2_ioctl_create_bufs(), and thus "lock" the buffer type until the buffers have been released.h](jT)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjAubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hjfh]hstruct vb2_queue *q}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhj`ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj{hMhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubj)}(hD``unsigned int type`` the type to change to (V4L2_BUF_TYPE_VIDEO_*) h](j)}(h``unsigned int type``h]j)}(hj·h]hunsigned int type}(hjķhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubj)}(hhh]jT)}(h-the type to change to (V4L2_BUF_TYPE_VIDEO_*)h]h-the type to change to (V4L2_BUF_TYPE_VIDEO_*)}(hj۷hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj׷hMhjطubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj׷hMhj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjAubjT)}(hThis function changes the type of the vb2_queue. This is only possible if the queue is not busy (i.e. no buffers have been allocated).h]hThis function changes the type of the vb2_queue. This is only possible if the queue is not busy (i.e. no buffers have been allocated).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjAubjT)}(hXgvb2_queue_change_type() can be used to support multiple buffer types using the same queue. The driver can implement v4l2_ioctl_ops.vidioc_reqbufs and v4l2_ioctl_ops.vidioc_create_bufs functions and call vb2_queue_change_type() before calling vb2_ioctl_reqbufs() or vb2_ioctl_create_bufs(), and thus "lock" the buffer type until the buffers have been released.h]hXkvb2_queue_change_type() can be used to support multiple buffer types using the same queue. The driver can implement v4l2_ioctl_ops.vidioc_reqbufs and v4l2_ioctl_ops.vidioc_create_bufs functions and call vb2_queue_change_type() before calling vb2_ioctl_reqbufs() or vb2_ioctl_create_bufs(), and thus “lock” the buffer type until the buffers have been released.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_poll (C function) c.vb2_pollhNtauh1hhhhhhNhNubh)}(hhh](h)}(hL__poll_t vb2_poll (struct vb2_queue *q, struct file *file, poll_table *wait)h]h)}(hK__poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)h](h)}(hhh]j#)}(h__poll_th]h__poll_t}(hjThhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjQubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjVmodnameN classnameNjj)}j]j$)}jx$vb2_pollsb c.vb2_pollasbuh1hhjMhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM%ubj )}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhjuhM%ubj)}(hvb2_pollh]j#)}(hjrh]hvb2_poll}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjMhhhjuhM%ubj9$)}(h:(struct vb2_queue *q, struct file *file, poll_table *wait)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjømodnameN classnameNjj)}j]jp c.vb2_pollasbuh1hhjubj )}(h h]h }(hj߸hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hstruct file *fileh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(hfileh]hfile}(hj0hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj-ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj2modnameN classnameNjj)}j]jp c.vb2_pollasbuh1hhjubj )}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hj\hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hfileh]hfile}(hjihhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hpoll_table *waith](h)}(hhh]j#)}(h poll_tableh]h poll_table}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]jp c.vb2_pollasbuh1hhj~ubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~ubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hj~ubj#)}(hwaith]hwait}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj~ubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubeh}(h]h ]h"]h$]h&]hhuh1j8$hjMhhhjuhM%ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjIhhhjuhM%ubah}(h]jDah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjuhM%hjFhhubjO)}(hhh]jT)}(h#implements poll userspace operationh]h#implements poll userspace operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jNhjFhhhjuhM%ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hX?**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct file *file`` file argument passed to the poll file operation handler ``poll_table *wait`` wait argument passed to the poll file operation handler **Description** This function implements poll file operation handler for a driver. For CAPTURE queues, if a buffer is ready to be dequeued, the userspace will be informed that the file descriptor of a video device is available for reading. For OUTPUT queues, if a buffer is ready to be dequeued, the file descriptor will be reported as available for writing. If the driver uses struct v4l2_fh, then vb2_poll() will also check for any pending events. The return values from this function are intended to be directly returned from poll handler in driver.h](jT)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj)h]hstruct vb2_queue *q}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhj#ubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjBhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjLh]hstruct vb2_queue}(hjNhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj>hMhjBubh with videobuf2 queue.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubj)}(hN``struct file *file`` file argument passed to the poll file operation handler h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubj)}(hhh]jT)}(h7file argument passed to the poll file operation handlerh]h7file argument passed to the poll file operation handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hM``poll_table *wait`` wait argument passed to the poll file operation handler h](j)}(h``poll_table *wait``h]j)}(hjh]hpoll_table *wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubj)}(hhh]jT)}(h7wait argument passed to the poll file operation handlerh]h7wait argument passed to the poll file operation handler}(hj׺hhhNhNubah}(h]h ]h"]h$]h&]uh1jShjӺhMhjԺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӺhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjT)}(hXVThis function implements poll file operation handler for a driver. For CAPTURE queues, if a buffer is ready to be dequeued, the userspace will be informed that the file descriptor of a video device is available for reading. For OUTPUT queues, if a buffer is ready to be dequeued, the file descriptor will be reported as available for writing.h]hXVThis function implements poll file operation handler for a driver. For CAPTURE queues, if a buffer is ready to be dequeued, the userspace will be informed that the file descriptor of a video device is available for reading. For OUTPUT queues, if a buffer is ready to be dequeued, the file descriptor will be reported as available for writing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjT)}(hZIf the driver uses struct v4l2_fh, then vb2_poll() will also check for any pending events.h]hZIf the driver uses struct v4l2_fh, then vb2_poll() will also check for any pending events.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjT)}(hfThe return values from this function are intended to be directly returned from poll handler in driver.h]hfThe return values from this function are intended to be directly returned from poll handler in driver.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_is_busy (C function)c.vb2_queue_is_busyhNtauh1hhhhhhNhNubh)}(hhh](h)}(h?bool vb2_queue_is_busy (struct vb2_queue *q, struct file *file)h]h)}(h>bool vb2_queue_is_busy(struct vb2_queue *q, struct file *file)h](j$)}(hj$h]hbool}(hj\hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjXhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM=ubj )}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhjihM=ubj)}(hvb2_queue_is_busyh]j#)}(hvb2_queue_is_busyh]hvb2_queue_is_busy}(hj|hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjxubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjXhhhjihM=ubj9$)}(h((struct vb2_queue *q, struct file *file)h](j?$)}(hstruct vb2_queue *qh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$j~sbc.vb2_queue_is_busyasbuh1hhjubj )}(h h]h }(hjֻhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hj$h]hq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubj?$)}(hstruct file *fileh](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(hfileh]hfile}(hj'hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hj$ubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetj)modnameN classnameNjj)}j]jһc.vb2_queue_is_busyasbuh1hhjubj )}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjShhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hfileh]hfile}(hj`hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubeh}(h]h ]h"]h$]h&]hhuh1j8$hjXhhhjihM=ubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjThhhjihM=ubah}(h]jOah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjihM=hjQhhubjO)}(hhh]jT)}(hcheck if the queue is busyh]hcheck if the queue is busy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM1hjhhubah}(h]h ]h"]h$]h&]uh1jNhjQhhhjihM=ubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hXJ**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. ``struct file *file`` file through which the vb2 queue access is performed **Description** The queue is considered busy if it has an owner and the owner is not the **file**. Queue ownership is acquired and checked by some of the v4l2_ioctl_ops helpers below. Drivers can also use this function directly when they need to open-code ioctl handlers, for instance to add additional checks between the queue ownership test and the call to the corresponding vb2 operation.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM5hjubj)}(hhh](j)}(h```struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue. h](j)}(h``struct vb2_queue *q``h]j)}(hj˼h]hstruct vb2_queue *q}(hjͼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɼubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM2hjżubj)}(hhh]jT)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhM2hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjżubeh}(h]h ]h"]h$]h&]uh1jhjhM2hj¼ubj)}(hK``struct file *file`` file through which the vb2 queue access is performed h](j)}(h``struct file *file``h]j)}(hj'h]hstruct file *file}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM3hj!ubj)}(hhh]jT)}(h4file through which the vb2 queue access is performedh]h4file through which the vb2 queue access is performed}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj<hM3hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM3hj¼ubeh}(h]h ]h"]h$]h&]uh1jhjubjT)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM5hjubjT)}(hRThe queue is considered busy if it has an owner and the owner is not the **file**.h](hIThe queue is considered busy if it has an owner and the owner is not the }(hjxhhhNhNubj)}(h**file**h]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM5hjubjT)}(hX$Queue ownership is acquired and checked by some of the v4l2_ioctl_ops helpers below. Drivers can also use this function directly when they need to open-code ioctl handlers, for instance to add additional checks between the queue ownership test and the call to the corresponding vb2 operation.h]hX$Queue ownership is acquired and checked by some of the v4l2_ioctl_ops helpers below. Drivers can also use this function directly when they need to open-code ioctl handlers, for instance to add additional checks between the queue ownership test and the call to the corresponding vb2 operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM8hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(vb2_video_unregister_device (C function)c.vb2_video_unregister_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h$hjubah}(h]h ]h"]h$]h&]hhuh1j8$hjĽhhhjֽhMpubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhjֽhMpubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjֽhMphjhhubjO)}(hhh]jT)}(h-unregister the video device and release queueh]h-unregister the video device and release queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMdhjhhubah}(h]h ]h"]h$]h&]uh1jNhjhhhjֽhMpubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjjtjjujvjwuh1hhhhhhNhNubjy)}(hX**Parameters** ``struct video_device *vdev`` pointer to :c:type:`struct video_device ` **Description** If the driver uses vb2_fop_release()/_vb2_fop_release(), then it should use vb2_video_unregister_device() instead of video_unregister_device(). This function will call video_unregister_device() and then release the vb2_queue if streaming is in progress. This will stop streaming and this will simplify the unbind sequence since after this call all subdevs will have stopped streaming as well.h](jT)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhhjubj)}(hhh]j)}(hV``struct video_device *vdev`` pointer to :c:type:`struct video_device ` h](j)}(h``struct video_device *vdev``h]j)}(hjɾh]hstruct video_device *vdev}(hj˾hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǾubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMfhjþubj)}(hhh]jT)}(h7pointer to :c:type:`struct video_device `h](h pointer to }(hjhhhNhNubh)}(h,:c:type:`struct video_device `h]j)}(hjh]hstruct video_device}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj video_deviceuh1hhj޾hMfhjubeh}(h]h ]h"]h$]h&]uh1jShj޾hMfhj߾ubah}(h]h ]h"]h$]h&]uh1jhjþubeh}(h]h ]h"]h$]h&]uh1jhj޾hMfhjubah}(h]h ]h"]h$]h&]uh1jhjubjT)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhhjubjT)}(hIf the driver uses vb2_fop_release()/_vb2_fop_release(), then it should use vb2_video_unregister_device() instead of video_unregister_device().h]hIf the driver uses vb2_fop_release()/_vb2_fop_release(), then it should use vb2_video_unregister_device() instead of video_unregister_device().}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhhjubjT)}(hThis function will call video_unregister_device() and then release the vb2_queue if streaming is in progress. This will stop streaming and this will simplify the unbind sequence since after this call all subdevs will have stopped streaming as well.h]hThis function will call video_unregister_device() and then release the vb2_queue if streaming is in progress. This will stop streaming and this will simplify the unbind sequence since after this call all subdevs will have stopped streaming as well.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_ops_wait_prepare (C function)c.vb2_ops_wait_preparehNtauh1hhhhhhNhNubh)}(hhh](h)}(h0void vb2_ops_wait_prepare (struct vb2_queue *vq)h]h)}(h/void vb2_ops_wait_prepare(struct vb2_queue *vq)h](j$)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hjshhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMyubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhjhMyubj)}(hvb2_ops_wait_prepareh]j#)}(hvb2_ops_wait_prepareh]hvb2_ops_wait_prepare}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjshhhjhMyubj9$)}(h(struct vb2_queue *vq)h]j?$)}(hstruct vb2_queue *vqh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjҿhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjϿubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjԿmodnameN classnameNjj)}j]j$)}jx$jsbc.vb2_ops_wait_prepareasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjubj#)}(hvqh]hvq}(hj hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjubah}(h]h ]h"]h$]h&]hhuh1j8$hjshhhjhMyubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjohhhjhMyubah}(h]jjah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjhMyhjlhhubjO)}(hhh]jT)}(h4helper function to lock a struct :c:type:`vb2_queue`h](h!helper function to lock a struct }(hj7hhhNhNubh)}(h:c:type:`vb2_queue`h]j)}(hjAh]h vb2_queue}(hjChhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjj)}j]jc.vb2_ops_wait_prepareasbj vb2_queueuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj7ubeh}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMshj4hhubah}(h]h ]h"]h$]h&]uh1jNhjlhhhjhMyubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsjtjtjtjujvjwuh1hhhhhhNhNubjy)}(h**Parameters** ``struct vb2_queue *vq`` pointer to :c:type:`struct vb2_queue ` **Description** ..note:: only use if vq->lock is non-NULL.h](jT)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMwhjxubj)}(hhh]j)}(hK``struct vb2_queue *vq`` pointer to :c:type:`struct vb2_queue ` h](j)}(h``struct vb2_queue *vq``h]j)}(hjh]hstruct vb2_queue *vq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMuhjubj)}(hhh]jT)}(h1pointer to :c:type:`struct vb2_queue `h](h pointer to }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhMuhjubeh}(h]h ]h"]h$]h&]uh1jShjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjxubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMwhjxubjT)}(h*..note:: only use if vq->lock is non-NULL.h]h*..note:: only use if vq->lock is non-NULL.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMwhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vb2_ops_wait_finish (C function)c.vb2_ops_wait_finishhNtauh1hhhhhhNhNubh)}(hhh](h)}(h/void vb2_ops_wait_finish (struct vb2_queue *vq)h]h)}(h.void vb2_ops_wait_finish(struct vb2_queue *vq)h](j$)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]j $ah"]h$]h&]uh1j$hj8hhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMubj )}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhjJhMubj)}(hvb2_ops_wait_finishh]j#)}(hvb2_ops_wait_finishh]hvb2_ops_wait_finish}(hj]hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjYubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhj8hhhjJhMubj9$)}(h(struct vb2_queue *vq)h]j?$)}(hstruct vb2_queue *vqh](h)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjuubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubh)}(hhh]j#)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&] refdomainjmreftypejx$ reftargetjmodnameN classnameNjj)}j]j$)}jx$j_sbc.vb2_ops_wait_finishasbuh1hhjuubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj$)}(hj$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1j$hjuubj#)}(hvqh]hvq}(hjhhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjuubeh}(h]h ]h"]h$]h&]noemphhhuh1j>$hjqubah}(h]h ]h"]h$]h&]hhuh1j8$hj8hhhjJhMubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhj4hhhjJhMubah}(h]j/ah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhjJhMhj1hhubjO)}(hhh]jT)}(h6helper function to unlock a struct :c:type:`vb2_queue`h](h#helper function to unlock a struct }(hjhhhNhNubh)}(h:c:type:`vb2_queue`h]j)}(hjh]h vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjj)}j]jc.vb2_ops_wait_finishasbj vb2_queueuh1hhjchKhjubeh}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM|hjhhubah}(h]h ]h"]h$]h&]uh1jNhj1hhhjJhMubeh}(h]h ](jmfunctioneh"]h$]h&]jrjmjsj8jtj8jujvjwuh1hhhhhhNhNubjy)}(h**Parameters** ``struct vb2_queue *vq`` pointer to :c:type:`struct vb2_queue ` **Description** ..note:: only use if vq->lock is non-NULL.h](jT)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhj<ubj)}(hhh]j)}(hK``struct vb2_queue *vq`` pointer to :c:type:`struct vb2_queue ` h](j)}(h``struct vb2_queue *vq``h]j)}(hjah]hstruct vb2_queue *vq}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM~hj[ubj)}(hhh]jT)}(h1pointer to :c:type:`struct vb2_queue `h](h pointer to }(hjzhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjh]hstruct vb2_queue}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjvhM~hjzubeh}(h]h ]h"]h$]h&]uh1jShjvhM~hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM~hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubjT)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhj<ubjT)}(h*..note:: only use if vq->lock is non-NULL.h]h*..note:: only use if vq->lock is non-NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jShn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_vmarea_handler (C struct)c.vb2_vmarea_handlerhNtauh1hhhhhhNhNubh)}(hhh](h)}(hvb2_vmarea_handlerh]h)}(hstruct vb2_vmarea_handlerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1hhjhhhp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKubj)}(hvb2_vmarea_handlerh]j#)}(hjh]hvb2_vmarea_handler}(hj hhhNhNubah}(h]h ]j.ah"]h$]h&]uh1j"hjubah}(h]h ](j5j6eh"]h$]h&]hhuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]hhj@uh1hjAjBhjhhhj hKubah}(h]jah ](jFjGeh"]h$]h&]jKjL)jMhuh1hhj hKhjhhubjO)}(hhh]jT)}(h%common vma refcount tracking handler.h]h%common vma refcount tracking handler.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jShp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhj?hhubah}(h]h ]h"]h$]h&]uh1jNhjhhhj hKubeh}(h]h ](jmstructeh"]h$]h&]jrjmjsjZjtjZjujvjwuh1hhhhhhNhNubjy)}(hX;**Definition**:: struct vb2_vmarea_handler { refcount_t *refcount; void (*put)(void *arg); void *arg; }; **Members** ``refcount`` pointer to :c:type:`refcount_t` entry in the buffer. ``put`` callback to function that decreases buffer refcount. ``arg`` argument for **put** callback.h](jT)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh:}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhj^ubj4)}(hcstruct vb2_vmarea_handler { refcount_t *refcount; void (*put)(void *arg); void *arg; };h]hcstruct vb2_vmarea_handler { refcount_t *refcount; void (*put)(void *arg); void *arg; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j3hp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhj^ubjT)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jShp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhK"hj^ubj)}(hhh](j)}(hB``refcount`` pointer to :c:type:`refcount_t` entry in the buffer. h](j)}(h ``refcount``h]j)}(hjh]hrefcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhjubj)}(hhh]jT)}(h4pointer to :c:type:`refcount_t` entry in the buffer.h](h pointer to }(hjhhhNhNubh)}(h:c:type:`refcount_t`h]j)}(hjh]h refcount_t}(hjhhhNhNubah}(h]h ](jtjmc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftypetype refexplicitrefwarnjjj refcount_tuh1hhjhKhjubh entry in the buffer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jShjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h=``put`` callback to function that decreases buffer refcount. h](j)}(h``put``h]j)}(hj h]hput}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhjubj)}(hhh]jT)}(h4callback to function that decreases buffer refcount.h]h4callback to function that decreases buffer refcount.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jShj hKhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h&``arg`` argument for **put** callback.h](j)}(h``arg``h]j)}(hjDh]harg}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhj>ubj)}(hhh]jT)}(hargument for **put** callback.h](h argument for }(hj]hhhNhNubj)}(h**put**h]hput}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh callback.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1jShp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjubeh}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jxhhhhhNhNubeh}(h](,v4l2-videobuf2-functions-and-data-structuresheh ]h"](,v4l2 videobuf2 functions and data structures vb2_frameworkeh$]h&]uh1hhhhhhhhKexpect_referenced_by_name}jhsexpect_referenced_by_id}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}h]hasnameids}(jhjju nametypes}(jjuh}(hhjhhhjjjjjG jL jj j=jBjjjjjCjHj#j#j%j%j'j'j)j)j -j-j.j.j0j0j+4j04j8j8j>j>jWBj\BjDjEjIjIjQMjVMjOjOjeRjjRj:Wj?WjYjYj[[j`[j1]j6]j_j_jdj!djXgj]gjjjjjnjnj5pj:pjsjsj!uj&ujvjvjtxjyxj zjzj{j{j9}j>}jjjjj(j-jjj!j&jjjjjjjjjhjmjjjjj{jjÛjțjjjrjwjj jjjjjjj,j1jejjjj jDjIjOjTjjjjjoj/j4jju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages]hsystem_message)}(hhh]jT)}(hhh]h3Hyperlink target "vb2-framework" is not referenced.}hj1sbah}(h]h ]h"]h$]h&]uh1jShj.ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1j,uba transformerN include_log] decorationNhhub.