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]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/pt_BR/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}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1j hj hhhm/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&]uh1jhj hhhjhKubh desc_name)}(h vb2_memoryh]h desc_sig_name)}(hjh]h vb2_memory}(hj8hhhNhNubah}(h]h ]nah"]h$]h&]uh1j6hj2ubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1j0hj hhhjhKubeh}(h]h ]h"]h$]h&]hhƌ add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhjhKhhhhubh 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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjdhhubah}(h]h ]h"]h$]h&]uh1jbhhhhhjhKubeh}(h]h ](cenumeh"]h$]h&]domainjobjtypejdesctypejnoindex 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](jh)}(h **Constants**h]hstrong)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubhdefinition_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]jh)}(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. **Description** Those operations are used by the videobuf2 core to implement the memory handling/memory allocators for each type of supported streaming I/O method. .. note:: #) 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](h block_quote)}(hX**Definition**:: struct 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](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh:}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK8hj,ubh 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); };}hjOsbah}(h]h ]h"]h$]h&]hhuh1jMhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK:hj,ubeh}(h]h ]h"]h$]h&]uh1j*hjLhK8hj&ubjh)}(h **Members**h]j)}(hjfh]hMembers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKLhj&ubj)}(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)}(hjh]halloc}(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]jh)}(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 }(hjhhhNhNubj)}(h **buf_priv**h]hbuf_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhV argument to other ops in this structure. The size argument to this function shall be }(hjhhhNhNubhemphasis)}(h*page aligned*h]h page aligned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK;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]jh)}(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&]uh1jghm/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]jh)}(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)}(hjh]hstruct dma_buf}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocdriver-api/media/v4l2-videobuf2 refdomainjreftypetype 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&]uh1jghjhKPhj{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]jh)}(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&]uh1jghm/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]jh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKYhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hK[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)}(hjSh]h unmap_dmabuf}(hjUhhhNhNubah}(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.hhK]hjMubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK\hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(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)}(hjh]hvaddr}(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]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhK^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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]jh)}(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&]uh1jghm/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]jh)}(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&]uh1jghm/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)}(hh``mmap`` setup a userspace mapping for a given memory buffer under the provided virtual memory region. h](j)}(h``mmap``h]j)}(hj;h]hmmap}(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.hhKihj5ubj)}(hhh]jh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKghjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKihj|ubeh}(h]h ]h"]h$]h&]uh1jhj&ubjh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKkhj&ubjh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhhj&ubhnote)}(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]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKlhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h:Required ops for MMAP types: alloc, put, num_users, mmap. h]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKnhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hHRequired ops for read/write access types: alloc, put, num_users, vaddr. h]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKphjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVRequired ops for DMABUF types: attach_dmabuf, detach_dmabuf, map_dmabuf, unmap_dmabuf.h]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix)uh1jhjubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane (C struct) c.vb2_planehNtauh1hhhhhhNhNubh)}(hhh](j)}(h vb2_planeh]j)}(hstruct vb2_planeh](j)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKxubj )}(h h]h }(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:hhhjKhKxubj1)}(h vb2_planeh]j7)}(hj8h]h vb2_plane}(hj^hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjZubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj:hhhjKhKxubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj6hhhjKhKxubah}(h]j1ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjKhKxhj3hhubjc)}(hhh]jh)}(hplane information.h]hplane information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj}hhubah}(h]h ]h"]h$]h&]uh1jbhj3hhhjKhKxubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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. **Description** Should contain enough information to be able to cover all the fields of :c:type:`struct v4l2_plane ` at videodev2.h.h](j+)}(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; }; h](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubjN)}(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&]hhuh1jMhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjubjh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(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]jh)}(hprivate data with this plane.h]hprivate data with this plane.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h)``dbuf`` dma_buf - shared buffer object. h](j)}(h``dbuf``h]j)}(hj0 h]hdbuf}(hj2 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]jh)}(hdma_buf - shared buffer object.h]hdma_buf - shared buffer object.}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jghjE hKhjF ubah}(h]h ]h"]h$]h&]uh1jhj* ubeh}(h]h ]h"]h$]h&]uh1jhjE hKhjubj)}(h;``dbuf_mapped`` flag to show whether dbuf is mapped or not h](j)}(h``dbuf_mapped``h]j)}(hji h]h dbuf_mapped}(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]jh)}(h*flag to show whether dbuf is mapped or noth]h*flag to show whether dbuf is mapped or not}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj~ hKhj ubah}(h]h ]h"]h$]h&]uh1jhjc ubeh}(h]h ]h"]h$]h&]uh1jhj~ 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)}(hj h]hdbuf_duplicated}(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]jh)}(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&]uh1jghm/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``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]jh)}(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&]uh1jghj 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]jh)}(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&]uh1jghm/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)}(hjO h]h min_length}(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.hhKhjI ubj)}(hhh]jh)}(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. }(hjh hhhNhNubj)}(h **length**h]hlength}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh ubh is always greater or equal to }(hjh hhhNhNubj)}(h**min_length**h]h min_length}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh ubh , and like }(hjh hhhNhNubj)}(h **length**h]hlength}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh ubh(, it is limited to MAX_UINT - PAGE_SIZE.}(hjh hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhje ubah}(h]h ]h"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]uh1jhjd 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]jh)}(h!Union with memtype-specific data.h]h!Union with memtype-specific data.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj 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]jh)}(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&]uh1jghm/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)}(hjD h]h m.userptr}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB 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]jh)}(hRwhen memory is ``VB2_MEMORY_USERPTR``, a userspace pointer pointing to this plane.h](hwhen memory is }(hj] hhhNhNubj)}(h``VB2_MEMORY_USERPTR``h]hVB2_MEMORY_USERPTR}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj] ubh-, a userspace pointer pointing to this plane.}(hj] hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjZ ubah}(h]h ]h"]h$]h&]uh1jhj> ubeh}(h]h ]h"]h$]h&]uh1jhjY 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)}(hj h]hm.fd}(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]jh)}(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&]uh1jghm/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)}(hu``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]jh)}(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&]uh1jghm/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 hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubjh)}(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)}(hj8 h]hstruct v4l2_plane}(hj: hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj6 ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjU hKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_io_modes (C enum)c.vb2_io_modeshNtauh1hhhhhhNhNubh)}(hhh](j)}(h vb2_io_modesh]j)}(henum vb2_io_modesh](j)}(hjh]henum}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj| hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKubj )}(h h]h }(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj| hhhj hKubj1)}(h vb2_io_modesh]j7)}(hjz h]h vb2_io_modes}(hj hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj| hhhj hKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjx hhhj hKubah}(h]js ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj hKhju hhubjc)}(hhh]jh)}(hqueue access methods.h]hqueue access methods.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jbhju hhhj hKubeh}(h]h ](jenumeh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(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](jh)}(h **Constants**h]j)}(hj h]h Constants}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(h(driver supports MMAP with streaming API.h]h(driver supports MMAP with streaming API.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj 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.hhKhj6 ubj)}(hhh]jh)}(h+driver supports USERPTR with streaming API.h]h+driver supports USERPTR with streaming API.}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jghjQ hKhjR ubah}(h]h ]h"]h$]h&]uh1jhj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hKhj ubj)}(h2``VB2_READ`` driver supports read() style access. h](j)}(h ``VB2_READ``h]j)}(hju h]hVB2_READ}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjo ubj)}(hhh]jh)}(h$driver supports read() style access.h]h$driver supports read() style access.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjo 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]jh)}(h%driver supports write() style access.h]h%driver supports write() style access.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj 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]jh)}(h*driver supports DMABUF with streaming API.h]h*driver supports DMABUF with streaming API.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/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&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer_state (C enum)c.vb2_buffer_statehNtauh1hhhhhhNhNubh)}(hhh](j)}(hvb2_buffer_stateh]j)}(henum vb2_buffer_stateh](j)}(hjh]henum}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKubj )}(h h]h }(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=hhhjNhKubj1)}(hvb2_buffer_stateh]j7)}(hj;h]hvb2_buffer_state}(hjahhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj]ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj=hhhjNhKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj9hhhjNhKubah}(h]j4ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjNhKhj6hhubjc)}(hhh]jh)}(hcurrent video buffer state.h]hcurrent video buffer state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jbhj6hhhjNhKubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](jh)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubj)}(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]jh)}(hbuffer under userspace control.h]hbuffer under userspace control.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(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]jh)}(h"buffer is queued in media request.h]h"buffer is queued in media request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(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)}(hj6h]hVB2_BUF_STATE_PREPARING}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj0ubj)}(hhh]jh)}(h&buffer is being prepared in videobuf2.h]h&buffer is being prepared in videobuf2.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjubj)}(hH``VB2_BUF_STATE_QUEUED`` buffer queued in videobuf2, but not in driver. h](j)}(h``VB2_BUF_STATE_QUEUED``h]j)}(hjoh]hVB2_BUF_STATE_QUEUED}(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.hhKhjiubj)}(hhh]jh)}(h.buffer queued in videobuf2, but not in driver.h]h.buffer queued in videobuf2, but not in driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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)}(hjh]hVB2_BUF_STATE_ACTIVE}(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]jh)}(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&]uh1jghm/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)}(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]jh)}(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&]uh1jghm/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]jh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer (C struct) c.vb2_bufferhNtauh1hhhhhhNhNubh)}(hhh](j)}(h vb2_bufferh]j)}(hstruct vb2_bufferh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhjhKubj1)}(h vb2_bufferh]j7)}(hjph]h vb2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjrhhhjhKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjnhhhjhKubah}(h]jiah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhKhjkhhubjc)}(hhh]jh)}(hrepresents a video buffer.h]hrepresents a video buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jbhjkhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX **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](j+)}(hXl**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; }; h](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubjN)}(hXEstruct 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]hXEstruct 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&]hhuh1jMhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjubjh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hj/h]h vb2_queue}(hj1hhhNhNubah}(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]jh)}(h^pointer to :c:type:`struct vb2_queue ` with the queue to which this driver belongs.h](h pointer to }(hjHhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjRh]hstruct vb2_queue}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjHubh- with the queue to which this driver belongs.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjohKhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhj&ubj)}(h#``index`` id number of the buffer. h](j)}(h ``index``h]j)}(hjh]hindex}(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]jh)}(hid number of the buffer.h]hid number of the buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(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]jh)}(h buffer type.h]h buffer type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(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]jh)}(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&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(hK``num_planes`` number of planes in the buffer on an internal driver queue. h](j)}(h``num_planes``h]j)}(hj7h]h num_planes}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhj1ubj)}(hhh]jh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhKhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhKhj&ubj)}(h%``timestamp`` frame timestamp in ns. h](j)}(h ``timestamp``h]j)}(hjqh]h timestamp}(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.hhKhjkubj)}(hhh]jh)}(hframe timestamp in ns.h]hframe timestamp in ns.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(h8``request`` the request this buffer is associated with. h](j)}(h ``request``h]j)}(hjh]hrequest}(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]jh)}(h+the request this buffer is associated with.h]h+the request this buffer is associated with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(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]jh)}(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&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_ops (C struct) c.vb2_opshNtauh1hhhhhhNhNubh)}(hhh](j)}(hvb2_opsh]j)}(hstruct vb2_opsh](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8hhhjIhMubj1)}(hvb2_opsh]j7)}(hj6h]hvb2_ops}(hj\hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjXubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj8hhhjIhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj4hhhjIhMubah}(h]j/ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjIhMhj1hhubjc)}(hhh]jh)}(hdriver-specific callbacks.h]hdriver-specific callbacks.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMHhj{hhubah}(h]h ]h"]h$]h&]uh1jbhj1hhhjIhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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[]); 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``. ``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. **Description** These operations are not called from interrupt context except where mentioned specifically.h](j+)}(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[]); 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](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMLhjubjN)}(hXstruct vb2_ops { int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]); 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]hXstruct vb2_ops { int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]); 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&]hhuh1jMhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMLhjubjh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM]hjubj)}(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]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMbhjubj)}(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)}(hjAh]hbuf_out_validate}(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.hhMfhj;ubj)}(hhh]jh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMchjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMfhjubj)}(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)}(hj{h]hbuf_init}(hj}hhhNhNubah}(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.hhMkhjuubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMghjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubj)}(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.hhMshjubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMlhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(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)}(hjh]h buf_finish}(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]jh)}(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: }(hjhhhNhNubj)}(h``DONE``h]hDONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h ``ERROR``h]hERROR}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ occur while streaming is in progress, and the }(hjhhhNhNubj)}(h ``PREPARED``h]hPREPARED}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhk state occurs when the queue has been canceled and all pending buffers are being returned to their default }(hjhhhNhNubj)}(h ``DEQUEUED``h]hDEQUEUED}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@ state. Typically you only have to do something if the state is }(hjhhhNhNubj)}(h``VB2_BUF_STATE_DONE``h]hVB2_BUF_STATE_DONE}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF, since in all other cases the buffer contents will be ignored anyway.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.hhMhj}ubj)}(hhh]jh)}(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&]uh1jghm/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&]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]jh)}(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 }(hjhhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is called. Optional.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/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&]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]jh)}(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 }(hj"hhhNhNubj)}(h **buf_queue**h]h buf_queue}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh callback before }(hj"hhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh 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 }(hj"hhhNhNubj)}(h **buf_queue**h]h buf_queue}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhM callback are to be returned by the driver by calling vb2_buffer_done() with }(hj"hhhNhNubj)}(h``VB2_BUF_STATE_QUEUED``h]hVB2_BUF_STATE_QUEUED}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhS. If you need a minimum number of buffers before you can start streaming, then set }(hj"hhhNhNubh)}(h3:c:type:`vb2_queue->min_queued_buffers `h]j)}(hjth]hvb2_queue->min_queued_buffers}(hjvhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj"ubh. If that is non-zero then }(hj"hhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhU won’t be called until at least that many buffers have been queued up by userspace.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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]jh)}(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 }(hjhhhNhNubh)}(h:c:type:`buf_queue`h]j)}(hjh]h buf_queue}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj buf_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubh3 callback by calling vb2_buffer_done() with either }(hjhhhNhNubj)}(h``VB2_BUF_STATE_DONE``h]hVB2_BUF_STATE_DONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h``VB2_BUF_STATE_ERROR``h]hVB2_BUF_STATE_ERROR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-; may use vb2_wait_for_all_buffers() function}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hjAh]hunprepare_streaming}(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.hhMhj;ubj)}(hhh]jh)}(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 }(hjZhhhNhNubj)}(h**prepare_streaming**h]hprepare_streaming}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh; 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.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(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]jh)}(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&]uh1jghm/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)}(hjh]hbuf_request_complete}(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]jh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubjh)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buf_ops (C struct) c.vb2_buf_opshNtauh1hhhhhhNhNubh)}(hhh](j)}(h vb2_buf_opsh]j)}(hstruct vb2_buf_opsh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMOubj )}(h h]h }(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVhhhjghMOubj1)}(h vb2_buf_opsh]j7)}(hjTh]h vb2_buf_ops}(hjzhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjvubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjVhhhjghMOubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjRhhhjghMOubah}(h]jMah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjghMOhjOhhubjc)}(hhh]jh)}(hdriver-specific callbacks.h]hdriver-specific callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jbhjOhhhjghMOubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](j+)}(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); }; h](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubjN)}(hXgstruct 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]hXgstruct 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); };}hjsbah}(h]h ]h"]h$]h&]hhuh1jMhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjubjh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hjh]hverify_planes_array}(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.hhMhj ubj)}(hhh]jh)}(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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/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(hMhj ubj)}(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)}(hjMh]h init_buffer}(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.hhMhjGubj)}(hhh]jh)}(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 }(hjfhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjph]h vb2_buffer}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfubhG initialize the extra data after struct vb2_buffer. For V4L2 this is a }(hjfhhhNhNubh)}(h2:c:type:`struct vb2_v4l2_buffer `h]j)}(hjh]hstruct vb2_v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_v4l2_bufferuh1hhjhMhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubj)}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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)}(hjh]hstruct v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhj hMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(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)}(hjMh]hfill_vb2_buffer}(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.hhMhjGubj)}(hhh]jh)}(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 }(hjfhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjph]h vb2_buffer}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjfubhK. If the userspace structure is invalid, then this op will return an error.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubj)}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhjhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue (C struct) c.vb2_queuehNtauh1hhhhhhNhNubh)}(hhh](j)}(h vb2_queueh]j)}(hstruct vb2_queueh](j)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]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 }(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"hhhj3hMubj1)}(h vb2_queueh]j7)}(hj h]h vb2_queue}(hjFhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjBubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj"hhhj3hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhj3hMubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj3hMhjhhubjc)}(hhh]jh)}(ha videobuf2 queue.h]ha videobuf2 queue.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjehhubah}(h]h ]h"]h$]h&]uh1jbhjhhhj3hMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX **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 must set this to a mutex to let the v4l2 core serialize the queuing ioctls. This lock is used when waiting for a new buffer to arrive: the lock is released, we wait for the new buffer, and then retaken. ``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](j+)}(hX**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]; }; h](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubjN)}(hXKstruct 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]hXKstruct 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&]hhuh1jMhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjubjh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(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]jh)}(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)}(hjh]henum v4l2_buf_type}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjhMhjubah}(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&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj6ubj)}(hhh]jh)}(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)}(hj_h]henum vb2_io_modes}(hjahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_io_modesuh1hhjQhMhjUubh).}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(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]jh)}(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&]uh1jghm/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]jh)}(h"DMA attributes to use for the DMA.h]h"DMA attributes to use for the DMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(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)}(hjh]h bidirectional}(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]jh)}(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 }(hj6hhhNhNubj)}(h``DMA_BIDIRECTIONAL``h]hDMA_BIDIRECTIONAL}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubhn direction. This is useful in cases where the hardware (firmware) writes to a buffer which is mapped as read (}(hj6hhhNhNubj)}(h``DMA_TO_DEVICE``h]h DMA_TO_DEVICE}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh3), or reads from buffer which is mapped for write (}(hj6hhhNhNubj)}(h``DMA_FROM_DEVICE``h]hDMA_FROM_DEVICE}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubhX) 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubj)}(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]jh)}(h)report EOF after reading the first bufferh]h)report EOF after reading the first buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(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]jh)}(h$queue buffer after each write() callh]h$queue buffer after each write() call}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(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}(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]jh)}(h/allow bytesused == 0 to be passed to the driverh]h/allow bytesused == 0 to be passed to the driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hj8h]h)quirk_poll_must_check_waiting_for_buffers}(hj:hhhNhNubah}(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.hhMhj2ubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(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.hhMhj~ubj)}(hhh]jh)}(h$this queue supports the Request API.h]h$this queue supports the Request API.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(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]jh)}(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&]uh1jghm/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]jh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hj1h]h uses_requests}(hj3hhhNhNubah}(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]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(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)}(hjkh]hallow_cache_hints}(hjmhhhNhNubah}(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.hhMhjeubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.hhMhjubj)}(hhh]jh)}(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&]uh1jghm/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,``lock`` pointer to a mutex that protects the :c:type:`struct vb2_queue `. The driver must set this to a mutex to let the v4l2 core serialize the queuing ioctls. This lock is used when waiting for a new buffer to arrive: the lock is released, we wait for the new buffer, and then retaken. h](j)}(h``lock``h]j)}(hjh]hlock}(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]jh)}(hX"pointer to a mutex that protects the :c:type:`struct vb2_queue `. The driver must set this to a mutex to let the v4l2 core serialize the queuing ioctls. This lock is used when waiting for a new buffer to arrive: the lock is released, we wait for the new buffer, and then retaken.h](h%pointer to a mutex that protects the }(hjhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj h]hstruct vb2_queue}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubh. The driver must set this to a mutex to let the v4l2 core serialize the queuing ioctls. This lock is used when waiting for a new buffer to arrive: the lock is released, we wait for the new buffer, and then retaken.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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 hj6 ubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjR ubah}(h]h ]h"]h$]h&]uh1jhj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hM hjubj)}(h"``ops`` driver-specific callbacks h](j)}(h``ops``h]j)}(hjv h]hops}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hjp ubj)}(hhh]jh)}(hdriver-specific callbacksh]hdriver-specific callbacks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjp ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(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.hhM hj ubj)}(hhh]jh)}(h#memory allocator specific callbacksh]h#memory allocator specific callbacks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(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]jh)}(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&]uh1jghm/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 hMhjubj)}(h"``drv_priv`` driver private data. h](j)}(h ``drv_priv``h]j)}(hj"!h]hdrv_priv}(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]jh)}(hdriver private data.h]hdriver private data.}(hj;!hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj7!hMhj8!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj7!hMhjubj)}(h_``subsystem_flags`` Flags specific to the subsystem (V4L2/DVB/etc.). Not used by the vb2 core. h](j)}(h``subsystem_flags``h]j)}(hj[!h]hsubsystem_flags}(hj]!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY!ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjU!ubj)}(hhh]jh)}(hJFlags specific to the subsystem (V4L2/DVB/etc.). Not used by the vb2 core.h]hJFlags specific to the subsystem (V4L2/DVB/etc.). Not used by the vb2 core.}(hjt!hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjq!ubah}(h]h ]h"]h$]h&]uh1jhjU!ubeh}(h]h ]h"]h$]h&]uh1jhjp!hMhjubj)}(hX``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). h](j)}(h``buf_struct_size``h]j)}(hj!h]hbuf_struct_size}(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]jh)}(hXwsize 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).h](hsize 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 }(hj!hhhNhNubj)}(h"``sizeof(struct vb2_v4l2_buffer)``h]hsizeof(struct vb2_v4l2_buffer)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh). The first field of the driver-specific buffer structure must be the subsystem-specific struct (vb2_v4l2_buffer in the case of V4L2).}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/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)}(hf``timestamp_flags`` Timestamp flags; ``V4L2_BUF_FLAG_TIMESTAMP_*`` and ``V4L2_BUF_FLAG_TSTAMP_SRC_*`` h](j)}(h``timestamp_flags``h]j)}(hj!h]htimestamp_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.hhMhj!ubj)}(hhh]jh)}(hQTimestamp flags; ``V4L2_BUF_FLAG_TIMESTAMP_*`` and ``V4L2_BUF_FLAG_TSTAMP_SRC_*``h](hTimestamp flags; }(hj!hhhNhNubj)}(h``V4L2_BUF_FLAG_TIMESTAMP_*``h]hV4L2_BUF_FLAG_TIMESTAMP_*}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh and }(hj!hhhNhNubj)}(h``V4L2_BUF_FLAG_TSTAMP_SRC_*``h]hV4L2_BUF_FLAG_TSTAMP_SRC_*}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jghm/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``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. h](j)}(h ``gfp_flags``h]j)}(hj;"h]h gfp_flags}(hj="hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9"ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj5"ubj)}(hhh]jh)}(hadditional 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.h](h_additional gfp flags used when allocating the buffers. Typically this is 0, but it may be e.g. }(hjT"hhhNhNubj)}(h ``GFP_DMA``h]hGFP_DMA}(hj\"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT"ubh or }(hjT"hhhNhNubj)}(h``__GFP_DMA32``h]h __GFP_DMA32}(hjn"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT"ubh: to force the buffer allocation to a specific memory zone.}(hjT"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjQ"ubah}(h]h ]h"]h$]h&]uh1jhj5"ubeh}(h]h ]h"]h$]h&]uh1jhjP"hMhjubj)}(hX``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. h](j)}(h``min_queued_buffers``h]j)}(hj"h]hmin_queued_buffers}(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]jh)}(hXjthe 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.h](h3the minimum number of queued buffers needed before }(hj"hhhNhNubj)}(h**start_streaming**h]hstart_streaming}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh 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 }(hj"hhhNhNubj)}(h**min_queued_buffers**h]hmin_queued_buffers}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhh + 1 buffers will be allocated. Note that VIDIOC_CREATE_BUFS will not modify the requested buffer count.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/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"hM$hjubj)}(hX``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. 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.hhM0hj"ubj)}(hhh]jh)}(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 }(hj#hhhNhNubj)}(h*not*h]hnot}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#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 }(hj#hhhNhNubj)}(h**min_reqbufs_allocation**h]hmin_reqbufs_allocation}(hj*#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh must be larger than }(hj#hhhNhNubj)}(h**min_queued_buffers**h]hmin_queued_buffers}(hj<#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#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.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/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 #hM0hjubj)}(h_``alloc_devs`` :c:type:`struct device ` memory type/allocator-specific per-plane deviceh](j)}(h``alloc_devs``h]j)}(hjg#h]h alloc_devs}(hji#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje#ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM0hja#ubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdeviceuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM1hj#ubh0 memory type/allocator-specific per-plane device}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj#hM1hj}#ubah}(h]h ]h"]h$]h&]uh1jhja#ubeh}(h]h ]h"]h$]h&]uh1jhj|#hM0hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)vb2_queue_allows_cache_hints (C function)c.vb2_queue_allows_cache_hintshNtauh1hhhhhhNhNubh)}(hhh](j)}(h7bool vb2_queue_allows_cache_hints (struct vb2_queue *q)h]j)}(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 ]j,ah"]h$]h&]uh1jhj#hhhj#hMubj1)}(hvb2_queue_allows_cache_hintsh]j7)}(hvb2_queue_allows_cache_hintsh]hvb2_queue_allows_cache_hints}(hj$hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj$ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj#hhhj#hMubhdesc_parameterlist)}(h(struct vb2_queue *q)h]hdesc_parameter)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj$$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj $ubj )}(h h]h }(hj1$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj $ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjB$hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj?$ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjD$modnameN classnameNjj)}j]j ASTIdentifier)}jX$j$sbc.vb2_queue_allows_cache_hintsasbuh1hhj $ubj )}(h h]h }(hje$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj $ubhdesc_sig_punctuation)}(h*h]h*}(hju$hhhNhNubah}(h]h ]pah"]h$]h&]uh1js$hj $ubj7)}(hqh]hq}(hj$hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj $ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj$ubah}(h]h ]h"]h$]h&]hhuh1j$hj#hhhj#hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj#hhhj#hMubah}(h]j#ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj#hMhj#hhubjc)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$hhubah}(h]h ]h"]h$]h&]uh1jbhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhhhNhNubj)}(hp**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](jh)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hj%hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj%h]hstruct vb2_queue}(hj%hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghj/%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&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane_vaddr (C function)c.vb2_plane_vaddrhNtauh1hhhhhhNhNubh)}(hhh](j)}(hEvoid * vb2_plane_vaddr (struct vb2_buffer *vb, unsigned int plane_no)h]j)}(hCvoid *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no)h](j#)}(hvoidh]hvoid}(hjl%hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjh%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 ]j,ah"]h$]h&]uh1jhjh%hhhjz%hMubjt$)}(hjw$h]h*}(hj%hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjh%hhhjz%hMubj1)}(hvb2_plane_vaddrh]j7)}(hvb2_plane_vaddrh]hvb2_plane_vaddr}(hj%hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj%ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjh%hhhjz%hMubj$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj )}(h h]h }(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hj%hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj%modnameN classnameNjj)}j]j`$)}jX$j%sbc.vb2_plane_vaddrasbuh1hhj%ubj )}(h h]h }(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubjt$)}(hjw$h]h*}(hj&hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj%ubj7)}(hvbh]hvb}(hj&hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj%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 }(hj6&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$&ubj#)}(hinth]hint}(hjD&hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj$&ubj )}(h h]h }(hjR&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$&ubj7)}(hplane_noh]hplane_no}(hj`&hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj$&ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj%ubeh}(h]h ]h"]h$]h&]hhuh1j$hjh%hhhjz%hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjd%hhhjz%hMubah}(h]j_%ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjz%hMhja%hhubjc)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&hhubah}(h]h ]h"]h$]h&]uh1jbhja%hhhjz%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghj '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)}(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]jh)}(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&]uh1jghj='hMhj>'ubah}(h]h ]h"]h$]h&]uh1jhj"'ubeh}(h]h ]h"]h$]h&]uh1jhj='hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubjh)}(h**Description**h]j)}(hjc'h]h Description}(hje'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja'ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&ubjh)}(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.}(hjy'hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane_cookie (C function)c.vb2_plane_cookiehNtauh1hhhhhhNhNubh)}(hhh](j)}(hFvoid * vb2_plane_cookie (struct vb2_buffer *vb, unsigned int plane_no)h]j)}(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 ]j,ah"]h$]h&]uh1jhj'hhhj'hMubjt$)}(hjw$h]h*}(hj'hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj'hhhj'hMubj1)}(hvb2_plane_cookieh]j7)}(hvb2_plane_cookieh]hvb2_plane_cookie}(hj'hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj'ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj'hhhj'hMubj$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj )}(h h]h }(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'ubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hj(hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj (ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj(modnameN classnameNjj)}j]j`$)}jX$j'sbc.vb2_plane_cookieasbuh1hhj'ubj )}(h h]h }(hj0(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'ubjt$)}(hjw$h]h*}(hj>(hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj'ubj7)}(hvbh]hvb}(hjK(hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj'ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj'ubj$)}(hunsigned int plane_noh](j#)}(hunsignedh]hunsigned}(hjd(hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj`(ubj )}(h h]h }(hjr(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`(ubj#)}(hinth]hint}(hj(hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj`(ubj )}(h h]h }(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`(ubj7)}(hplane_noh]hplane_no}(hj(hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj`(ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj'ubeh}(h]h ]h"]h$]h&]hhuh1j$hj'hhhj'hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj'hhhj'hMubah}(h]j'ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj'hMhj'hhubjc)}(hhh]jh)}(h5Return allocator specific cookie for the given plane.h]h5Return allocator specific cookie for the given plane.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jbhj'hhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj()ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjG)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)}(hjd)h]hunsigned int plane_no}(hjf)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb)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]jh)}(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&]uh1jghjy)hMhjz)ubah}(h]h ]h"]h$]h&]uh1jhj^)ubeh}(h]h ]h"]h$]h&]uh1jhjy)hMhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(ubjh)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj(ubjh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer_done (C function)c.vb2_buffer_donehNtauh1hhhhhhNhNubh)}(hhh](j)}(hIvoid vb2_buffer_done (struct vb2_buffer *vb, enum vb2_buffer_state state)h]j)}(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 ]j,ah"]h$]h&]uh1jhj)hhhj)hMubj1)}(hvb2_buffer_doneh]j7)}(hvb2_buffer_doneh]hvb2_buffer_done}(hj*hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj*ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj)hhhj)hMubj$)}(h4(struct vb2_buffer *vb, enum vb2_buffer_state state)h](j$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hj!*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*ubj )}(h h]h }(hj.*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*ubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hj?*hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj<*ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjA*modnameN classnameNjj)}j]j`$)}jX$j*sbc.vb2_buffer_doneasbuh1hhj*ubj )}(h h]h }(hj_*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*ubjt$)}(hjw$h]h*}(hjm*hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj*ubj7)}(hvbh]hvb}(hjz*hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj*ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj*ubj$)}(henum vb2_buffer_state stateh](j)}(hjh]henum}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*ubj )}(h h]h }(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*ubh)}(hhh]j7)}(hvb2_buffer_stateh]hvb2_buffer_state}(hj*hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj*modnameN classnameNjj)}j]j[*c.vb2_buffer_doneasbuh1hhj*ubj )}(h h]h }(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*ubj7)}(hstateh]hstate}(hj*hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj*ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj*ubeh}(h]h ]h"]h$]h&]hhuh1j$hj)hhhj)hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj)hhhj)hMubah}(h]j)ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj)hMhj)hhubjc)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1jbhj)hhhj)hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj)+h]h Parameters}(hj++hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'+ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj#+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]jh)}(h?pointer to :c:type:`struct vb2_buffer ` to be used.h](h pointer to }(hja+hhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hjk+h]hstruct vb2_buffer}(hjm+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhji+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj]+hMhja+ubh to be used.}(hja+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj]+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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj?+ubeh}(h]h ]h"]h$]h&]uh1jhj#+ubjh)}(h**Description**h]j)}(hj9,h]h Description}(hj;,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7,ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj#+ubjh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjW,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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 ](jjc-typeeh"]h$]h&]uh1jhj{,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhjv,hMhjO,ubh can be passed to this function.}(hjO,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjv,hMhj#+ubjh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghj,hMhj#+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_discard_done (C function)c.vb2_discard_donehNtauh1hhhhhhNhNubh)}(hhh](j)}(h+void vb2_discard_done (struct vb2_queue *q)h]j)}(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 ]j,ah"]h$]h&]uh1jhj,hhhj-hMubj1)}(hvb2_discard_doneh]j7)}(hvb2_discard_doneh]hvb2_discard_done}(hj-hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj-ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj,hhhj-hMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj3-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/-ubj )}(h h]h }(hj@-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/-ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjQ-hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjN-ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjS-modnameN classnameNjj)}j]j`$)}jX$j-sbc.vb2_discard_doneasbuh1hhj/-ubj )}(h h]h }(hjq-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/-ubjt$)}(hjw$h]h*}(hj-hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj/-ubj7)}(hj$h]hq}(hj-hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj/-ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj+-ubah}(h]h ]h"]h$]h&]hhuh1j$hj,hhhj-hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj,hhhj-hMubah}(h]j,ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj-hMhj,hhubjc)}(hhh]jh)}(h#discard all buffers marked as DONE.h]h#discard all buffers marked as DONE.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-hhubah}(h]h ]h"]h$]h&]uh1jbhj,hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj .hMhj.ubh with videobuf2 queue.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj .hMhj .ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj .hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubjh)}(h**Description**h]j)}(hjT.h]h Description}(hjV.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR.ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubjh)}(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.}(hjj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubjh)}(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.}(hjy.hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%vb2_wait_for_all_buffers (C function)c.vb2_wait_for_all_buffershNtauh1hhhhhhNhNubh)}(hhh](j)}(h2int vb2_wait_for_all_buffers (struct vb2_queue *q)h]j)}(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 ]j,ah"]h$]h&]uh1jhj.hhhj.hMubj1)}(hvb2_wait_for_all_buffersh]j7)}(hvb2_wait_for_all_buffersh]hvb2_wait_for_all_buffers}(hj.hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj.ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj.hhhj.hMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj )}(h h]h }(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj/hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj/modnameN classnameNjj)}j]j`$)}jX$j.sbc.vb2_wait_for_all_buffersasbuh1hhj.ubj )}(h h]h }(hj#/hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubjt$)}(hjw$h]h*}(hj1/hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj.ubj7)}(hj$h]hq}(hj>/hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj.ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj.ubah}(h]h ]h"]h$]h&]hhuh1j$hj.hhhj.hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj.hhhj.hMubah}(h]j.ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj.hMhj.hhubjc)}(hhh]jh)}(h-wait until all buffers are given back to vb2.h]h-wait until all buffers are given back to vb2.}(hjg/hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjd/hhubah}(h]h ]h"]h$]h&]uh1jbhj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhhhNhNubj)}(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 is intended to be called with all locks taken, for example from :c:type:`vb2_ops->stop_streaming ` callback.h](jh)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj/hMhj/ubh with videobuf2 queue.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubjh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj/ubjh)}(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 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 }(hj0hhhNhNubh)}(h&:c:type:`vb2_ops->buf_queue `h]j)}(hj&0h]hvb2_ops->buf_queue}(hj(0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj$0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj0ubhr are given back to vb2 with vb2_buffer_done(). It is intended to be called with all locks taken, for example from }(hj0hhhNhNubh)}(h+:c:type:`vb2_ops->stop_streaming `h]j)}(hjJ0h]hvb2_ops->stop_streaming}(hjL0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjH0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhjC0hMhj0ubh callback.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjC0hMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_querybuf (C function)c.vb2_core_querybufhNtauh1hhhhhhNhNubh)}(hhh](j)}(hMvoid vb2_core_querybuf (struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h]j)}(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 }(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0hhhj0hMubj1)}(hvb2_core_querybufh]j7)}(hvb2_core_querybufh]hvb2_core_querybuf}(hj0hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj0ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj0hhhj0hMubj$)}(h6(struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj )}(h h]h }(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj0hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj0modnameN classnameNjj)}j]j`$)}jX$j0sbc.vb2_core_querybufasbuh1hhj0ubj )}(h h]h }(hj 1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubjt$)}(hjw$h]h*}(hj1hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj0ubj7)}(hj$h]hq}(hj'1hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj0ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj0ubj$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hj?1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;1ubj )}(h h]h }(hjL1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;1ubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hj]1hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjZ1ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj_1modnameN classnameNjj)}j]j1c.vb2_core_querybufasbuh1hhj;1ubj )}(h h]h }(hj{1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;1ubjt$)}(hjw$h]h*}(hj1hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj;1ubj7)}(hvbh]hvb}(hj1hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj;1ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj0ubj$)}(hvoid *pbh](j#)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj1ubj )}(h h]h }(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ubjt$)}(hjw$h]h*}(hj1hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj1ubj7)}(hpbh]hpb}(hj1hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj1ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj0ubeh}(h]h ]h"]h$]h&]hhuh1j$hj0hhhj0hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj0hhhj0hMubah}(h]j0ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj0hMhj0hhubjc)}(hhh]jh)}(hquery video buffer information.h]hquery video buffer information.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj1hhubah}(h]h ]h"]h$]h&]uh1jbhj0hhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj$2h]h Parameters}(hj&2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"2ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubj)}(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)}(hjC2h]hstruct vb2_queue *q}(hjE2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA2ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj=2ubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj\2hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjf2h]hstruct vb2_queue}(hjh2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjd2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjX2hMhj\2ubh with videobuf2 queue.}(hj\2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjX2hMhjY2ubah}(h]h ]h"]h$]h&]uh1jhj=2ubeh}(h]h ]h"]h$]h&]uh1jhjX2hMhj:2ubj)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj2h]hstruct vb2_buffer *vb}(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.hhMhj2ubj)}(hhh]jh)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hj2hhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hj2h]h vb2_buffer}(hj2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj2hMhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj:2ubj)}(h2``void *pb`` buffer struct passed from userspace. h](j)}(h ``void *pb``h]j)}(hj2h]hvoid *pb}(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.hhMhj2ubj)}(hhh]jh)}(h$buffer struct passed from userspace.h]h$buffer struct passed from userspace.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj:2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubjh)}(h**Description**h]j)}(hj63h]h Description}(hj83hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj43ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjh)}(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 }(hjL3hhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjT3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL3ubh.}(hjL3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjh)}(h,The passed buffer should have been verified.h]h,The passed buffer should have been verified.}(hjm3hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjh)}(h?This function fills the relevant information for the userspace.h]h?This function fills the relevant information for the userspace.}(hj|3hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjh)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_reqbufs (C function)c.vb2_core_reqbufshNtauh1hhhhhhNhNubh)}(hhh](j)}(hkint vb2_core_reqbufs (struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count)h]j)}(hjint vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count)h](j#)}(hinth]hint}(hj3hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj3hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM ubj )}(h h]h }(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3hhhj3hM ubj1)}(hvb2_core_reqbufsh]j7)}(hvb2_core_reqbufsh]hvb2_core_reqbufs}(hj3hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj3ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj3hhhj3hM ubj$)}(hV(struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj 4ubj )}(h h]h }(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 4ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj-4hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj*4ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj/4modnameN classnameNjj)}j]j`$)}jX$j3sbc.vb2_core_reqbufsasbuh1hhj 4ubj )}(h h]h }(hjM4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 4ubjt$)}(hjw$h]h*}(hj[4hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj 4ubj7)}(hj$h]hq}(hjh4hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj 4ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj4ubj$)}(henum vb2_memory memoryh](j)}(hjh]henum}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|4ubj )}(h h]h }(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|4ubh)}(hhh]j7)}(h vb2_memoryh]h vb2_memory}(hj4hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj4modnameN classnameNjj)}j]jI4c.vb2_core_reqbufsasbuh1hhj|4ubj )}(h h]h }(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|4ubj7)}(hmemoryh]hmemory}(hj4hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj|4ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj4ubj$)}(hunsigned int flagsh](j#)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj4ubj )}(h h]h }(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj#)}(hinth]hint}(hj4hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj4ubj )}(h h]h }(hj 5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj7)}(hflagsh]hflags}(hj5hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj4ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj4ubj$)}(hunsigned int *counth](j#)}(hunsignedh]hunsigned}(hj45hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj05ubj )}(h h]h }(hjB5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj05ubj#)}(hinth]hint}(hjP5hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj05ubj )}(h h]h }(hj^5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj05ubjt$)}(hjw$h]h*}(hjl5hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj05ubj7)}(hcounth]hcount}(hjy5hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj05ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj4ubeh}(h]h ]h"]h$]h&]hhuh1j$hj3hhhj3hM ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj3hhhj3hM ubah}(h]j3ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj3hM hj3hhubjc)}(hhh]jh)}(hInitiate streaming.h]hInitiate streaming.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj5hhubah}(h]h ]h"]h$]h&]uh1jbhj3hhhj3hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj5ubj)}(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)}(hj5h]hstruct vb2_queue *q}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj5ubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj5hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj6h]hstruct vb2_queue}(hj 6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj5hMhj5ubh with videobuf2 queue.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubj)}(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@6h]henum vb2_memory memory}(hjB6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>6ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj:6ubj)}(hhh]jh)}(hBmemory type, as defined by :c:type:`enum vb2_memory `.h](hmemory type, as defined by }(hjY6hhhNhNubh)}(h&:c:type:`enum vb2_memory `h]j)}(hjc6h]henum vb2_memory}(hje6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhja6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_memoryuh1hhjU6hMhjY6ubh.}(hjY6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjU6hMhjV6ubah}(h]h ]h"]h$]h&]uh1jhj:6ubeh}(h]h ]h"]h$]h&]uh1jhjU6hMhj5ubj)}(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)}(hj6h]hunsigned int flags}(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]jh)}(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 }(hj6hhhNhNubj)}(h!``V4L2_MEMORY_FLAG_NON_COHERENT``h]hV4L2_MEMORY_FLAG_NON_COHERENT}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(h0``unsigned int *count`` requested buffer count. h](j)}(h``unsigned int *count``h]j)}(hj6h]hunsigned int *count}(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]jh)}(hrequested buffer count.h]hrequested buffer count.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubjh)}(h**Description**h]j)}(hj#7h]h Description}(hj%7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!7ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj5ubjh)}(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 }(hj97hhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjA7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj97ubh.}(hj97hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj5ubjh)}(hThis function:h]hThis function:}(hjZ7hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj5ubj)}(hhh](j)}(h8verifies streaming parameters passed from the userspace;h]jh)}(hjn7h]h8verifies streaming parameters passed from the userspace;}(hjp7hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjl7ubah}(h]h ]h"]h$]h&]uh1jhji7ubj)}(hsets up the queue;h]jh)}(hj7h]hsets up the queue;}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhji7ubj)}(h_negotiates number of buffers and planes per buffer with the driver to be used during streaming;h]jh)}(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;}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhji7ubj)}(htallocates internal buffer structures (:c:type:`struct vb2_buffer `), according to the agreed parameters;h]jh)}(htallocates internal buffer structures (:c:type:`struct vb2_buffer `), according to the agreed parameters;h](h&allocates internal buffer structures (}(hj7hhhNhNubh)}(h(:c:type:`struct vb2_buffer `h]j)}(hj7h]hstruct vb2_buffer}(hj7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubh&), according to the agreed parameters;}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhji7ubj)}(hfor MMAP memory type, allocates actual video memory, using the memory handling/allocation routines provided during queue initialization. h]jh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhji7ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj5ubjh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM!hj5ubjh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM#hj5ubjh)}(h **Return**h]j)}(hj08h]hReturn}(hj28hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.8ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM&hj5ubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjF8hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM'hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_core_create_bufs (C function)c.vb2_core_create_bufshNtauh1hhhhhhNhNubh)}(hhh](j)}(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)}(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}(hju8hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjq8hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM-ubj )}(h h]h }(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjq8hhhj8hM-ubj1)}(hvb2_core_create_bufsh]j7)}(hvb2_core_create_bufsh]hvb2_core_create_bufs}(hj8hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj8ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjq8hhhj8hM-ubj$)}(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](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj )}(h h]h }(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj8hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj8modnameN classnameNjj)}j]j`$)}jX$j8sbc.vb2_core_create_bufsasbuh1hhj8ubj )}(h h]h }(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8ubjt$)}(hjw$h]h*}(hj8hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj8ubj7)}(hj$h]hq}(hj 9hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubj$)}(henum vb2_memory memoryh](j)}(hjh]henum}(hj#9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj )}(h h]h }(hj09hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubh)}(hhh]j7)}(h vb2_memoryh]h vb2_memory}(hjA9hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj>9ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjC9modnameN classnameNjj)}j]j8c.vb2_core_create_bufsasbuh1hhj9ubj )}(h h]h }(hj_9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj7)}(hmemoryh]hmemory}(hjm9hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj9ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubj$)}(hunsigned int flagsh](j#)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj9ubj )}(h h]h }(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj#)}(hinth]hint}(hj9hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj9ubj )}(h h]h }(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj7)}(hflagsh]hflags}(hj9hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj9ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubj$)}(hunsigned int *counth](j#)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj9ubj )}(h h]h }(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj#)}(hinth]hint}(hj9hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj9ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubjt$)}(hjw$h]h*}(hj:hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj9ubj7)}(hcounth]hcount}(hj:hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj9ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubj$)}(hunsigned int requested_planesh](j#)}(hunsignedh]hunsigned}(hj5:hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj1:ubj )}(h h]h }(hjC:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1:ubj#)}(hinth]hint}(hjQ:hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj1:ubj )}(h h]h }(hj_:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1:ubj7)}(hrequested_planesh]hrequested_planes}(hjm:hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj1:ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubj$)}(h$const unsigned int requested_sizes[]h](j)}(hconsth]hconst}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj#)}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj:ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj#)}(hinth]hint}(hj:hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj:ubj )}(h h]h }(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj7)}(hrequested_sizesh]hrequested_sizes}(hj:hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj:ubjt$)}(h[h]h[}(hj:hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj:ubjt$)}(h]h]h]}(hj:hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubj$)}(hunsigned int *first_indexh](j#)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj ;ubj )}(h h]h }(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ;ubj#)}(hinth]hint}(hj+;hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj ;ubj )}(h h]h }(hj9;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ;ubjt$)}(hjw$h]h*}(hjG;hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj ;ubj7)}(h first_indexh]h first_index}(hjT;hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj ;ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubeh}(h]h ]h"]h$]h&]hhuh1j$hjq8hhhj8hM-ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjm8hhhj8hM-ubah}(h]jh8ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj8hM-hjj8hhubjc)}(hhh]jh)}(h3Allocate buffers and any required auxiliary structsh]h3Allocate buffers and any required auxiliary structs}(hj~;hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM-hj{;hhubah}(h]h ]h"]h$]h&]uh1jbhjj8hhhj8hM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM1hj;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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj;hM.hj;ubh with videobuf2 queue.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj;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]jh)}(hBmemory type, as defined by :c:type:`enum vb2_memory `.h](hmemory type, as defined by }(hj4<hhhNhNubh)}(h&:c:type:`enum vb2_memory `h]j)}(hj><h]henum vb2_memory}(hj@<hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj<<ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_memoryuh1hhj0<hM/hj4<ubh.}(hj4<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj0<hM/hj1<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj0<hM/hj;ubj)}(h@``unsigned int flags`` auxiliary queue/buffer management flags. h](j)}(h``unsigned int flags``h]j)}(hjw<h]hunsigned int flags}(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.hhM0hjq<ubj)}(hhh]jh)}(h(auxiliary queue/buffer management flags.h]h(auxiliary queue/buffer management flags.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj<hM0hj<ubah}(h]h ]h"]h$]h&]uh1jhjq<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM0hj;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.hhM1hj<ubj)}(hhh]jh)}(hrequested buffer count.h]hrequested buffer count.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj<hM1hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM1hj;ubj)}(h>``unsigned int requested_planes`` number of planes requested. h](j)}(h!``unsigned int requested_planes``h]j)}(hj<h]hunsigned int requested_planes}(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.hhM2hj<ubj)}(hhh]jh)}(hnumber of planes requested.h]hnumber of planes requested.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj<hM2hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM2hj;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.hhM3hj=ubj)}(hhh]jh)}(h"array with the size of the planes.h]h"array with the size of the planes.}(hj;=hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj7=hM3hj8=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj7=hM3hj;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&]uh1jhjY=ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM5hjU=ubj)}(hhh]jh)}(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]}(hjt=hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM4hjq=ubah}(h]h ]h"]h$]h&]uh1jhjU=ubeh}(h]h ]h"]h$]h&]uh1jhjp=hM5hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubjh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM7hj;ubjh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM6hj;ubjh)}(hThis function:h]hThis function:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM:hj;ubj)}(hhh](j)}(hverifies parameter sanity;h]jh)}(hj=h]hverifies parameter sanity;}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/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=ubj)}(hCcalls the :c:type:`vb2_ops->queue_setup ` queue operation;h]jh)}(hj=h](h calls the }(hj=hhhNhNubh)}(h(:c:type:`vb2_ops->queue_setup `h]j)}(hj>h]hvb2_ops->queue_setup}(hj>hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM=hj=ubh queue operation;}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj">hM=hj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(h+performs any necessary memory allocations. h]jh)}(h*performs any necessary memory allocations.h]h*performs any necessary memory allocations.}(hj7>hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM>hj3>ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj;ubjh)}(h **Return**h]j)}(hjT>h]hReturn}(hjV>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR>ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM@hj;ubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMAhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_core_prepare_buf (C function)c.vb2_core_prepare_bufhNtauh1hhhhhhNhNubh)}(hhh](j)}(hOint vb2_core_prepare_buf (struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h]j)}(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 ]j,ah"]h$]h&]uh1jhj>hhhj>hMJubj1)}(hvb2_core_prepare_bufh]j7)}(hvb2_core_prepare_bufh]hvb2_core_prepare_buf}(hj>hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj>ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj>hhhj>hMJubj$)}(h6(struct vb2_queue *q, struct vb2_buffer *vb, void *pb)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj )}(h h]h }(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj>hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj>modnameN classnameNjj)}j]j`$)}jX$j>sbc.vb2_core_prepare_bufasbuh1hhj>ubj )}(h h]h }(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>ubjt$)}(hjw$h]h*}(hj"?hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj>ubj7)}(hj$h]hq}(hj/?hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj>ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj>ubj$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hjG?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjC?ubj )}(h h]h }(hjT?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjC?ubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hje?hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjb?ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjg?modnameN classnameNjj)}j]j?c.vb2_core_prepare_bufasbuh1hhjC?ubj )}(h h]h }(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjC?ubjt$)}(hjw$h]h*}(hj?hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjC?ubj7)}(hvbh]hvb}(hj?hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjC?ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj>ubj$)}(hvoid *pbh](j#)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj?ubj )}(h h]h }(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubjt$)}(hjw$h]h*}(hj?hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj?ubj7)}(hpbh]hpb}(hj?hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj?ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj>ubeh}(h]h ]h"]h$]h&]hhuh1j$hj>hhhj>hMJubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj>hhhj>hMJubah}(h]j>ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj>hMJhj>hhubjc)}(hhh]jh)}(h8Pass ownership of a buffer from userspace to the kernel.h]h8Pass ownership of a buffer from userspace to the kernel.}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMJhj@hhubah}(h]h ]h"]h$]h&]uh1jbhj>hhhj>hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"@jj"@jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj,@h]h Parameters}(hj.@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*@ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhj&@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)}(hjK@h]hstruct vb2_queue *q}(hjM@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI@ubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMLhjE@ubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjd@hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjn@h]hstruct vb2_queue}(hjp@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjl@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj`@hMLhjd@ubh with videobuf2 queue.}(hjd@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj`@hMLhja@ubah}(h]h ]h"]h$]h&]uh1jhjE@ubeh}(h]h ]h"]h$]h&]uh1jhj`@hMLhjB@ubj)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. 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.hhMMhj@ubj)}(hhh]jh)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hj@hhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hj@h]h vb2_buffer}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj@hMMhj@ubh.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj@hMMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMMhjB@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)}(hjAh]hvoid *pb}(hjAhhhNhNubah}(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.hhMOhj@ubj)}(hhh]jh)}(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)}(hj&Ah]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hj(AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj$Aubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMNhjAubh handler in driver.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjCAhMNhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhMOhjB@ubeh}(h]h ]h"]h$]h&]uh1jhj&@ubjh)}(h**Description**h]j)}(hjbAh]h Description}(hjdAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Aubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMQhj&@ubjh)}(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 }(hjxAhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxAubh.}(hjxAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMPhj&@ubjh)}(h,The passed buffer should have been verified.h]h,The passed buffer should have been verified.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMThj&@ubjh)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMVhj&@ubjh)}(h **Return**h]j)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMZhj&@ubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM[hj&@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_core_remove_bufs (C function)c.vb2_core_remove_bufshNtauh1hhhhhhNhNubh)}(hhh](j)}(hVint vb2_core_remove_bufs (struct vb2_queue *q, unsigned int start, unsigned int count)h]j)}(hUint vb2_core_remove_bufs(struct vb2_queue *q, unsigned int start, unsigned int count)h](j#)}(hinth]hint}(hjAhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjAhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM`ubj )}(h h]h }(hj BhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAhhhj BhM`ubj1)}(hvb2_core_remove_bufsh]j7)}(hvb2_core_remove_bufsh]hvb2_core_remove_bufs}(hjBhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjBubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjAhhhj BhM`ubj$)}(h=(struct vb2_queue *q, unsigned int start, unsigned int count)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj;BhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7Bubj )}(h h]h }(hjHBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7Bubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjYBhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjVBubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj[BmodnameN classnameNjj)}j]j`$)}jX$j!Bsbc.vb2_core_remove_bufsasbuh1hhj7Bubj )}(h h]h }(hjyBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7Bubjt$)}(hjw$h]h*}(hjBhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj7Bubj7)}(hj$h]hq}(hjBhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj7Bubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj3Bubj$)}(hunsigned int starth](j#)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjBubj )}(h h]h }(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj#)}(hinth]hint}(hjBhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjBubj )}(h h]h }(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj7)}(hstarth]hstart}(hjBhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjBubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj3Bubj$)}(hunsigned int counth](j#)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjBubj )}(h h]h }(hj ChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj#)}(hinth]hint}(hjChhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjBubj )}(h h]h }(hj'ChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj7)}(hcounth]hcount}(hj5ChhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjBubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj3Bubeh}(h]h ]h"]h$]h&]hhuh1j$hjAhhhj BhM`ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjAhhhj BhM`ubah}(h]jAah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj BhM`hjAhhubjc)}(hhh]h}(h]h ]h"]h$]h&]uh1jbhjAhhhj BhM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhCjjhCjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjrCh]h Parameters}(hjtChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpCubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMdhjlCubj)}(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.hhMahjCubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjChhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjCh]hstruct vb2_queue}(hjChhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjChMahjCubh with videobuf2 queue.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjChMahjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChMahjCubj)}(hF``unsigned int start`` first index of the range of buffers to remove. h](j)}(h``unsigned int start``h]j)}(hjCh]hunsigned int start}(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.hhMbhjCubj)}(hhh]jh)}(h.first index of the range of buffers to remove.h]h.first index of the range of buffers to remove.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjDhMbhjDubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjDhMbhjCubj)}(h4``unsigned int count`` number of buffers to remove. h](j)}(h``unsigned int count``h]j)}(hj&Dh]hunsigned int count}(hj(DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Dubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMchj Dubj)}(hhh]jh)}(hnumber of buffers to remove.h]hnumber of buffers to remove.}(hj?DhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj;DhMchj` 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](jh)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMnhjFubj)}(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&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMlhjFubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjFhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjFh]hstruct vb2_queue}(hjFhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjFhMlhjFubh with videobuf2 queue.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjFhMlhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMlhjFubj)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hj$Gh]hstruct vb2_buffer *vb}(hj&GhhhNhNubah}(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.hhMmhjGubj)}(hhh]jh)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hj=GhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjGGh]h vb2_buffer}(hjIGhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjEGubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhj9GhMmhj=Gubh.}(hj=GhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj9GhMmhj:Gubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhj9GhMmhjFubj)}(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&]uh1jhj~Gubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMohjzGubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMnhjGubah}(h]h ]h"]h$]h&]uh1jhjzGubeh}(h]h ]h"]h$]h&]uh1jhjGhMohjFubj)}(hf``struct media_request *req`` pointer to :c:type:`struct media_request `, may be NULL. h](j)}(h``struct media_request *req``h]j)}(hjGh]hstruct media_request *req}(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.hhMphjGubj)}(hhh]jh)}(hGpointer to :c:type:`struct media_request `, may be NULL.h](h pointer to }(hjGhhhNhNubh)}(h.:c:type:`struct media_request `h]j)}(hjGh]hstruct media_request}(hjGhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj media_requestuh1hhjGhMphjGubh, may be NULL.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjGhMphjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMphjFubeh}(h]h ]h"]h$]h&]uh1jhjFubjh)}(h**Description**h]j)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMrhjFubjh)}(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 }(hj.HhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hj6HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Hubh.}(hj.HhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMqhjFubjh)}(hThis function:h]hThis function:}(hjOHhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMthjFubj)}(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]jh)}(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 }(hjeHhhhNhNubj)}(h**req**h]hreq}(hjmHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeHubh 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.}(hjeHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMvhjaHubah}(h]h ]h"]h$]h&]uh1jhj^Hubj)}(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]jh)}(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)}(hjHh]hvb2_ops->buf_prepare}(hjHhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMzhjHubhg callback in the driver (if provided), in which driver-specific buffer initialization can be performed;}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjHhMzhjHubah}(h]h ]h"]h$]h&]uh1jhj^Hubj)}(hif streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing. h]jh)}(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 }(hjHhhhNhNubh)}(h&:c:type:`vb2_ops->buf_queue `h]j)}(hjHh]hvb2_ops->buf_queue}(hjHhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM}hjHubh callback for processing.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjHhM}hjHubah}(h]h ]h"]h$]h&]uh1jhj^Hubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjFubjh)}(h **Return**h]j)}(hj Ih]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Iubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjFubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hj"IhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_dqbuf (C function)c.vb2_core_dqbufhNtauh1hhhhhhNhNubh)}(hhh](j)}(hZint vb2_core_dqbuf (struct vb2_queue *q, unsigned int *pindex, void *pb, bool nonblocking)h]j)}(hYint vb2_core_dqbuf(struct vb2_queue *q, unsigned int *pindex, void *pb, bool nonblocking)h](j#)}(hinth]hint}(hjQIhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjMIhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj`IhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMIhhhj_IhMubj1)}(hvb2_core_dqbufh]j7)}(hvb2_core_dqbufh]hvb2_core_dqbuf}(hjrIhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjnIubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjMIhhhj_IhMubj$)}(hG(struct vb2_queue *q, unsigned int *pindex, void *pb, bool nonblocking)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubj )}(h h]h }(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjIhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjIubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjImodnameN classnameNjj)}j]j`$)}jX$jtIsbc.vb2_core_dqbufasbuh1hhjIubj )}(h h]h }(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIubjt$)}(hjw$h]h*}(hjIhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjIubj7)}(hj$h]hq}(hjIhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjIubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIubj$)}(hunsigned int *pindexh](j#)}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjIubj )}(h h]h }(hj JhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIubj#)}(hinth]hint}(hjJhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjIubj )}(h h]h }(hj)JhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIubjt$)}(hjw$h]h*}(hj7JhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjIubj7)}(hpindexh]hpindex}(hjDJhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjIubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIubj$)}(hvoid *pbh](j#)}(hvoidh]hvoid}(hj]JhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjYJubj )}(h h]h }(hjkJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYJubjt$)}(hjw$h]h*}(hjyJhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjYJubj7)}(hpbh]hpb}(hjJhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjYJubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIubj$)}(hbool nonblockingh](j#)}(hj#h]hbool}(hjJhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjJubj )}(h h]h }(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubj7)}(h nonblockingh]h nonblocking}(hjJhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjJubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIubeh}(h]h ]h"]h$]h&]hhuh1j$hjMIhhhj_IhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjIIhhhj_IhMubah}(h]jDIah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj_IhMhjFIhhubjc)}(hhh]jh)}(h!Dequeue a buffer to the userspaceh]h!Dequeue a buffer to the userspace}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjJhhubah}(h]h ]h"]h$]h&]uh1jbhjFIhhhj_IhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubj)}(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%Kh]hstruct vb2_queue *q}(hj'KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Kubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubj)}(hhh]jh)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hj>KhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjHKh]hstruct vb2_queue}(hjJKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjFKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj:KhMhj>Kubh with videobuf2 queue}(hj>KhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj:KhMhj;Kubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhj:KhMhjKubj)}(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.hhMhj{Kubj)}(hhh]jh)}(h(pointer to the buffer index. May be NULLh]h(pointer to the buffer index. May be NULL}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhj{Kubeh}(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)}(hjKh]hvoid *pb}(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]jh)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubj)}(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)}(hjKh]hbool nonblocking}(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]jh)}(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.}(hj LhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj Lubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhj LhMhjKubeh}(h]h ]h"]h$]h&]uh1jhjKubjh)}(h**Description**h]j)}(hj0Lh]h Description}(hj2LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Lubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubjh)}(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 }(hjFLhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjNLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFLubh.}(hjFLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubjh)}(hThis function:h]hThis function:}(hjgLhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubj)}(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]jh)}(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,}(hj}LhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjyLubah}(h]h ]h"]h$]h&]uh1jhjvLubj)}(hRthe buffer struct members are filled with relevant information for the userspace. h]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjLubah}(h]h ]h"]h$]h&]uh1jhjvLubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjKubjh)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_streamon (C function)c.vb2_core_streamonhNtauh1hhhhhhNhNubh)}(hhh](j)}(h>int vb2_core_streamon (struct vb2_queue *q, unsigned int type)h]j)}(h=int vb2_core_streamon(struct vb2_queue *q, unsigned int type)h](j#)}(hinth]hint}(hjLhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjLhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLhhhjMhMubj1)}(hvb2_core_streamonh]j7)}(hvb2_core_streamonh]hvb2_core_streamon}(hjMhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjMubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjLhhhjMhMubj$)}(h((struct vb2_queue *q, unsigned int type)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj5MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1Mubj )}(h h]h }(hjBMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1Mubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjSMhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjPMubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjUMmodnameN classnameNjj)}j]j`$)}jX$jMsbc.vb2_core_streamonasbuh1hhj1Mubj )}(h h]h }(hjsMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1Mubjt$)}(hjw$h]h*}(hjMhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj1Mubj7)}(hj$h]hq}(hjMhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj1Mubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj-Mubj$)}(hunsigned int typeh](j#)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjMubj )}(h h]h }(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMubj#)}(hinth]hint}(hjMhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjMubj )}(h h]h }(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMubj7)}(htypeh]htype}(hjMhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjMubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj-Mubeh}(h]h ]h"]h$]h&]hhuh1j$hjLhhhjMhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjLhhhjMhMubah}(h]jLah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjMhMhjLhhubjc)}(hhh]jh)}(hImplements VB2 stream ON logich]hImplements VB2 stream ON logic}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNhhubah}(h]h ]h"]h$]h&]uh1jbhjLhhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Njj Njjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj*Nh]h Parameters}(hj,NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Nubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$Nubj)}(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)}(hjINh]hstruct vb2_queue *q}(hjKNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGNubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjCNubj)}(hhh]jh)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hjbNhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjlNh]hstruct vb2_queue}(hjnNhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjjNubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj^NhMhjbNubh with videobuf2 queue}(hjbNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj^NhMhj_Nubah}(h]h ]h"]h$]h&]uh1jhjCNubeh}(h]h ]h"]h$]h&]uh1jhj^NhMhj@Nubj)}(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)}(hjNh]hunsigned int type}(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]jh)}(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 }(hjNhhhNhNubh)}(h,:c:type:`enum v4l2_buf_type `h]j)}(hjNh]henum v4l2_buf_type}(hjNhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNubh type.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj@Nubeh}(h]h ]h"]h$]h&]uh1jhj$Nubjh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$Nubjh)}(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}(hj"OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$Nubjh)}(h **Return**h]j)}(hj=Oh]hReturn}(hj?OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Oubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$Nubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjSOhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj$Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_streamoff (C function)c.vb2_core_streamoffhNtauh1hhhhhhNhNubh)}(hhh](j)}(h?int vb2_core_streamoff (struct vb2_queue *q, unsigned int type)h]j)}(h>int vb2_core_streamoff(struct vb2_queue *q, unsigned int type)h](j#)}(hinth]hint}(hjOhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj~Ohhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~OhhhjOhMubj1)}(hvb2_core_streamoffh]j7)}(hvb2_core_streamoffh]hvb2_core_streamoff}(hjOhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjOubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj~OhhhjOhMubj$)}(h((struct vb2_queue *q, unsigned int type)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj )}(h h]h }(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjOhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjOubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjOmodnameN classnameNjj)}j]j`$)}jX$jOsbc.vb2_core_streamoffasbuh1hhjOubj )}(h h]h }(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubjt$)}(hjw$h]h*}(hj PhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjOubj7)}(hj$h]hq}(hjPhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjOubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjOubj$)}(hunsigned int typeh](j#)}(hunsignedh]hunsigned}(hj0PhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj,Pubj )}(h h]h }(hj>PhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,Pubj#)}(hinth]hint}(hjLPhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj,Pubj )}(h h]h }(hjZPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,Pubj7)}(htypeh]htype}(hjhPhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj,Pubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjOubeh}(h]h ]h"]h$]h&]hhuh1j$hj~OhhhjOhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjzOhhhjOhMubah}(h]juOah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjOhMhjwOhhubjc)}(hhh]jh)}(hImplements VB2 stream OFF logich]hImplements VB2 stream OFF logic}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPhhubah}(h]h ]h"]h$]h&]uh1jbhjwOhhhjOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPubj)}(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)}(hjPh]hstruct vb2_queue *q}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPubj)}(hhh]jh)}(hFpointer to :c:type:`struct vb2_queue ` with videobuf2 queueh](h pointer to }(hjPhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjPh]hstruct vb2_queue}(hjPhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjPhMhjPubh with videobuf2 queue}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(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/Qh]hunsigned int type}(hj1QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Qubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj)Qubj)}(hhh]jh)}(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 }(hjHQhhhNhNubh)}(h,:c:type:`enum v4l2_buf_type `h]j)}(hjRQh]henum v4l2_buf_type}(hjTQhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjPQubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjHQubh type.}(hjHQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjoQhMhjEQubah}(h]h ]h"]h$]h&]uh1jhj)Qubeh}(h]h ]h"]h$]h&]uh1jhjDQhMhjPubeh}(h]h ]h"]h$]h&]uh1jhjPubjh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPubjh)}(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 }(hjQhhhNhNubj)}(h``videobuf2-v4l2.h``h]hvideobuf2-v4l2.h}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPubjh)}(h **Return**h]j)}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPubjh)}(h1returns zero on success; an error code otherwise.h]h1returns zero on success; an error code otherwise.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_expbuf (C function)c.vb2_core_expbufhNtauh1hhhhhhNhNubh)}(hhh](j)}(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)}(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}(hj RhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjRhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRhhhjRhMubj1)}(hvb2_core_expbufh]j7)}(hvb2_core_expbufh]hvb2_core_expbuf}(hj-RhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj)Rubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjRhhhjRhMubj$)}(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](j)}(hjh]hstruct}(hjIRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjERubj )}(h h]h }(hjVRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjERubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjgRhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjdRubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjiRmodnameN classnameNjj)}j]j`$)}jX$j/Rsbc.vb2_core_expbufasbuh1hhjERubj )}(h h]h }(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjERubjt$)}(hjw$h]h*}(hjRhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjERubj7)}(hj$h]hq}(hjRhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjERubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjARubj$)}(hint *fdh](j#)}(hinth]hint}(hjRhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjRubj )}(h h]h }(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubjt$)}(hjw$h]h*}(hjRhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjRubj7)}(hfdh]hfd}(hjRhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjRubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjARubj$)}(hunsigned int typeh](j#)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjRubj )}(h h]h }(hj ShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj#)}(hinth]hint}(hjShhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjRubj )}(h h]h }(hj&ShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj7)}(htypeh]htype}(hj4ShhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjRubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjARubj$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hjMShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjISubj )}(h h]h }(hjZShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjISubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hjkShhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjhSubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmSmodnameN classnameNjj)}j]jRc.vb2_core_expbufasbuh1hhjISubj )}(h h]h }(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjISubjt$)}(hjw$h]h*}(hjShhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjISubj7)}(hvbh]hvb}(hjShhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjISubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjARubj$)}(hunsigned int planeh](j#)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjSubj )}(h h]h }(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj#)}(hinth]hint}(hjShhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjSubj )}(h h]h }(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj7)}(hplaneh]hplane}(hjShhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjSubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjARubj$)}(hunsigned int flagsh](j#)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj Tubj )}(h h]h }(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj Tubj#)}(hinth]hint}(hj*ThhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj Tubj )}(h h]h }(hj8ThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj Tubj7)}(hflagsh]hflags}(hjFThhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj Tubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjARubeh}(h]h ]h"]h$]h&]hhuh1j$hjRhhhjRhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjRhhhjRhMubah}(h]jQah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjRhMhjRhhubjc)}(hhh]jh)}(h%Export a buffer as a file descriptor.h]h%Export a buffer as a file descriptor.}(hjpThhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjmThhubah}(h]h ]h"]h$]h&]uh1jbhjRhhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjThMhjTubh with videobuf2 queue.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubj)}(hS``int *fd`` pointer to the file descriptor associated with DMABUF (set by driver). h](j)}(h ``int *fd``h]j)}(hj Uh]hint *fd}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Uubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjUubj)}(hhh]jh)}(hFpointer to the file descriptor associated with DMABUF (set by driver).h]hFpointer to the file descriptor associated with DMABUF (set by driver).}(hj&UhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj#Uubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhj"UhMhjTubj)}(h#``unsigned int type`` buffer type. h](j)}(h``unsigned int type``h]j)}(hjGUh]hunsigned int type}(hjIUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEUubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjAUubj)}(hhh]jh)}(h buffer type.h]h buffer type.}(hj`UhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj\UhMhj]Uubah}(h]h ]h"]h$]h&]uh1jhjAUubeh}(h]h ]h"]h$]h&]uh1jhj\UhMhjTubj)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hjUh]hstruct vb2_buffer *vb}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Uubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjzUubj)}(hhh]jh)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hjUhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjUh]h vb2_buffer}(hjUhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhjUhMhjUubh.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjzUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjTubj)}(hT``unsigned int plane`` index of the plane to be exported, 0 for single plane queues h](j)}(h``unsigned int plane``h]j)}(hjUh]hunsigned int plane}(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]jh)}(hWmodnameN classnameNjj)}j]j`$)}jX$jWsbc.vb2_core_queue_initasbuh1hhjWubj )}(h h]h }(hj\WhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubjt$)}(hjw$h]h*}(hjjWhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjWubj7)}(hj$h]hq}(hjwWhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjWubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjWubah}(h]h ]h"]h$]h&]hhuh1j$hjVhhhjVhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjVhhhjVhMubah}(h]jVah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjVhMhjVhhubjc)}(hhh]jh)}(hinitialize a videobuf2 queueh]hinitialize a videobuf2 queue}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jbhjVhhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhhhNhNubj)}(hXP**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` 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](jh)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jghm/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. This structure should be allocated in driver 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]jh)}(htpointer to :c:type:`struct vb2_queue ` with videobuf2 queue. This structure should be allocated in driverh](h pointer to }(hjWhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjXh]hstruct vb2_queue}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjWubhC with videobuf2 queue. This structure should be allocated in driver}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj!XhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubjh)}(h**Description**h]j)}(hj@Xh]h Description}(hjBXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Xubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjWubjh)}(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 }(hjVXhhhNhNubh)}(h:c:type:`vb2_queue`h]j)}(hj`Xh]h vb2_queue}(hjbXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj^Xubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjVXubh 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.}(hjVXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj}XhMhjWubj)}(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]jh)}(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)}(hjXh]hvb2_queue->ops}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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)}(hjXh]hvb2_queue->mem_ops}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjXhMhjXubh, }hjXsbh)}(h%:c:type:`vb2_queue->type `h]j)}(hjXh]hvb2_queue->type}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjXhMhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#vb2_core_queue_release (C function)c.vb2_core_queue_releasehNtauh1hhhhhhNhNubh)}(hhh](j)}(h1void vb2_core_queue_release (struct vb2_queue *q)h]j)}(h0void vb2_core_queue_release(struct vb2_queue *q)h](j#)}(hvoidh]hvoid}(hj` 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](jh)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Zubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj6Zubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjUZhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj_Zh]hstruct vb2_queue}(hjaZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]Zubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjQZhMhjUZubh with videobuf2 queue.}(hjUZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjQZhMhjRZubah}(h]h ]h"]h$]h&]uh1jhj6Zubeh}(h]h ]h"]h$]h&]uh1jhjQZhMhj3Zubah}(h]h ]h"]h$]h&]uh1jhjZubjh)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjZubjh)}(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 }(hjZhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjZh]hstruct vb2_queue}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjZubh itself.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjZhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_error (C function)c.vb2_queue_errorhNtauh1hhhhhhNhNubh)}(hhh](j)}(h*void vb2_queue_error (struct vb2_queue *q)h]j)}(h)void vb2_queue_error(struct vb2_queue *q)h](j#)}(hvoidh]hvoid}(hj[hhhNhNubah}(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[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZhhhj[hMubj1)}(hvb2_queue_errorh]j7)}(hvb2_queue_errorh]hvb2_queue_error}(hj#[hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj[ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjZhhhj[hMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj?[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;[ubj )}(h h]h }(hjL[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;[ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj][hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjZ[ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj_[modnameN classnameNjj)}j]j`$)}jX$j%[sbc.vb2_queue_errorasbuh1hhj;[ubj )}(h h]h }(hj}[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;[ubjt$)}(hjw$h]h*}(hj[hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj;[ubj7)}(hj$h]hq}(hj[hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj;[ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj7[ubah}(h]h ]h"]h$]h&]hhuh1j$hjZhhhj[hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjZhhhj[hMubah}(h]jZah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj[hMhjZhhubjc)}(hhh]jh)}(h!signal a fatal error on the queueh]h!signal a fatal error on the queue}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj[hhubah}(h]h ]h"]h$]h&]uh1jbhjZhhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jghm/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj#\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj\hMhj\ubh with videobuf2 queue.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubjh)}(h**Description**h]j)}(hj`\h]h Description}(hjb\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^\ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj[ubjh)}(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 }(hjv\hhhNhNubj)}(h ``EPOLLERR``h]hEPOLLERR}(hj~\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv\ubh/ and queuing and dequeuing buffers will return }(hjv\hhhNhNubj)}(h``-EIO``h]h-EIO}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv\ubh.}(hjv\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj[ubjh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_mmap (C function) c.vb2_mmaphNtauh1hhhhhhNhNubh)}(hhh](j)}(h>int vb2_mmap (struct vb2_queue *q, struct vm_area_struct *vma)h]j)}(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 }(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\hhhj\hMubj1)}(hvb2_mmaph]j7)}(hvb2_mmaph]hvb2_mmap}(hj\hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj\ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj\hhhj\hMubj$)}(h1(struct vb2_queue *q, struct vm_area_struct *vma)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubj )}(h h]h }(hj"]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj3]hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj0]ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj5]modnameN classnameNjj)}j]j`$)}jX$j\sb c.vb2_mmapasbuh1hhj]ubj )}(h h]h }(hjS]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubjt$)}(hjw$h]h*}(hja]hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj]ubj7)}(hj$h]hq}(hjn]hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj]ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj ]ubj$)}(hstruct vm_area_struct *vmah](j)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubj )}(h h]h }(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubh)}(hhh]j7)}(hvm_area_structh]hvm_area_struct}(hj]hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj]modnameN classnameNjj)}j]jO] c.vb2_mmapasbuh1hhj]ubj )}(h h]h }(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubjt$)}(hjw$h]h*}(hj]hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj]ubj7)}(hvmah]hvma}(hj]hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj]ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj ]ubeh}(h]h ]h"]h$]h&]hhuh1j$hj\hhhj\hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj\hhhj\hMubah}(h]j\ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj\hMhj\hhubjc)}(hhh]jh)}(h1map video buffers into application address space.h]h1map video buffers into application address space.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^hhubah}(h]h ]h"]h$]h&]uh1jbhj\hhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj)^h]h Parameters}(hj+^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'^ubah}(h]h ]h"]h$]h&]uh1jghm/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)}(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]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hja^hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjk^h]hstruct vb2_queue}(hjm^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhji^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj]^hMhja^ubh with videobuf2 queue.}(hja^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj]^hMhj^^ubah}(h]h ]h"]h$]h&]uh1jhjB^ubeh}(h]h ]h"]h$]h&]uh1jhj]^hMhj?^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.hhMhj^ubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvm_area_structuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj^ubhF with the vma passed to the mmap file operation handler in the driver.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj?^ubeh}(h]h ]h"]h$]h&]uh1jhj#^ubjh)}(h**Description**h]j)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj#^ubjh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj#^ubjh)}(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)}(hj2_h]hv4l2_ioctl_ops->vidioc_querybuf}(hj4_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjO_hMhj#^ubjh)}(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.}(hjZ_hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hj#^ubjh)}(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.}(hji_hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj#^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_get_unmapped_area (C function)c.vb2_get_unmapped_areahNtauh1hhhhhhNhNubh)}(hhh](j)}(hunsigned long vb2_get_unmapped_area (struct vb2_queue *q, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h]j)}(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.hhMubj )}(h h]h }(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_hhhj_hMubj#)}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj_hhhj_hMubj )}(h h]h }(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_hhhj_hMubj1)}(hvb2_get_unmapped_areah]j7)}(hvb2_get_unmapped_areah]hvb2_get_unmapped_area}(hj_hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj_ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj_hhhj_hMubj$)}(hf(struct vb2_queue *q, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj )}(h h]h }(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj`hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj `ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj`modnameN classnameNjj)}j]j`$)}jX$j_sbc.vb2_get_unmapped_areaasbuh1hhj_ubj )}(h h]h }(hj/`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_ubjt$)}(hjw$h]h*}(hj=`hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj_ubj7)}(hj$h]hq}(hjJ`hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj_ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj_ubj$)}(hunsigned long addrh](j#)}(hunsignedh]hunsigned}(hjb`hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj^`ubj )}(h h]h }(hjp`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^`ubj#)}(hlongh]hlong}(hj~`hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj^`ubj )}(h h]h }(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^`ubj7)}(haddrh]haddr}(hj`hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj^`ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj_ubj$)}(hunsigned long lenh](j#)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj`ubj )}(h h]h }(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ubj#)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj`ubj )}(h h]h }(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ubj7)}(hlenh]hlen}(hj`hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj`ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj_ubj$)}(hunsigned long pgoffh](j#)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjaubj )}(h h]h }(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj#)}(hlongh]hlong}(hj ahhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjaubj )}(h h]h }(hj.ahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj7)}(hpgoffh]hpgoff}(hj` 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](jh)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.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)}(hjah]hstruct vb2_queue *q}(hjahhhNhNubah}(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.hhMhjaubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjbhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjbh]hstruct vb2_queue}(hjbhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj bhMhjbubh with videobuf2 queue.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj bhMhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj bhMhjaubj)}(h'``unsigned long addr`` memory address. h](j)}(h``unsigned long addr``h]j)}(hjTbh]hunsigned long addr}(hjVbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRbubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNbubj)}(hhh]jh)}(hmemory address.h]hmemory address.}(hjmbhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjibhMhjjbubah}(h]h ]h"]h$]h&]uh1jhjNbubeh}(h]h ]h"]h$]h&]uh1jhjibhMhjaubj)}(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.hhMhjbubj)}(hhh]jh)}(h buffer size.h]h buffer size.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubj)}(h%``unsigned long pgoff`` page offset. h](j)}(h``unsigned long pgoff``h]j)}(hjbh]hunsigned long pgoff}(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.hhMhjbubj)}(hhh]jh)}(h page offset.h]h page offset.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubj)}(h&``unsigned long flags`` memory flags. h](j)}(h``unsigned long flags``h]j)}(hjbh]hunsigned long flags}(hjchhhNhNubah}(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.hhMhjbubj)}(hhh]jh)}(h memory flags.h]h memory flags.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jghjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjchMhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubjh)}(h**Description**h]j)}(hj:ch]h Description}(hjget_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 }(hjPchhhNhNubh)}(h>:c:type:`file_operations->get_unmapped_area `h]j)}(hjZch]h"file_operations->get_unmapped_area}(hj\chhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjXcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfile_operationsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjPcubh operation.}(hjPchhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjwchMhjaubjh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_core_poll (C function)c.vb2_core_pollhNtauh1hhhhhhNhNubh)}(hhh](j)}(hQ__poll_t vb2_core_poll (struct vb2_queue *q, struct file *file, poll_table *wait)h]j)}(hP__poll_t vb2_core_poll(struct vb2_queue *q, struct file *file, poll_table *wait)h](h)}(hhh]j7)}(h__poll_th]h__poll_t}(hjchhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjcubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjcmodnameN classnameNjj)}j]j`$)}jX$ vb2_core_pollsbc.vb2_core_pollasbuh1hhjchhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM,ubj )}(h h]h }(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjchhhjchM,ubj1)}(h vb2_core_pollh]j7)}(hjch]h vb2_core_poll}(hjchhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjcubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjchhhjchM,ubj$)}(h:(struct vb2_queue *q, struct file *file, poll_table *wait)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj )}(h h]h }(hj"dhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj3dhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj0dubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj5dmodnameN classnameNjj)}j]jcc.vb2_core_pollasbuh1hhjdubj )}(h h]h }(hjQdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubjt$)}(hjw$h]h*}(hj_dhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjdubj7)}(hj$h]hq}(hjldhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjdubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj dubj$)}(hstruct file *fileh](j)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj )}(h h]h }(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubh)}(hhh]j7)}(hfileh]hfile}(hjdhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjdubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjdmodnameN classnameNjj)}j]jcc.vb2_core_pollasbuh1hhjdubj )}(h h]h }(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubjt$)}(hjw$h]h*}(hjdhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjdubj7)}(hfileh]hfile}(hjdhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjdubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj dubj$)}(hpoll_table *waith](h)}(hhh]j7)}(h poll_tableh]h poll_table}(hjdhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjdubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjdmodnameN classnameNjj)}j]jcc.vb2_core_pollasbuh1hhjdubj )}(h h]h }(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubjt$)}(hjw$h]h*}(hj#ehhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjdubj7)}(hwaith]hwait}(hj0ehhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjdubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj dubeh}(h]h ]h"]h$]h&]hhuh1j$hjchhhjchM,ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjchhhjchM,ubah}(h]jcah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjchM,hjchhubjc)}(hhh]jh)}(h implements poll syscall() logic.h]h implements poll syscall() logic.}(hjZehhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM,hjWehhubah}(h]h ]h"]h$]h&]uh1jbhjchhhjchM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrejjrejjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj|eh]h Parameters}(hj~ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzeubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM0hjveubj)}(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)}(hjeh]hstruct vb2_queue *q}(hjehhhNhNubah}(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]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjehhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjeh]hstruct vb2_queue}(hjehhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjehM-hjeubh with videobuf2 queue.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjehM-hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM-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)}(hjeh]hstruct file *file}(hjehhhNhNubah}(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]jh)}(hP:c:type:`struct file ` argument passed to the poll file operation handler.h](h)}(h:c:type:`struct file `h]j)}(hjfh]h struct file}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfileuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM.hjfubh4 argument passed to the poll file operation handler.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj3fhM.hj fubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhj fhM/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)}(hjPfh]hpoll_table *wait}(hjRfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNfubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM1hjJfubj)}(hhh]jh)}(hM:c:type:`poll_table` wait argument passed to the poll file operation handler.h](h)}(h:c:type:`poll_table`h]j)}(hjofh]h poll_table}(hjqfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmfubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj poll_tableuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM0hjifubh9 wait argument passed to the poll file operation handler.}(hjifhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjfhM0hjffubah}(h]h ]h"]h$]h&]uh1jhjJfubeh}(h]h ]h"]h$]h&]uh1jhjefhM1hjeubeh}(h]h ]h"]h$]h&]uh1jhjveubjh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM3hjveubjh)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM2hjveubjh)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM9hjveubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_read (C function) c.vb2_readhNtauh1hhhhhhNhNubh)}(hhh](j)}(hbsize_t vb2_read (struct vb2_queue *q, char __user *data, size_t count, loff_t *ppos, int nonblock)h]j)}(hasize_t vb2_read(struct vb2_queue *q, char __user *data, size_t count, loff_t *ppos, int nonblock)h](h)}(hhh]j7)}(hsize_th]hsize_t}(hjghhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjfubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjgmodnameN classnameNjj)}j]j`$)}jX$vb2_readsb c.vb2_readasbuh1hhjfhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMAubj )}(h h]h }(hj$ghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfhhhj#ghMAubj1)}(hvb2_readh]j7)}(hj gh]hvb2_read}(hj6ghhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj2gubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjfhhhj#ghMAubj$)}(hR(struct vb2_queue *q, char __user *data, size_t count, loff_t *ppos, int nonblock)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjQghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMgubj )}(h h]h }(hj^ghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMgubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjoghhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjlgubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjqgmodnameN classnameNjj)}j]jg c.vb2_readasbuh1hhjMgubj )}(h h]h }(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMgubjt$)}(hjw$h]h*}(hjghhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjMgubj7)}(hj$h]hq}(hjghhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjMgubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIgubj$)}(hchar __user *datah](j#)}(hcharh]hchar}(hjghhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjgubj )}(h h]h }(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjgubh__user}(hjghhhNhNubj )}(h h]h }(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjgubjt$)}(hjw$h]h*}(hjghhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjgubj7)}(hdatah]hdata}(hjghhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjgubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIgubj$)}(h size_t counth](h)}(hhh]j7)}(hsize_th]hsize_t}(hjhhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjhubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjhmodnameN classnameNjj)}j]jg c.vb2_readasbuh1hhjhubj )}(h h]h }(hj5hhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj7)}(hcounth]hcount}(hjChhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjhubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIgubj$)}(h loff_t *pposh](h)}(hhh]j7)}(hloff_th]hloff_t}(hj_hhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj\hubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjahmodnameN classnameNjj)}j]jg c.vb2_readasbuh1hhjXhubj )}(h h]h }(hj}hhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXhubjt$)}(hjw$h]h*}(hjhhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjXhubj7)}(hpposh]hppos}(hjhhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjXhubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIgubj$)}(h int nonblockh](j#)}(hinth]hint}(hjhhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjhubj )}(h h]h }(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj7)}(hnonblockh]hnonblock}(hjhhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjhubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIgubeh}(h]h ]h"]h$]h&]hhuh1j$hjfhhhj#ghMAubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjfhhhj#ghMAubah}(h]jfah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj#ghMAhjfhhubjc)}(hhh]jh)}(h implements read() syscall logic.h]h implements read() syscall logic.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMAhjhhhubah}(h]h ]h"]h$]h&]uh1jbhjfhhhj#ghMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMEhjiubj)}(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)}(hj8ih]hstruct vb2_queue *q}(hj:ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6iubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMBhj2iubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjQihhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj[ih]hstruct vb2_queue}(hj]ihhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYiubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjMihMBhjQiubh with videobuf2 queue.}(hjQihhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjMihMBhjNiubah}(h]h ]h"]h$]h&]uh1jhj2iubeh}(h]h ]h"]h$]h&]uh1jhjMihMBhj/iubj)}(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.hhMChjiubj)}(hhh]jh)}(h"pointed to target userspace bufferh]h"pointed to target userspace buffer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jghjihMChjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMChj/iubj)}(h)``size_t count`` number of bytes to read h](j)}(h``size_t count``h]j)}(hjih]h size_t count}(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.hhMDhjiubj)}(hhh]jh)}(hnumber of bytes to readh]hnumber of bytes to read}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jghjihMDhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMDhj/iubj)}(h7``loff_t *ppos`` file handle position tracking pointer h](j)}(h``loff_t *ppos``h]j)}(hjjh]h loff_t *ppos}(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.hhMEhjjubj)}(hhh]jh)}(h%file handle position tracking pointerh]h%file handle position tracking pointer}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjjhMEhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMEhj/iubj)}(hL``int nonblock`` mode selector (1 means blocking calls, 0 means nonblocking)h](j)}(h``int nonblock``h]j)}(hj?jh]h int nonblock}(hjAjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=jubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMGhj9jubj)}(hhh]jh)}(h;mode selector (1 means blocking calls, 0 means nonblocking)h]h;mode selector (1 means blocking calls, 0 means nonblocking)}(hjXjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMFhjUjubah}(h]h ]h"]h$]h&]uh1jhj9jubeh}(h]h ]h"]h$]h&]uh1jhjTjhMGhj/iubeh}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_write (C function) c.vb2_writehNtauh1hhhhhhNhNubh)}(hhh](j)}(hisize_t vb2_write (struct vb2_queue *q, const char __user *data, size_t count, loff_t *ppos, int nonblock)h]j)}(hhsize_t vb2_write(struct vb2_queue *q, const char __user *data, size_t count, loff_t *ppos, int nonblock)h](h)}(hhh]j7)}(hsize_th]hsize_t}(hjjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjjmodnameN 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.hhMKubj )}(h h]h }(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhjjhMKubj1)}(h vb2_writeh]j7)}(hjjh]h vb2_write}(hjjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjjhhhjjhMKubj$)}(hX(struct vb2_queue *q, const char __user *data, size_t count, loff_t *ppos, int nonblock)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjubj )}(h h]h }(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj khhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjkubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj kmodnameN classnameNjj)}j]jj c.vb2_writeasbuh1hhjjubj )}(h h]h }(hj'khhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubjt$)}(hjw$h]h*}(hj5khhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjjubj7)}(hj$h]hq}(hjBkhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjjubj$)}(hconst char __user *datah](j)}(hj:h]hconst}(hjZkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVkubj )}(h h]h }(hjgkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVkubj#)}(hcharh]hchar}(hjukhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjVkubj )}(h h]h }(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVkubh__user}(hjVkhhhNhNubj )}(h h]h }(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVkubjt$)}(hjw$h]h*}(hjkhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjVkubj7)}(hdatah]hdata}(hjkhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjVkubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjjubj$)}(h size_t counth](h)}(hhh]j7)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjkubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjkmodnameN classnameNjj)}j]jj c.vb2_writeasbuh1hhjkubj )}(h h]h }(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj7)}(hcounth]hcount}(hjkhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjkubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjjubj$)}(h loff_t *pposh](h)}(hhh]j7)}(hloff_th]hloff_t}(hjlhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjlubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjlmodnameN classnameNjj)}j]jj c.vb2_writeasbuh1hhj lubj )}(h h]h }(hj2lhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj lubjt$)}(hjw$h]h*}(hj@lhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj lubj7)}(hpposh]hppos}(hjMlhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj lubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjjubj$)}(h int nonblockh](j#)}(hinth]hint}(hjflhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjblubj )}(h h]h }(hjtlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjblubj7)}(hnonblockh]hnonblock}(hjlhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjblubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjjubeh}(h]h ]h"]h$]h&]hhuh1j$hjjhhhjjhMKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjjhhhjjhMKubah}(h]jjah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjjhMKhjjhhubjc)}(hhh]jh)}(h!implements write() syscall logic.h]h!implements write() syscall logic.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMKhjlhhubah}(h]h ]h"]h$]h&]uh1jbhjjhhhjjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMOhjlubj)}(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)}(hjlh]hstruct vb2_queue *q}(hjlhhhNhNubah}(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.hhMLhjlubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjmhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjmh]hstruct vb2_queue}(hjmhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjmhMLhjmubh with videobuf2 queue.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjmhMLhjmubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjmhMLhjlubj)}(h?``const char __user *data`` pointed to target userspace buffer h](j)}(h``const char __user *data``h]j)}(hjImh]hconst char __user *data}(hjKmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGmubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMMhjCmubj)}(hhh]jh)}(h"pointed to target userspace bufferh]h"pointed to target userspace buffer}(hjbmhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj^mhMMhj_mubah}(h]h ]h"]h$]h&]uh1jhjCmubeh}(h]h ]h"]h$]h&]uh1jhj^mhMMhjlubj)}(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.hhMNhj|mubj)}(hhh]jh)}(hnumber of bytes to writeh]hnumber of bytes to write}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjmhMNhjmubah}(h]h ]h"]h$]h&]uh1jhj|mubeh}(h]h ]h"]h$]h&]uh1jhjmhMNhjlubj)}(h7``loff_t *ppos`` file handle position tracking pointer h](j)}(h``loff_t *ppos``h]j)}(hjmh]h loff_t *ppos}(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.hhMOhjmubj)}(hhh]jh)}(h%file handle position tracking pointerh]h%file handle position tracking pointer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjmhMOhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMOhjlubj)}(hL``int nonblock`` mode selector (1 means blocking calls, 0 means nonblocking)h](j)}(h``int nonblock``h]j)}(hjmh]h int nonblock}(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.hhMQhjmubj)}(hhh]jh)}(h;mode selector (1 means blocking calls, 0 means nonblocking)h]h;mode selector (1 means blocking calls, 0 means nonblocking)}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMPhj nubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhj nhMQhjlubeh}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_thread_fnc (C macro)c.vb2_thread_fnchNtauh1hhhhhhNhNubh)}(hhh](j)}(hvb2_thread_fnch]j)}(hvb2_thread_fnch]j1)}(hvb2_thread_fnch]j7)}(hjHnh]hvb2_thread_fnc}(hjRnhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjNnubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjJnhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMVubah}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjFnhhhjenhMVubah}(h]jAnah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjenhMVhjCnhhubjc)}(hhh]jh)}(h7**Typedef**: callback function for use with vb2_thread.h](j)}(h **Typedef**h]hTypedef}(hjynhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjunubh,: callback function for use with vb2_thread.}(hjunhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMXhjrnhhubah}(h]h ]h"]h$]h&]uh1jbhjCnhhhjenhMVubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1hhhhhhNhNubjh)}(h **Syntax**h]j)}(hjnh]hSyntax}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM[hhhhubj+)}(h;``int vb2_thread_fnc (struct vb2_buffer *vb, void *priv)`` h]jh)}(h:``int vb2_thread_fnc (struct vb2_buffer *vb, void *priv)``h]j)}(hjnh]h6int vb2_thread_fnc (struct vb2_buffer *vb, void *priv)}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM]hjnubah}(h]h ]h"]h$]h&]uh1j*hjnhM]hhhhubj)}(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](jh)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMahjnubj)}(hhh](j)}(hB``struct vb2_buffer *vb`` pointer to struct :c:type:`vb2_buffer`. h](j)}(h``struct vb2_buffer *vb``h]j)}(hjnh]hstruct vb2_buffer *vb}(hjohhhNhNubah}(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.hhMXhjnubj)}(hhh]jh)}(h'pointer to struct :c:type:`vb2_buffer`.h](hpointer to struct }(hjohhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hj!oh]h vb2_buffer}(hj#ohhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhjohMXhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjohMXhjoubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjohMXhjnubj)}(h*``void *priv`` pointer to a private data. h](j)}(h``void *priv``h]j)}(hjZoh]h void *priv}(hj\ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXoubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMYhjToubj)}(hhh]jh)}(hpointer to a private data.h]hpointer to a private data.}(hjsohhhNhNubah}(h]h ]h"]h$]h&]uh1jghjoohMYhjpoubah}(h]h ]h"]h$]h&]uh1jhjToubeh}(h]h ]h"]h$]h&]uh1jhjoohMYhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubjh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM[hjnubjh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMZhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_thread_start (C function)c.vb2_thread_starthNtauh1hhhhhhNhNubh)}(hhh](j)}(hcint vb2_thread_start (struct vb2_queue *q, vb2_thread_fnc fnc, void *priv, const char *thread_name)h]j)}(hbint vb2_thread_start(struct vb2_queue *q, vb2_thread_fnc fnc, void *priv, const char *thread_name)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.hhM`ubj )}(h h]h }(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhjohM`ubj1)}(hvb2_thread_starth]j7)}(hvb2_thread_starth]hvb2_thread_start}(hjohhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjoubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjohhhjohM`ubj$)}(hN(struct vb2_queue *q, vb2_thread_fnc fnc, void *priv, const char *thread_name)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj )}(h h]h }(hj$phhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj5phhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj2pubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj7pmodnameN classnameNjj)}j]j`$)}jX$josbc.vb2_thread_startasbuh1hhjpubj )}(h h]h }(hjUphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubjt$)}(hjw$h]h*}(hjcphhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjpubj7)}(hj$h]hq}(hjpphhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjpubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjpubj$)}(hvb2_thread_fnc fnch](h)}(hhh]j7)}(hvb2_thread_fnch]hvb2_thread_fnc}(hjphhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjpubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjpmodnameN classnameNjj)}j]jQpc.vb2_thread_startasbuh1hhjpubj )}(h h]h }(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubj7)}(hfnch]hfnc}(hjphhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjpubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjpubj$)}(h void *privh](j#)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjpubj )}(h h]h }(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubjt$)}(hjw$h]h*}(hjphhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjpubj7)}(hprivh]hpriv}(hjphhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjpubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjpubj$)}(hconst char *thread_nameh](j)}(hj:h]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj )}(h h]h }(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubj#)}(hcharh]hchar}(hj-qhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjqubj )}(h h]h }(hj;qhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubjt$)}(hjw$h]h*}(hjIqhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjqubj7)}(h thread_nameh]h thread_name}(hjVqhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjqubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjpubeh}(h]h ]h"]h$]h&]hhuh1j$hjohhhjohM`ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjohhhjohM`ubah}(h]joah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjohM`hjohhubjc)}(hhh]jh)}(h#start a thread for the given queue.h]h#start a thread for the given queue.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM`hj}qhhubah}(h]h ]h"]h$]h&]uh1jbhjohhhjohM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMdhjqubj)}(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)}(hjqh]hstruct vb2_queue *q}(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.hhMahjqubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjqhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjqh]hstruct vb2_queue}(hjqhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjqhMahjqubh with videobuf2 queue.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjqhMahjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMahjqubj)}(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.hhMbhjrubj)}(hhh]jh)}(h+:c:type:`vb2_thread_fnc` callback function.h](h)}(h:c:type:`vb2_thread_fnc`h]j)}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj:rubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_thread_fncuh1hhj2rhMbhj6rubh callback function.}(hj6rhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj2rhMbhj3rubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhj2rhMbhjqubj)}(h=``void *priv`` priv pointer passed to the callback function. h](j)}(h``void *priv``h]j)}(hjurh]h void *priv}(hjwrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsrubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMchjorubj)}(hhh]jh)}(h-priv pointer passed to the callback function.h]h-priv pointer passed to the callback function.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjrhMchjrubah}(h]h ]h"]h$]h&]uh1jhjorubeh}(h]h ]h"]h$]h&]uh1jhjrhMchjqubj)}(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)}(hjrh]hconst char *thread_name}(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.hhMdhjrubj)}(hhh]jh)}(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-“.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjrhMdhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMdhjqubeh}(h]h ]h"]h$]h&]uh1jhjqubjh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMfhjqubjh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMehjqubh 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]jh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMjhjsubah}(h]h ]h"]h$]h&]uh1jshjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_thread_stop (C function)c.vb2_thread_stophNtauh1hhhhhhNhNubh)}(hhh](j)}(h)int vb2_thread_stop (struct vb2_queue *q)h]j)}(h(int vb2_thread_stop(struct vb2_queue *q)h](j#)}(hinth]hint}(hjIshhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjEshhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMsubj )}(h h]h }(hjXshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEshhhjWshMsubj1)}(hvb2_thread_stoph]j7)}(hvb2_thread_stoph]hvb2_thread_stop}(hjjshhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjfsubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjEshhhjWshMsubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj )}(h h]h }(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjsubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjshhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjsubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjsmodnameN classnameNjj)}j]j`$)}jX$jlssbc.vb2_thread_stopasbuh1hhjsubj )}(h h]h }(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjsubjt$)}(hjw$h]h*}(hjshhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjsubj7)}(hj$h]hq}(hjshhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjsubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj~subah}(h]h ]h"]h$]h&]hhuh1j$hjEshhhjWshMsubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjAshhhjWshMsubah}(h]jshhubjc)}(hhh]jh)}(h$stop the thread for the given queue.h]h$stop the thread for the given queue.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMshjthhubah}(h]h ]h"]h$]h&]uh1jbhj>shhhjWshMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjj tjj tjjjuh1hhhhhhNhNubj)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jh)}(h**Parameters**h]j)}(hj*th]h Parameters}(hj,thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(tubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMwhj$tubj)}(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)}(hjIth]hstruct vb2_queue *q}(hjKthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGtubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMyhjCtubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjbthhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjlth]hstruct vb2_queue}(hjnthhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjjtubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMthjbtubh with videobuf2 queue.}(hjbthhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjthMthj_tubah}(h]h ]h"]h$]h&]uh1jhjCtubeh}(h]h ]h"]h$]h&]uh1jhj^thMyhj@tubah}(h]h ]h"]h$]h&]uh1jhj$tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_is_streaming (C function)c.vb2_is_streaminghNtauh1hhhhhhNhNubh)}(hhh](j)}(h+bool vb2_is_streaming (struct vb2_queue *q)h]j)}(h*bool vb2_is_streaming(struct vb2_queue *q)h](j#)}(hj#h]hbool}(hjthhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjthhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMyubj )}(h h]h }(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhjthMyubj1)}(hvb2_is_streamingh]j7)}(hvb2_is_streamingh]hvb2_is_streaming}(hjthhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjtubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjthhhjthMyubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj )}(h h]h }(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj uhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjuubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj"umodnameN classnameNjj)}j]j`$)}jX$jtsbc.vb2_is_streamingasbuh1hhjtubj )}(h h]h }(hj@uhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubjt$)}(hjw$h]h*}(hjNuhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjtubj7)}(hj$h]hq}(hj[uhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjtubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjtubah}(h]h ]h"]h$]h&]hhuh1j$hjthhhjthMyubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjthhhjthMyubah}(h]jtah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjthMyhjthhubjc)}(hhh]jh)}(h%return streaming status of the queue.h]h%return streaming status of the queue.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMyhjuhhubah}(h]h ]h"]h$]h&]uh1jbhjthhhjthMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhhhNhNubj)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jh)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM}hjuubj)}(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]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjuhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjuh]hstruct vb2_queue}(hjuhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMzhjuubh with videobuf2 queue.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjvhMzhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!vb2_fileio_is_active (C function)c.vb2_fileio_is_activehNtauh1hhhhhhNhNubh)}(hhh](j)}(h/bool vb2_fileio_is_active (struct vb2_queue *q)h]j)}(h.bool vb2_fileio_is_active(struct vb2_queue *q)h](j#)}(hj#h]hbool}(hjBvhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj>vhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjPvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>vhhhjOvhMubj1)}(hvb2_fileio_is_activeh]j7)}(hvb2_fileio_is_activeh]hvb2_fileio_is_active}(hjbvhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj^vubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj>vhhhjOvhMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj~vhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzvubj )}(h h]h }(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzvubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjvhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjvubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjvmodnameN classnameNjj)}j]j`$)}jX$jdvsbc.vb2_fileio_is_activeasbuh1hhjzvubj )}(h h]h }(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzvubjt$)}(hjw$h]h*}(hjvhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjzvubj7)}(hj$h]hq}(hjvhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjzvubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjvvubah}(h]h ]h"]h$]h&]hhuh1j$hj>vhhhjOvhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj:vhhhjOvhMubah}(h]j5vah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjOvhMhj7vhhubjc)}(hhh]jh)}(h return true if fileio is active.h]h return true if fileio is active.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjvhhubah}(h]h ]h"]h$]h&]uh1jbhj7vhhhjOvhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj"wh]h Parameters}(hj$whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj wubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hjAwh]hstruct vb2_queue *q}(hjCwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?wubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj;wubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjZwhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjdwh]hstruct vb2_queue}(hjfwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjVwhMhjZwubh with videobuf2 queue.}(hjZwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjVwhMhjWwubah}(h]h ]h"]h$]h&]uh1jhj;wubeh}(h]h ]h"]h$]h&]uh1jhjVwhMhj8wubah}(h]h ]h"]h$]h&]uh1jhjwubjh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjwubjh)}(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 }(hjwhhhNhNubj)}(h``V4L2_FIELD_ALTERNATE``h]hV4L2_FIELD_ALTERNATE}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh 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 }(hjwhhhNhNubh)}(h(:c:type:`vb2_ops->queue_setup `h]j)}(hjwh]hvb2_ops->queue_setup}(hjwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjwubh0 op and reject it if this function returns true.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjwhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vb2_get_num_buffers (C function)c.vb2_get_num_buffershNtauh1hhhhhhNhNubh)}(hhh](j)}(h6unsigned int vb2_get_num_buffers (struct vb2_queue *q)h]j)}(h5unsigned int vb2_get_num_buffers(struct vb2_queue *q)h](j#)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjxhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hj(xhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxhhhj'xhMubj#)}(hinth]hint}(hj6xhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjxhhhj'xhMubj )}(h h]h }(hjDxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxhhhj'xhMubj1)}(hvb2_get_num_buffersh]j7)}(hvb2_get_num_buffersh]hvb2_get_num_buffers}(hjVxhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjRxubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjxhhhj'xhMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjrxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnxubj )}(h h]h }(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnxubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjxhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjxubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjxmodnameN classnameNjj)}j]j`$)}jX$jXxsbc.vb2_get_num_buffersasbuh1hhjnxubj )}(h h]h }(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnxubjt$)}(hjw$h]h*}(hjxhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjnxubj7)}(hj$h]hq}(hjxhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjnxubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjjxubah}(h]h ]h"]h$]h&]hhuh1j$hjxhhhj'xhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjxhhhj'xhMubah}(h]j xah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj'xhMhjxhhubjc)}(hhh]jh)}(h#get the number of buffer in a queueh]h#get the number of buffer in a queue}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1jbhjxhhhj'xhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj yjj yjjjuh1hhhhhhNhNubj)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jh)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjyubj)}(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)}(hj5yh]hstruct vb2_queue *q}(hj7yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3yubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj/yubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjNyhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjXyh]hstruct vb2_queue}(hjZyhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjVyubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjNyubh with videobuf2 queue.}(hjNyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjuyhMhjKyubah}(h]h ]h"]h$]h&]uh1jhj/yubeh}(h]h ]h"]h$]h&]uh1jhjJyhMhj,yubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_is_busy (C function) c.vb2_is_busyhNtauh1hhhhhhNhNubh)}(hhh](j)}(h&bool vb2_is_busy (struct vb2_queue *q)h]j)}(h%bool vb2_is_busy(struct vb2_queue *q)h](j#)}(hj#h]hbool}(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 ]j,ah"]h$]h&]uh1jhjyhhhjyhMubj1)}(h vb2_is_busyh]j7)}(h vb2_is_busyh]h vb2_is_busy}(hjyhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjyubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjyhhhjyhMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj )}(h h]h }(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj zhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj zubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjzmodnameN classnameNjj)}j]j`$)}jX$jysb c.vb2_is_busyasbuh1hhjyubj )}(h h]h }(hj,zhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubjt$)}(hjw$h]h*}(hj:zhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjyubj7)}(hj$h]hq}(hjGzhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjyubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjyubah}(h]h ]h"]h$]h&]hhuh1j$hjyhhhjyhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjyhhhjyhMubah}(h]jyah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjyhMhjyhhubjc)}(hhh]jh)}(h return busy status of the queue.h]h return busy status of the queue.}(hjpzhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjmzhhubah}(h]h ]h"]h$]h&]uh1jbhjyhhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jghm/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)}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjzhMhjzubh with videobuf2 queue.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubjh)}(h**Description**h]j)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj {ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjzubjh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_get_drv_priv (C function)c.vb2_get_drv_privhNtauh1hhhhhhNhNubh)}(hhh](j)}(h-void * vb2_get_drv_priv (struct vb2_queue *q)h]j)}(h+void *vb2_get_drv_priv(struct vb2_queue *q)h](j#)}(hvoidh]hvoid}(hjT{hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjP{hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjc{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjP{hhhjb{hMubjt$)}(hjw$h]h*}(hjq{hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjP{hhhjb{hMubj1)}(hvb2_get_drv_privh]j7)}(hvb2_get_drv_privh]hvb2_get_drv_priv}(hj{hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj~{ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjP{hhhjb{hMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{ubj )}(h h]h }(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj{ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj{hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj{modnameN classnameNjj)}j]j`$)}jX$j{sbc.vb2_get_drv_privasbuh1hhj{ubj )}(h h]h }(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj{ubjt$)}(hjw$h]h*}(hj{hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj{ubj7)}(hj$h]hq}(hj{hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj{ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj{ubah}(h]h ]h"]h$]h&]hhuh1j$hjP{hhhjb{hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjL{hhhjb{hMubah}(h]jG{ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjb{hMhjI{hhubjc)}(hhh]jh)}(h5return driver private data associated with the queue.h]h5return driver private data associated with the queue.}(hj |hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj|hhubah}(h]h ]h"]h$]h&]uh1jbhjI{hhhjb{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8|jj8|jjjuh1hhhhhhNhNubj)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jh)}(h**Parameters**h]j)}(hjB|h]h Parameters}(hjD|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@|ubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hja|h]hstruct vb2_queue *q}(hjc|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]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjz|hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj|h]hstruct vb2_queue}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjz|ubh with videobuf2 queue.}(hjz|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj|hMhjw|ubah}(h]h ]h"]h$]h&]uh1jhj[|ubeh}(h]h ]h"]h$]h&]uh1jhjv|hMhjX|ubah}(h]h ]h"]h$]h&]uh1jhj<|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_set_plane_payload (C function)c.vb2_set_plane_payloadhNtauh1hhhhhhNhNubh)}(hhh](j)}(h]void vb2_set_plane_payload (struct vb2_buffer *vb, unsigned int plane_no, unsigned long size)h]j)}(h\void vb2_set_plane_payload(struct vb2_buffer *vb, unsigned int plane_no, unsigned long size)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 ]j,ah"]h$]h&]uh1jhj|hhhj|hMubj1)}(hvb2_set_plane_payloadh]j7)}(hvb2_set_plane_payloadh]hvb2_set_plane_payload}(hj|hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj|ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj|hhhj|hMubj$)}(hB(struct vb2_buffer *vb, unsigned int plane_no, unsigned long size)h](j$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj )}(h h]h }(hj(}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hj9}hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj6}ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj;}modnameN classnameNjj)}j]j`$)}jX$j}sbc.vb2_set_plane_payloadasbuh1hhj}ubj )}(h h]h }(hjY}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubjt$)}(hjw$h]h*}(hjg}hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj}ubj7)}(hvbh]hvb}(hjt}hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj}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 ]j,ah"]h$]h&]uh1jhj}ubj#)}(hinth]hint}(hj}hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj}ubj )}(h h]h }(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubj7)}(hplane_noh]hplane_no}(hj}hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj}ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj}ubj$)}(hunsigned long sizeh](j#)}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj}ubj )}(h h]h }(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubj#)}(hlongh]hlong}(hj}hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj}ubj )}(h h]h }(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubj7)}(hsizeh]hsize}(hj~hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj}ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj}ubeh}(h]h ]h"]h$]h&]hhuh1j$hj|hhhj|hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj|hhhj|hMubah}(h]j|ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj|hMhj|hhubjc)}(hhh]jh)}(h)set bytesused for the plane **plane_no**.h](hset bytesused for the plane }(hj@~hhhNhNubj)}(h **plane_no**h]hplane_no}(hjH~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@~ubh.}(hj@~hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj=~hhubah}(h]h ]h"]h$]h&]uh1jbhj|hhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj~jjj~jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjt~h]h Parameters}(hjv~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr~ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjn~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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghj~hMhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj~ubj)}(hH``unsigned int plane_no`` plane number for which payload should be set. 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]jh)}(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&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h(``unsigned long size`` payload in bytes.h](j)}(h``unsigned long size``h]j)}(hj)h]hunsigned long size}(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]jh)}(hpayload in bytes.h]hpayload in bytes.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/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>hMhj~ubeh}(h]h ]h"]h$]h&]uh1jhjn~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_get_plane_payload (C function)c.vb2_get_plane_payloadhNtauh1hhhhhhNhNubh)}(hhh](j)}(hRunsigned long vb2_get_plane_payload (struct vb2_buffer *vb, unsigned int plane_no)h]j)}(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 ]j,ah"]h$]h&]uh1jhjhhhjhMubj#)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjhhhjhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj1)}(hvb2_get_plane_payloadh]j7)}(hvb2_get_plane_payloadh]hvb2_get_plane_payload}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjhMubj$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jsbc.vb2_get_plane_payloadasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hj(hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hvbh]hvb}(hj5hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hunsigned int plane_noh](j#)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjJubj )}(h h]h }(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubj#)}(hinth]hint}(hjjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjJubj )}(h h]h }(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubj7)}(hplane_noh]hplane_no}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjJubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj{hhhjhMubah}(h]jvah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhMhjxhhubjc)}(hhh]jh)}(h$get bytesused for the plane plane_noh]h$get bytesused for the plane plane_no}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jbhjxhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjȀjjȀjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjҀh]h Parameters}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЀubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hjh]hstruct vb2_buffer *vb}(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]jh)}(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)}(hjh]hstruct vb2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghj1hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``unsigned int plane_no`` plane number for which payload should be set.h](j)}(h``unsigned int plane_no``h]j)}(hjNh]hunsigned int plane_no}(hjPhhhNhNubah}(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.hhMhjHubj)}(hhh]jh)}(h-plane number for which payload should be set.h]h-plane number for which payload should be set.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjubeh}(h]h ]h"]h$]h&]uh1jhj̀ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_plane_size (C function)c.vb2_plane_sizehNtauh1hhhhhhNhNubh)}(hhh](j)}(hKunsigned long vb2_plane_size (struct vb2_buffer *vb, unsigned int plane_no)h]j)}(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#hjhhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj#)}(hlongh]hlong}(hjŁhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjhhhjhMubj )}(h h]h }(hjӁhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj1)}(hvb2_plane_sizeh]j7)}(hvb2_plane_sizeh]hvb2_plane_size}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjhMubj$)}(h.(struct vb2_buffer *vb, unsigned int plane_no)h](j$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj!modnameN classnameNjj)}j]j`$)}jX$jsbc.vb2_plane_sizeasbuh1hhjubj )}(h h]h }(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjMhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hvbh]hvb}(hjZhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hunsigned int plane_noh](j#)}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjoubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoubj#)}(hinth]hint}(hjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjoubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoubj7)}(hplane_noh]hplane_no}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjoubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjhMubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhMhjhhubjc)}(hhh]jh)}(hreturn plane size in bytes.h]hreturn plane size in bytes.}(hjՂhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj҂hhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubj)}(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)}(hjh]hstruct vb2_buffer *vb}(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]jh)}(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)}(hj9h]hstruct vb2_buffer}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjVhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj ubj)}(hI``unsigned int plane_no`` plane number for which size should be returned.h](j)}(h``unsigned int plane_no``h]j)}(hjsh]hunsigned int plane_no}(hjuhhhNhNubah}(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.hhMhjmubj)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'vb2_start_streaming_called (C function)c.vb2_start_streaming_calledhNtauh1hhhhhhNhNubh)}(hhh](j)}(h5bool vb2_start_streaming_called (struct vb2_queue *q)h]j)}(h4bool vb2_start_streaming_called(struct vb2_queue *q)h](j#)}(hj#h]hbool}(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 ]j,ah"]h$]h&]uh1jhjɃhhhjڃhMubj1)}(hvb2_start_streaming_calledh]j7)}(hvb2_start_streaming_calledh]hvb2_start_streaming_called}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjɃhhhjڃhMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj'hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj)modnameN classnameNjj)}j]j`$)}jX$jsbc.vb2_start_streaming_calledasbuh1hhjubj )}(h h]h }(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjUhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjbhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubah}(h]h ]h"]h$]h&]hhuh1j$hjɃhhhjڃhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjŃhhhjڃhMubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjڃhMhjƒhhubjc)}(hhh]jh)}(h"return streaming status of driver.h]h"return streaming status of driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jbhjƒhhhjڃhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/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)}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj hMhjubah}(h]h ]h"]h$]h&]uh1jhjƄubeh}(h]h ]h"]h$]h&]uh1jhjhMhjÄubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+vb2_clear_last_buffer_dequeued (C function) c.vb2_clear_last_buffer_dequeuedhNtauh1hhhhhhNhNubh)}(hhh](j)}(h9void vb2_clear_last_buffer_dequeued (struct vb2_queue *q)h]j)}(h8void vb2_clear_last_buffer_dequeued(struct vb2_queue *q)h](j#)}(hvoidh]hvoid}(hjIhhhNhNubah}(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 }(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhhjWhMubj1)}(hvb2_clear_last_buffer_dequeuedh]j7)}(hvb2_clear_last_buffer_dequeuedh]hvb2_clear_last_buffer_dequeued}(hjjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjfubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjEhhhjWhMubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jlsb c.vb2_clear_last_buffer_dequeuedasbuh1hhjubj )}(h h]h }(hjąhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hj҅hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hj߅hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj~ubah}(h]h ]h"]h$]h&]hhuh1j$hjEhhhjWhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjAhhhjWhMubah}(h]j<ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjWhMhj>hhubjc)}(hhh]jh)}(h)clear last buffer dequeued flag of queue.h]h)clear last buffer dequeued flag of queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jbhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(hq**Parameters** ``struct vb2_queue *q`` pointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](jh)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hjIh]hstruct vb2_queue *q}(hjKhhhNhNubah}(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.hhMhjCubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjbubh with videobuf2 queue.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_get_buffer (C function)c.vb2_get_bufferhNtauh1hhhhhhNhNubh)}(hhh](j)}(hLstruct vb2_buffer * vb2_get_buffer (struct vb2_queue *q, unsigned int index)h]j)}(hJstruct vb2_buffer *vb2_get_buffer(struct vb2_queue *q, unsigned int index)h](j)}(hjh]hstruct}(hjƆhhhNhNubah}(h]h ]jah"]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 ]j,ah"]h$]h&]uh1jhj†hhhjӆhMubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$vb2_get_buffersbc.vb2_get_bufferasbuh1hhj†hhhjӆhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj†hhhjӆhMubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj†hhhjӆhMubj1)}(hvb2_get_bufferh]j7)}(hjh]hvb2_get_buffer}(hj%hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj!ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj†hhhjӆhMubj$)}(h)(struct vb2_queue *q, unsigned int index)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj<ubj )}(h h]h }(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj^hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj`modnameN classnameNjj)}j]jc.vb2_get_bufferasbuh1hhj<ubj )}(h h]h }(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj<ubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj<ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubj$)}(hunsigned int indexh](j#)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj#)}(hinth]hint}(hjˇhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjubj )}(h h]h }(hjهhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj7)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj8ubeh}(h]h ]h"]h$]h&]hhuh1j$hj†hhhjӆhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjӆhMubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjӆhMhjhhubjc)}(hhh]jh)}(hget a buffer from a queueh]hget a buffer from a queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjӆhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hjRh]hstruct vb2_queue *q}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjLubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjkhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjuh]hstruct vb2_queue}(hjwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjghMhjkubh with videobuf2 queue.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjIubj)}(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]jh)}(h buffer indexh]h buffer index}(hjLjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjÈhMhjĈubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjÈhMhjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubjh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_buffer_in_use (C function)c.vb2_buffer_in_usehNtauh1hhhhhhNhNubh)}(hhh](j)}(hCbool vb2_buffer_in_use (struct vb2_queue *q, struct vb2_buffer *vb)h]j)}(hBbool vb2_buffer_in_use(struct vb2_queue *q, struct vb2_buffer *vb)h](j#)}(hj#h]hbool}(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 ]j,ah"]h$]h&]uh1jhj*hhhj;hMubj1)}(hvb2_buffer_in_useh]j7)}(hvb2_buffer_in_useh]hvb2_buffer_in_use}(hjNhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjJubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj*hhhj;hMubj$)}(h,(struct vb2_queue *q, struct vb2_buffer *vb)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj )}(h h]h }(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jPsbc.vb2_buffer_in_useasbuh1hhjfubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjfubj7)}(hj$h]hq}(hjÉhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjfubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjbubj$)}(hstruct vb2_buffer *vbh](j)}(hjh]hstruct}(hjۉhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj׉ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj׉ubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]jc.vb2_buffer_in_useasbuh1hhj׉ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj׉ubjt$)}(hjw$h]h*}(hj%hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj׉ubj7)}(hvbh]hvb}(hj2hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj׉ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjbubeh}(h]h ]h"]h$]h&]hhuh1j$hj*hhhj;hMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj&hhhj;hMubah}(h]j!ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj;hMhj#hhubjc)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjYhhubah}(h]h ]h"]h$]h&]uh1jbhj#hhhj;hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjxubj)}(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]jh)}(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}(hjŠhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhMhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hI``struct vb2_buffer *vb`` buffer for which plane size should be returned.h](j)}(h``struct vb2_buffer *vb``h]j)}(hjh]hstruct vb2_buffer *vb}(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]jh)}(h/buffer for which plane size should be returned.h]h/buffer for which plane size should be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#vb2_verify_memory_type (C function)c.vb2_verify_memory_typehNtauh1hhhhhhNhNubh)}(hhh](j)}(h[int vb2_verify_memory_type (struct vb2_queue *q, enum vb2_memory memory, unsigned int type)h]j)}(hZint vb2_verify_memory_type(struct vb2_queue *q, enum vb2_memory memory, unsigned int type)h](j#)}(hinth]hint}(hjShhhNhNubah}(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 }(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOhhhjahMubj1)}(hvb2_verify_memory_typeh]j7)}(hvb2_verify_memory_typeh]hvb2_verify_memory_type}(hjthhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjpubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjOhhhjahMubj$)}(h@(struct vb2_queue *q, enum vb2_memory memory, unsigned int type)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jvsbc.vb2_verify_memory_typeasbuh1hhjubj )}(h h]h }(hj΋hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hj܋hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(henum vb2_memory memoryh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_memoryh]h vb2_memory}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj!modnameN classnameNjj)}j]jʋc.vb2_verify_memory_typeasbuh1hhjubj )}(h h]h }(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj7)}(hmemoryh]hmemory}(hjKhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hunsigned int typeh](j#)}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj`ubj )}(h h]h }(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ubj#)}(hinth]hint}(hjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj`ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ubj7)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj`ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjOhhhjahMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjKhhhjahMubah}(h]jFah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjahMhjHhhubjc)}(hhh]jh)}(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&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhMhjÌhhubah}(h]h ]h"]h$]h&]uh1jbhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjތjjތjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/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}(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.hhM hjubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhM hj ubh with videobuf2 queue.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hR``enum vb2_memory memory`` memory model, as defined by enum :c:type:`vb2_memory`. h](j)}(h``enum vb2_memory memory``h]j)}(hjch]henum vb2_memory memory}(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.hhM!hj]ubj)}(hhh]jh)}(h6memory model, as defined by enum :c:type:`vb2_memory`.h](h!memory model, as defined by enum }(hj|hhhNhNubh)}(h:c:type:`vb2_memory`h]j)}(hjh]h vb2_memory}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_memoryuh1hhjxhM!hj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjxhM!hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM!hjubj)}(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)}(hjh]hunsigned int type}(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]jh)}(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)}(hjh]h v4l2_buf_type}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjhM"hjՍubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԍhM#hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)vb2_request_object_is_buffer (C function)c.vb2_request_object_is_bufferhNtauh1hhhhhhNhNubh)}(hhh](j)}(hDbool vb2_request_object_is_buffer (struct media_request_object *obj)h]j)}(hCbool vb2_request_object_is_buffer(struct media_request_object *obj)h](j#)}(hj#h]hbool}(hj<hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj8hhhm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM*ubj )}(h h]h }(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8hhhjIhM*ubj1)}(hvb2_request_object_is_bufferh]j7)}(hvb2_request_object_is_bufferh]hvb2_request_object_is_buffer}(hj\hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjXubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj8hhhjIhM*ubj$)}(h"(struct media_request_object *obj)h]j$)}(h struct media_request_object *objh](j)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubh)}(hhh]j7)}(hmedia_request_objecth]hmedia_request_object}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$j^sbc.vb2_request_object_is_bufferasbuh1hhjtubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubjt$)}(hjw$h]h*}(hjĎhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjtubj7)}(hobjh]hobj}(hjюhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjtubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjpubah}(h]h ]h"]h$]h&]hhuh1j$hj8hhhjIhM*ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj4hhhjIhM*ubah}(h]j/ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjIhM*hj1hhubjc)}(hhh]jh)}(h%return true if the object is a bufferh]h%return true if the object is a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM*hjhhubah}(h]h ]h"]h$]h&]uh1jbhj1hhhjIhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hJ**Parameters** ``struct media_request_object *obj`` the request object.h](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/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)}(hj<h]h struct media_request_object *obj,}(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.hhM0hj6ubj)}(hhh]jh)}(hthe request object.h]hthe request object.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM,hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM0hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#vb2_request_buffer_cnt (C function)c.vb2_request_buffer_cnthNtauh1hhhhhhNhNubh)}(hhh](j)}(h?unsigned int vb2_request_buffer_cnt (struct media_request *req)h]j)}(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.hhM1ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhM1ubj#)}(hinth]hint}(hjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjhhhjhM1ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhM1ubj1)}(hvb2_request_buffer_cnth]j7)}(hvb2_request_buffer_cnth]hvb2_request_buffer_cnt}(hjӏhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjϏubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjhM1ubj$)}(h(struct media_request *req)h]j$)}(hstruct media_request *reqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h media_requesth]h media_request}(hj hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jՏsbc.vb2_request_buffer_cntasbuh1hhjubj )}(h h]h }(hj-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hj;hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hreqh]hreq}(hjHhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubah}(h]h ]h"]h$]h&]hhuh1j$hjhhhjhM1ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjhM1ubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhM1hjhhubjc)}(hhh]jh)}(h+return the number of buffers in the requesth]h+return the number of buffers in the request}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM1hjohhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjhM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h<**Parameters** ``struct media_request *req`` the request.h](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM5hjubj)}(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.hhM7hjubj)}(hhh]jh)}(h the request.h]h the request.}(hj̐hhhNhNubah}(h]h ]h"]h$]h&]uh1jghm/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:8: ./include/media/videobuf2-core.hhM3hjɐubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȐhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_v4l2_buffer (C struct)c.vb2_v4l2_bufferhNtauh1hhhhhhNhNubh)}(hhh](j)}(hvb2_v4l2_bufferh]j)}(hstruct vb2_v4l2_bufferh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]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 ]j,ah"]h$]h&]uh1jhj hhhjhKubj1)}(hvb2_v4l2_bufferh]j7)}(hjh]hvb2_v4l2_buffer}(hj-hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj)ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj hhhjhKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjhKubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhKhjhhubjc)}(hhh]jh)}(h"video buffer information for v4l2.h]h"video buffer information for v4l2.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjLhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjgjjgjjjuh1hhhhhhNhNubj)}(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). **Description** Should contain enough information to be able to cover all the fields of :c:type:`struct v4l2_buffer ` at ``videodev2.h``.h](j+)}(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]; }; h](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh:}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK!hjoubjN)}(hXstruct 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]hXstruct 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&]hhuh1jMhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK#hjoubeh}(h]h ]h"]h$]h&]uh1j*hjhK!hjkubjh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK.hjkubj)}(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]jh)}(h%embedded struct :c:type:`vb2_buffer`.h](hembedded struct }(hjߑhhhNhNubh)}(h:c:type:`vb2_buffer`h]j)}(hjh]h vb2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_bufferuh1hhjۑhK hjߑubh.}(hjߑhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjۑhK hjܑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۑhK hjubj)}(h&``flags`` buffer informational flags. h](j)}(h ``flags``h]j)}(hj"h]hflags}(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]jh)}(hbuffer informational flags.h]hbuffer informational flags.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj7hK!hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hK!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)}(hj[h]hfield}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK#hjUubj)}(hhh]jh)}(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 }(hjthhhNhNubh)}(h&:c:type:`enum v4l2_field `h]j)}(hj~h]henum v4l2_field}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj v4l2_fielduh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK"hjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhK"hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphK#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]jh)}(hframe timecode.h]hframe timecode.}(hjђhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj͒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)}(hjh]hsequence}(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]jh)}(hsequence count of this frame.h]hsequence count of this frame.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhK%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK%hjubj)}(h:``request_fd`` the request_fd associated with this buffer h](j)}(h``request_fd``h]j)}(hj*h]h request_fd}(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&hj$ubj)}(hhh]jh)}(h*the request_fd associated with this bufferh]h*the request_fd associated with this buffer}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jghj?hK&hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hK&hjubj)}(h7``is_held`` if true, then this capture buffer was held h](j)}(h ``is_held``h]j)}(hjch]his_held}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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]jh)}(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&]uh1jghjxhK'hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhK'hjubj)}(hL``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]jh)}(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&]uh1jghn/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&]uh1jhjkubjh)}(h**Description**h]j)}(hjؓh]h Description}(hjړhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֓ubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK+hjkubjh)}(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 }(hjhhhNhNubh)}(h*:c:type:`struct v4l2_buffer `h]j)}(hjh]hstruct v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK(hjubh at }(hjhhhNhNubj)}(h``videodev2.h``h]h videodev2.h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhK(hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_find_buffer (C function)c.vb2_find_bufferhNtauh1hhhhhhNhNubh)}(hhh](j)}(hHstruct vb2_buffer * vb2_find_buffer (struct vb2_queue *q, u64 timestamp)h]j)}(hFstruct vb2_buffer *vb2_find_buffer(struct vb2_queue *q, u64 timestamp)h](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKBubj )}(h h]h }(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNhhhj_hKBubh)}(hhh]j7)}(h vb2_bufferh]h vb2_buffer}(hjqhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjnubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjsmodnameN classnameNjj)}j]j`$)}jX$vb2_find_buffersbc.vb2_find_bufferasbuh1hhjNhhhj_hKBubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNhhhj_hKBubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjNhhhj_hKBubj1)}(hvb2_find_bufferh]j7)}(hjh]hvb2_find_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjNhhhj_hKBubj$)}(h$(struct vb2_queue *q, u64 timestamp)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj̔hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjȔubj )}(h h]h }(hjٔhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjȔubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]jc.vb2_find_bufferasbuh1hhjȔubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjȔubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjȔubj7)}(hj$h]hq}(hj#hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjȔubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjĔubj$)}(h u64 timestamph](h)}(hhh]j7)}(hu64h]hu64}(hj>hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj@modnameN classnameNjj)}j]jc.vb2_find_bufferasbuh1hhj7ubj )}(h h]h }(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj7)}(h timestamph]h timestamp}(hjjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj7ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjĔubeh}(h]h ]h"]h$]h&]hhuh1j$hjNhhhj_hKBubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjJhhhj_hKBubah}(h]jEah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj_hKBhjGhhubjc)}(hhh]jh)}(h"Find a buffer with given timestamph]h"Find a buffer with given timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1jbhjGhhhj_hKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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)}(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.hhKDhjϕubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKDhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKDhjubah}(h]h ]h"]h$]h&]uh1jhjϕubeh}(h]h ]h"]h$]h&]uh1jhjhKDhj̕ubj)}(h)``u64 timestamp`` the timestamp to find. h](j)}(h``u64 timestamp``h]j)}(hj1h]h u64 timestamp}(hj3hhhNhNubah}(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.hhKEhj+ubj)}(hhh]jh)}(hthe timestamp to find.h]hthe timestamp to find.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjFhKEhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKEhj̕ubeh}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKGhjubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKFhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_reqbufs (C function) c.vb2_reqbufshNtauh1hhhhhhNhNubh)}(hhh](j)}(hFint vb2_reqbufs (struct vb2_queue *q, struct v4l2_requestbuffers *req)h]j)}(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.hhKNubj )}(h h]h }(hjҖhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjіhKNubj1)}(h vb2_reqbufsh]j7)}(h vb2_reqbufsh]h vb2_reqbufs}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjіhKNubj$)}(h6(struct vb2_queue *q, struct v4l2_requestbuffers *req)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj modnameN classnameNjj)}j]j`$)}jX$jsb c.vb2_reqbufsasbuh1hhjubj )}(h h]h }(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjLhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjYhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hstruct v4l2_requestbuffers *reqh](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj )}(h h]h }(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubh)}(hhh]j7)}(hv4l2_requestbuffersh]hv4l2_requestbuffers}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j: c.vb2_reqbufsasbuh1hhjmubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjmubj7)}(hreqh]hreq}(hjȗhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjmubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjіhKNubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjіhKNubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjіhKNhjhhubjc)}(hhh]jh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKNhjhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjіhKNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKRhjubj)}(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.hhKQhj-ubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjHhKQhjLubh with videobuf2 queue.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjHhKQhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKQhj*ubj)}(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]jh)}(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)}(hjh]hstruct v4l2_requestbuffers}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_requestbuffersuh1hhjhKRhjubh passed from userspace to }(hjhhhNhNubh)}(h9:c:type:`v4l2_ioctl_ops->vidioc_reqbufs `h]j)}(hjјh]hv4l2_ioctl_ops->vidioc_reqbufs}(hjӘhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjϘubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhjhKRhjubh handler in driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_create_bufs (C function)c.vb2_create_bufshNtauh1hhhhhhNhNubh)}(hhh](j)}(hMint vb2_create_bufs (struct vb2_queue *q, struct v4l2_create_buffers *create)h]j)}(hLint vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create)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.hhKXubj )}(h h]h }(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&hhhj8hKXubj1)}(hvb2_create_bufsh]j7)}(hvb2_create_bufsh]hvb2_create_bufs}(hjKhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjGubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj&hhhj8hKXubj$)}(h9(struct vb2_queue *q, struct v4l2_create_buffers *create)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj )}(h h]h }(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jMsbc.vb2_create_bufsasbuh1hhjcubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjcubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjcubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj_ubj$)}(h"struct v4l2_create_buffers *createh](j)}(hjh]hstruct}(hjؙhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjԙubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjԙubh)}(hhh]j7)}(hv4l2_create_buffersh]hv4l2_create_buffers}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]jc.vb2_create_bufsasbuh1hhjԙubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjԙubjt$)}(hjw$h]h*}(hj"hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjԙubj7)}(hcreateh]hcreate}(hj/hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjԙubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj_ubeh}(h]h ]h"]h$]h&]hhuh1j$hj&hhhj8hKXubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj"hhhj8hKXubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj8hKXhjhhubjc)}(hhh]jh)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKXhjVhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhj8hKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK\hjuubj)}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhK[hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK[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)}(hjh]h"struct v4l2_create_buffers *create}(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]jh)}(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 }(hjhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_create_bufs `h]j)}(hjh]h"v4l2_ioctl_ops->vidioc_create_bufs}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhj hK\hjubh handler in driver}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj hK\hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK\hjubeh}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_prepare_buf (C function)c.vb2_prepare_bufhNtauh1hhhhhhNhNubh)}(hhh](j)}(h[int vb2_prepare_buf (struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h]j)}(hZint vb2_prepare_buf(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h](j#)}(hinth]hint}(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.hhKbubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnhhhjhKbubj1)}(hvb2_prepare_bufh]j7)}(hvb2_prepare_bufh]hvb2_prepare_buf}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjnhhhjhKbubj$)}(hG(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj͛hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjʛubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjϛmodnameN classnameNjj)}j]j`$)}jX$jsbc.vb2_prepare_bufasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hstruct media_device *mdevh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hj-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h media_deviceh]h media_device}(hj>hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj@modnameN classnameNjj)}j]jc.vb2_prepare_bufasbuh1hhjubj )}(h h]h }(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hmdevh]hmdev}(hjwhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hstruct v4l2_buffer *bh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h v4l2_bufferh]h v4l2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]jc.vb2_prepare_bufasbuh1hhjubj )}(h h]h }(hj̜hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjڜhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hbh]hb}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjnhhhjhKbubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjjhhhjhKbubah}(h]jeah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhKbhjghhubjc)}(hhh]jh)}(h7Pass ownership of a buffer from userspace to the kernelh]h7Pass ownership of a buffer from userspace to the kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKbhjhhubah}(h]h ]h"]h$]h&]uh1jbhjghhhjhKbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKfhj-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)}(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.hhKdhjLubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjkhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjuh]hstruct vb2_queue}(hjwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjghKdhjkubh with videobuf2 queue.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjghKdhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKdhjIubj)}(hd``struct media_device *mdev`` pointer to :c:type:`struct media_device `, may be NULL. h](j)}(h``struct media_device *mdev``h]j)}(hjh]hstruct media_device *mdev}(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]jh)}(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}(hjӝhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjϝubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj media_deviceuh1hhjÝhKehjǝubh, may be NULL.}(hjǝhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjÝhKehjĝubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjÝhKehjIubj)}(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)}(hj h]hstruct v4l2_buffer *b}(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.hhKghjubj)}(hhh]jh)}(hybuffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` handler in driverh](h*buffer structure passed from userspace to }(hj#hhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_prepare_buf `h]j)}(hj-h]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hj/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKfhj#ubh handler in driver}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjJhKfhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubjh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKihj-ubjh)}(hnShould be called from :c:type:`v4l2_ioctl_ops->vidioc_prepare_buf ` ioctl handler of a driver.h](hShould be called from }(hjhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_prepare_buf `h]j)}(hjh]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhhjubh ioctl handler of a driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhhj-ubjh)}(hThis function:h]hThis function:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKkhj-ubj)}(hhh](j)}(hverifies the passed buffer,h]jh)}(hjŞh]hverifies the passed buffer,}(hjǞhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKmhjÞ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]jh)}(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)}(hjh]hvb2_ops->buf_prepare}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKnhjߞubhg callback in the driver (if provided), in which driver-specific buffer initialization can be performed.}(hjߞhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKnhj۞ubah}(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]jh)}(hsif **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the prepared buffer to the request.h](hif }(hjhhhNhNubj)}(h**b->request_fd**h]h b->request_fd}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is non-zero and }(hjhhhNhNubj)}(h**mdev->ops->req_queue**h]hmdev->ops->req_queue}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 is set, then bind the prepared buffer to the request.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj-ubjh)}(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 }(hjZhhhNhNubh)}(h=:c:type:`v4l2_ioctl_ops->vidioc_prepare_buf `h]j)}(hjdh]h"v4l2_ioctl_ops->vidioc_prepare_buf}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKshjZubh handler in driver.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKshj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_qbuf (C function) c.vb2_qbufhNtauh1hhhhhhNhNubh)}(hhh](j)}(hTint vb2_qbuf (struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h]j)}(hSint vb2_qbuf(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)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 ]j,ah"]h$]h&]uh1jhjhhhjhK{ubj1)}(hvb2_qbufh]j7)}(hvb2_qbufh]hvb2_qbuf}(hj͟hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjɟubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjhK{ubj$)}(hG(struct vb2_queue *q, struct media_device *mdev, struct v4l2_buffer *b)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj modnameN classnameNjj)}j]j`$)}jX$jϟsb c.vb2_qbufasbuh1hhjubj )}(h h]h }(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hj5hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjBhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hstruct media_device *mdevh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj )}(h h]h }(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubh)}(hhh]j7)}(h media_deviceh]h media_device}(hjxhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjuubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjzmodnameN classnameNjj)}j]j# c.vb2_qbufasbuh1hhjVubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjVubj7)}(hmdevh]hmdev}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjVubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hstruct v4l2_buffer *bh](j)}(hjh]hstruct}(hjʠhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjƠubj )}(h h]h }(hjנhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjƠubh)}(hhh]j7)}(h v4l2_bufferh]h v4l2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j# c.vb2_qbufasbuh1hhjƠubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjƠubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjƠubj7)}(hjh]hb}(hj!hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjƠubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjhK{ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjhK{ubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhK{hjhhubjc)}(hhh]jh)}(hQueue a buffer from userspaceh]hQueue a buffer from userspace}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK{hjGhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjhK{ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjfubj)}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhK|hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhK|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)}(hjh]hstruct media_device *mdev}(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]jh)}(hEpointer to :c:type:`struct media_device `, may be NULL.h](h pointer to }(hjhhhNhNubh)}(h,:c:type:`struct media_device `h]j)}(hj h]hstruct media_device}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj media_deviceuh1hhjhK}hjubh, may be NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhK}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK}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)}(hjCh]hstruct v4l2_buffer *b}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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]jh)}(hrbuffer structure passed from userspace to :c:type:`v4l2_ioctl_ops->vidioc_qbuf ` handler in driverh](h*buffer structure passed from userspace to }(hj\hhhNhNubh)}(h6:c:type:`v4l2_ioctl_ops->vidioc_qbuf `h]j)}(hjfh]hv4l2_ioctl_ops->vidioc_qbuf}(hjhhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhK~hj\ubh handler in driver}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhK~hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjubeh}(h]h ]h"]h$]h&]uh1jhjfubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjfubjh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjߢhKhjfubjh)}(hThis function:h]hThis function:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjfubj)}(hhh](j)}(hverifies the passed buffer;h]jh)}(hjh]hverifies the passed buffer;}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hjif **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the buffer to the request.h]jh)}(hjif **b->request_fd** is non-zero and **mdev->ops->req_queue** is set, then bind the buffer to the request.h](hif }(hjhhhNhNubj)}(h**b->request_fd**h]h b->request_fd}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is non-zero and }(hjhhhNhNubj)}(h**mdev->ops->req_queue**h]hmdev->ops->req_queue}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- is set, then bind the buffer to the request.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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]jh)}(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 }(hjUhhhNhNubh)}(h(:c:type:`vb2_ops->buf_prepare `h]j)}(hj_h]hvb2_ops->buf_prepare}(hjahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjUubhg callback in the driver (if provided), in which driver-specific buffer initialization can be performed;C}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj|hKhjQubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hif streaming is on, queues the buffer in driver by the means of :c:type:`vb2_ops->buf_queue ` callback for processing. h]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjfubjh)}(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)}(hj٣h]hv4l2_ioctl_ops->vidioc_qbuf}(hjۣhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjףubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjhKhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_expbuf (C function) c.vb2_expbufhNtauh1hhhhhhNhNubh)}(hhh](j)}(hBint vb2_expbuf (struct vb2_queue *q, struct v4l2_exportbuffer *eb)h]j)}(hAint vb2_expbuf(struct vb2_queue *q, struct v4l2_exportbuffer *eb)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 }(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj/hKubj1)}(h vb2_expbufh]j7)}(h vb2_expbufh]h vb2_expbuf}(hjBhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj>ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhj/hKubj$)}(h3(struct vb2_queue *q, struct v4l2_exportbuffer *eb)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubj )}(h h]h }(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj|hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjyubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj~modnameN classnameNjj)}j]j`$)}jX$jDsb c.vb2_expbufasbuh1hhjZubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjZubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjZubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjVubj$)}(hstruct v4l2_exportbuffer *ebh](j)}(hjh]hstruct}(hjϤhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjˤubj )}(h h]h }(hjܤhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjˤubh)}(hhh]j7)}(hv4l2_exportbufferh]hv4l2_exportbuffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j c.vb2_expbufasbuh1hhjˤubj )}(h h]h }(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjˤubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjˤubj7)}(hebh]heb}(hj&hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjˤubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjVubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhj/hKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhj/hKubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj/hKhjhhubjc)}(hhh]jh)}(h$Export a buffer as a file descriptorh]h$Export a buffer as a file descriptor}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjMhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjlubj)}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(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)}(hjh]hstruct v4l2_exportbuffer *eb}(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]jh)}(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 }(hjhhhNhNubh)}(h8:c:type:`v4l2_ioctl_ops->vidioc_expbuf `h]j)}(hjh]hv4l2_ioctl_ops->vidioc_expbuf}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghj-hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjlubjh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjlubjh)}(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 }(hjbhhhNhNubh)}(h8:c:type:`v4l2_ioctl_ops->vidioc_expbuf `h]j)}(hjlh]hv4l2_ioctl_ops->vidioc_expbuf}(hjnhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjbubh handler in driver.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_dqbuf (C function) c.vb2_dqbufhNtauh1hhhhhhNhNubh)}(hhh](j)}(hLint vb2_dqbuf (struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking)h]j)}(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 ]j,ah"]h$]h&]uh1jhjhhhj¦hKubj1)}(h vb2_dqbufh]j7)}(h vb2_dqbufh]h vb2_dqbuf}(hjզhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjѦubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhj¦hKubj$)}(h>(struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jצsb c.vb2_dqbufasbuh1hhjubj )}(h h]h }(hj/hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hj=hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjJhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hstruct v4l2_buffer *bh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ubj )}(h h]h }(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^ubh)}(hhh]j7)}(h v4l2_bufferh]h v4l2_buffer}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j+ c.vb2_dqbufasbuh1hhj^ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^ubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj^ubj7)}(hjh]hb}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hbool nonblockingh](j#)}(hj#h]hbool}(hjѧhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjͧubj )}(h h]h }(hjާhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjͧubj7)}(h nonblockingh]h nonblocking}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjͧubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhj¦hKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhj¦hKubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj¦hKhjhhubjc)}(hhh]jh)}(h!Dequeue a buffer to the userspaceh]h!Dequeue a buffer to the userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhj¦hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj2ubj)}(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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjQubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjphhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hjzh]hstruct vb2_queue}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjlhKhjpubh with videobuf2 queue.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjlhKhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjNubj)}(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.hhKhjubj)}(hhh]jh)}(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)}(hj֨h]hv4l2_ioctl_ops->vidioc_dqbuf}(hjبhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjԨubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjhKhjɨubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȨhKhjNubj)}(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)}(hjh]hbool nonblocking}(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]jh)}(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 (}(hj)hhhNhNubh)}(h:c:type:`file->f_flags `h]j)}(hj3h]h file->f_flags}(hj5hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfileuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj)ubh & }(hj)hhhNhNubj)}(h``O_NONBLOCK``h]h O_NONBLOCK}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh) here}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjPhKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj2ubjh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype 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&]uh1jghjhKhj2ubjh)}(hThis function:h]hThis function:}(hjɩhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj2ubj)}(hhh](j)}(hverifies the passed buffer;h]jh)}(hjݩh]hverifies the passed buffer;}(hjߩhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj۩ubah}(h]h ]h"]h$]h&]uh1jhjةubj)}(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]jh)}(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 }(hjhhhNhNubh)}(h':c:type:`vb2_ops->buf_finish `h]j)}(hjh]hvb2_ops->buf_finish}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvb2_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubh 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;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjةubj)}(hRthe buffer struct members are filled with relevant information for the userspace. h]jh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj/ubah}(h]h ]h"]h$]h&]uh1jhjةubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj2ubjh)}(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 }(hjNhhhNhNubh)}(h7:c:type:`v4l2_ioctl_ops->vidioc_dqbuf `h]j)}(hjXh]hv4l2_ioctl_ops->vidioc_dqbuf}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjNubh handler in driver.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjuhKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_streamon (C function)c.vb2_streamonhNtauh1hhhhhhNhNubh)}(hhh](j)}(h?int vb2_streamon (struct vb2_queue *q, enum v4l2_buf_type type)h]j)}(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 }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhKubj1)}(h vb2_streamonh]j7)}(h vb2_streamonh]h vb2_streamon}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjhKubj$)}(h.(struct vb2_queue *q, enum v4l2_buf_type type)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjݪhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj٪ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj٪ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jêsbc.vb2_streamonasbuh1hhj٪ubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj٪ubjt$)}(hjw$h]h*}(hj)hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj٪ubj7)}(hj$h]hq}(hj6hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj٪ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjժubj$)}(henum v4l2_buf_type typeh](j)}(hjh]henum}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj )}(h h]h }(hj[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubh)}(hhh]j7)}(h v4l2_buf_typeh]h v4l2_buf_type}(hjlhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjiubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjnmodnameN classnameNjj)}j]jc.vb2_streamonasbuh1hhjJubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubj7)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjJubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjժubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjhKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjhKubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhKhjhhubjc)}(hhh]jh)}(hstart streamingh]hstart streaming}(hj«hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjګjjګjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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)}(hj_h]henum v4l2_buf_type type}(hjahhhNhNubah}(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.hhKhjYubj)}(hhh]jh)}(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 }(hjxhhhNhNubh)}(h,:c:type:`enum v4l2_buf_type `h]j)}(hjh]henum v4l2_buf_type}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj v4l2_buf_typeuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjxubh.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKhjubeh}(h]h ]h"]h$]h&]uh1jhjޫubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjޫubjh)}(heShould be called from :c:type:`v4l2_ioctl_ops->vidioc_streamon ` handler of a driver.h](hShould be called from }(hjԬhhhNhNubh)}(h::c:type:`v4l2_ioctl_ops->vidioc_streamon `h]j)}(hjެh]hv4l2_ioctl_ops->vidioc_streamon}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjܬubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjԬubh handler of a driver.}(hjԬhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjޫubjh)}(hThis function:h]hThis function:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjޫubj)}(hhh](j)}(hverifies current stateh]jh)}(hjh]hverifies current state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hHpasses any previously queued buffers to the driver and starts streaming h]jh)}(hGpasses any previously queued buffers to the driver and starts streamingh]hGpasses any previously queued buffers to the driver and starts streaming}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjޫubjh)}(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 }(hjOhhhNhNubh)}(h::c:type:`v4l2_ioctl_ops->vidioc_streamon `h]j)}(hjYh]hv4l2_ioctl_ops->vidioc_streamon}(hj[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjv4l2_ioctl_opsuh1hhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjOubh handler in the driver.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjvhKhjޫubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_streamoff (C function)c.vb2_streamoffhNtauh1hhhhhhNhNubh)}(hhh](j)}(h@int vb2_streamoff (struct vb2_queue *q, enum v4l2_buf_type type)h]j)}(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 ]j,ah"]h$]h&]uh1jhjhhhjhKubj1)}(h vb2_streamoffh]j7)}(h vb2_streamoffh]h vb2_streamoff}(hj­hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjhKubj$)}(h.(struct vb2_queue *q, enum v4l2_buf_type type)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjޭhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjڭubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjڭubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jĭsbc.vb2_streamoffasbuh1hhjڭubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjڭubjt$)}(hjw$h]h*}(hj*hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjڭubj7)}(hj$h]hq}(hj7hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjڭubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj֭ubj$)}(henum v4l2_buf_type typeh](j)}(hjh]henum}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKubj )}(h h]h }(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubh)}(hhh]j7)}(h v4l2_buf_typeh]h v4l2_buf_type}(hjmhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjomodnameN classnameNjj)}j]jc.vb2_streamoffasbuh1hhjKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj7)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjKubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj֭ubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjhKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjhKubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhKhjhhubjc)}(hhh]jh)}(hstop streamingh]hstop streaming}(hjîhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjۮjjۮjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhKhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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)}(hj`h]henum v4l2_buf_type type}(hjbhhhNhNubah}(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.hhKhjZubj)}(hhh]jh)}(h?type argument passed from userspace to vidioc_streamoff handlerh]h?type argument passed from userspace to vidioc_streamoff handler}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjuhKhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjubeh}(h]h ]h"]h$]h&]uh1jhj߮ubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj߮ubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj߮ubjh)}(hThis function:h]hThis function:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj߮ubj)}(hhh](j)}(hverifies current state,h]jh)}(hjԯh]hverifies current state,}(hj֯hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjүubah}(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]jh)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjϯubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj߮ubjh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj߮ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_init (C function)c.vb2_queue_inithNtauh1hhhhhhNhNubh)}(hhh](j)}(h(int vb2_queue_init (struct vb2_queue *q)h]j)}(h'int vb2_queue_init(struct vb2_queue *q)h](j#)}(hinth]hint}(hj8hhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hj4hhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKubj )}(h h]h }(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4hhhjFhKubj1)}(hvb2_queue_inith]j7)}(hvb2_queue_inith]hvb2_queue_init}(hjYhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjUubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hj4hhhjFhKubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$j[sbc.vb2_queue_initasbuh1hhjqubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjqubj7)}(hj$h]hq}(hjΰhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjqubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjmubah}(h]h ]h"]h$]h&]hhuh1j$hj4hhhjFhKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj0hhhjFhKubah}(h]j+ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjFhKhj-hhubjc)}(hhh]jh)}(hinitialize a videobuf2 queueh]hinitialize a videobuf2 queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jbhj-hhhjFhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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)}(hj8h]hstruct vb2_queue *q}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj2ubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjQhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj[h]hstruct vb2_queue}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjMhKhjQubh with videobuf2 queue.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubjh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h vb2_queue_init_name (C function)c.vb2_queue_init_namehNtauh1hhhhhhNhNubh)}(hhh](j)}(h?int vb2_queue_init_name (struct vb2_queue *q, const char *name)h]j)}(h>int vb2_queue_init_name(struct vb2_queue *q, const char *name)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.hhKubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjױhhhjhKubj1)}(hvb2_queue_init_nameh]j7)}(hvb2_queue_init_nameh]hvb2_queue_init_name}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjױhhhjhKubj$)}(h'(struct vb2_queue *q, const char *name)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hj6hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj8modnameN classnameNjj)}j]j`$)}jX$jsbc.vb2_queue_init_nameasbuh1hhjubj )}(h h]h }(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjdhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjqhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hconst char *nameh](j)}(hj:h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj#)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hnameh]hname}(hjͲhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjױhhhjhKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjӱhhhjhKubah}(h]jαah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhKhjбhhubjc)}(hhh]jh)}(h(initialize a videobuf2 queue with a nameh]h(initialize a videobuf2 queue with a name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jbhjбhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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)}(hj8h]hstruct vb2_queue *q}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhj2ubj)}(hhh]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hjQhhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj[h]hstruct vb2_queue}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjMhKhjQubh with videobuf2 queue.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubj)}(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]jh)}(hthe queue nameh]hthe queue name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hjϳh]h Description}(hjѳhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͳubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubjh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_release (C function)c.vb2_queue_releasehNtauh1hhhhhhNhNubh)}(hhh](j)}(h,void vb2_queue_release (struct vb2_queue *q)h]j)}(h+void vb2_queue_release(struct vb2_queue *q)h](j#)}(hvoidh]hvoid}(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 ]j,ah"]h$]h&]uh1jhjhhhj"hKubj1)}(hvb2_queue_releaseh]j7)}(hvb2_queue_releaseh]hvb2_queue_release}(hj5hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj1ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhj"hKubj$)}(h(struct vb2_queue *q)h]j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj )}(h h]h }(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjohhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjlubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjqmodnameN classnameNjj)}j]j`$)}jX$j7sbc.vb2_queue_releaseasbuh1hhjMubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjMubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjMubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjIubah}(h]h ]h"]h$]h&]hhuh1j$hjhhhj"hKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhj hhhj"hKubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj"hKhj hhubjc)}(hhh]jh)}(h1stop streaming, release the queue and free memoryh]h1stop streaming, release the queue and free memory}(hjӴhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjдhhubah}(h]h ]h"]h$]h&]uh1jbhj hhhj"hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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]jh)}(hGpointer to :c:type:`struct vb2_queue ` with videobuf2 queue.h](h pointer to }(hj-hhhNhNubh)}(h&:c:type:`struct vb2_queue `h]j)}(hj7h]hstruct vb2_queue}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhj)hKhj-ubh with videobuf2 queue.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghj)hKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"vb2_queue_change_type (C function)c.vb2_queue_change_typehNtauh1hhhhhhNhNubh)}(hhh](j)}(hBint vb2_queue_change_type (struct vb2_queue *q, unsigned int type)h]j)}(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 ]j,ah"]h$]h&]uh1jhjhhhjŵhMubj1)}(hvb2_queue_change_typeh]j7)}(hvb2_queue_change_typeh]hvb2_queue_change_type}(hjصhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjԵubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjŵhMubj$)}(h((struct vb2_queue *q, unsigned int type)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$jڵsbc.vb2_queue_change_typeasbuh1hhjubj )}(h h]h }(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hj@hhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hj$h]hq}(hjMhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubj$)}(hunsigned int typeh](j#)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjaubj )}(h h]h }(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj#)}(hinth]hint}(hjhhhNhNubah}(h]h ]j#ah"]h$]h&]uh1j#hjaubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj7)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjaubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hjubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjŵhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjŵhMubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjŵhMhjhhubjc)}(hhh]jh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjĶhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjŵhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߶jj߶jjjuh1hhhhhhNhNubj)}(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.Kh](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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)}(hjh]hstruct vb2_queue *q}(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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhMhj!ubh with videobuf2 queue.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hD``unsigned int type`` the type to change to (V4L2_BUF_TYPE_VIDEO_*) h](j)}(h``unsigned int type``h]j)}(hjdh]hunsigned int type}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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]jh)}(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&]uh1jghjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_poll (C function) c.vb2_pollhNtauh1hhhhhhNhNubh)}(hhh](j)}(hL__poll_t vb2_poll (struct vb2_queue *q, struct file *file, poll_table *wait)h]j)}(hK__poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)h](h)}(hhh]j7)}(h__poll_th]h__poll_t}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjmodnameN classnameNjj)}j]j`$)}jX$vb2_pollsb c.vb2_pollasbuh1hhjhhhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj1)}(hvb2_pollh]j7)}(hjh]hvb2_poll}(hj*hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj&ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhjhMubj$)}(h:(struct vb2_queue *q, struct file *file, poll_table *wait)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj )}(h h]h }(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjchhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjemodnameN classnameNjj)}j]j c.vb2_pollasbuh1hhjAubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjAubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjAubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj=ubj$)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(hfileh]hfile}(hjҸhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjϸubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjԸmodnameN classnameNjj)}j]j c.vb2_pollasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj=ubj$)}(hpoll_table *waith](h)}(hhh]j7)}(h poll_tableh]h poll_table}(hj'hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj)modnameN classnameNjj)}j]j c.vb2_pollasbuh1hhj ubj )}(h h]h }(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubjt$)}(hjw$h]h*}(hjShhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj ubj7)}(hwaith]hwait}(hj`hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj=ubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhjhMubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhjhMubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhjhMhjhhubjc)}(hhh]jh)}(h#implements poll userspace operationh]h#implements poll userspace operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/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]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhMhjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhMhjubah}(h]h ]h"]h$]h&]uh1jhjŹubeh}(h]h ]h"]h$]h&]uh1jhjhMhj¹ubj)}(hN``struct file *file`` file argument passed to the poll file operation handler 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.hhMhj!ubj)}(hhh]jh)}(h7file argument passed to the poll file operation handlerh]h7file argument passed to the poll file operation handler}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj¹ubj)}(hM``poll_table *wait`` wait argument passed to the poll file operation handler h](j)}(h``poll_table *wait``h]j)}(hj`h]hpoll_table *wait}(hjbhhhNhNubah}(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.hhMhjZubj)}(hhh]jh)}(h7wait argument passed to the poll file operation handlerh]h7wait argument passed to the poll file operation handler}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhj¹ubeh}(h]h ]h"]h$]h&]uh1jhjubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhjubjh)}(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&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_queue_is_busy (C function)c.vb2_queue_is_busyhNtauh1hhhhhhNhNubh)}(hhh](j)}(h?bool vb2_queue_is_busy (struct vb2_queue *q, struct file *file)h]j)}(h>bool vb2_queue_is_busy(struct vb2_queue *q, struct file *file)h](j#)}(hj#h]hbool}(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.hhM1ubj )}(h h]h }(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj hM1ubj1)}(hvb2_queue_is_busyh]j7)}(hvb2_queue_is_busyh]hvb2_queue_is_busy}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhj hM1ubj$)}(h((struct vb2_queue *q, struct file *file)h](j$)}(hstruct vb2_queue *qh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj )}(h h]h }(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubh)}(hhh]j7)}(h vb2_queueh]h vb2_queue}(hjXhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjUubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetjZmodnameN classnameNjj)}j]j`$)}jX$j sbc.vb2_queue_is_busyasbuh1hhj6ubj )}(h h]h }(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hj6ubj7)}(hj$h]hq}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj6ubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj2ubj$)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubh)}(hhh]j7)}(hfileh]hfile}(hjɻhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjƻubah}(h]h ]h"]h$]h&] refdomainjreftypejX$ reftargetj˻modnameN classnameNjj)}j]jtc.vb2_queue_is_busyasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubjt$)}(hjw$h]h*}(hjhhhNhNubah}(h]h ]j$ah"]h$]h&]uh1js$hjubj7)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1j$hj2ubeh}(h]h ]h"]h$]h&]hhuh1j$hjhhhj hM1ubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhj hM1ubah}(h]jah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj hM1hjhhubjc)}(hhh]jh)}(hcheck if the queue is busyh]hcheck if the queue is busy}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM1hj)hhubah}(h]h ]h"]h$]h&]uh1jbhjhhhj hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhhhNhNubj)}(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](jh)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM5hjHubj)}(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)}(hjmh]hstruct vb2_queue *q}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM2hjgubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj vb2_queueuh1hhjhM2hjubh with videobuf2 queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjdubj)}(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]jh)}(h4file through which the vb2 queue access is performedh]h4file through which the vb2 queue access is performed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj޼hM3hj߼ubah}(h]h ]h"]h$]h&]uh1jhjüubeh}(h]h ]h"]h$]h&]uh1jhj޼hM3hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubjh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM5hjHubjh)}(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 }(hjhhhNhNubj)}(h**file**h]hfile}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM4hjHubjh)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhM7hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(vb2_video_unregister_device (C function)c.vb2_video_unregister_devicehNtauh1hhhhhhNhNubh)}(hhh](j)}(h` **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](jh)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhhjFubj)}(hhh]j)}(hV``struct video_device *vdev`` pointer to :c:type:`struct video_device ` h](j)}(h``struct video_device *vdev``h]j)}(hjkh]hstruct video_device *vdev}(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.hhMfhjeubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj video_deviceuh1hhjhMfhjubeh}(h]h ]h"]h$]h&]uh1jghjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjbubah}(h]h ]h"]h$]h&]uh1jhjFubjh)}(h**Description**h]j)}(hjžh]h Description}(hjǾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjþubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMhhjFubjh)}(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().}(hj۾hhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMghjFubjh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghn/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:10: ./include/media/videobuf2-v4l2.hhMjhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvb2_vmarea_handler (C struct)c.vb2_vmarea_handlerhNtauh1hhhhhhNhNubh)}(hhh](j)}(hvb2_vmarea_handlerh]j)}(hstruct vb2_vmarea_handlerh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKubj )}(h h]h }(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj&hKubj1)}(hvb2_vmarea_handlerh]j7)}(hjh]hvb2_vmarea_handler}(hj9hhhNhNubah}(h]h ]jBah"]h$]h&]uh1j6hj5ubah}(h]h ](jIjJeh"]h$]h&]hhuh1j0hjhhhj&hKubeh}(h]h ]h"]h$]h&]hhjTuh1jjUjVhjhhhj&hKubah}(h]j ah ](jZj[eh"]h$]h&]j_j`)jahuh1jhj&hKhjhhubjc)}(hhh]jh)}(h%common vma refcount tracking handler.h]h%common vma refcount tracking handler.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jghp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhjXhhubah}(h]h ]h"]h$]h&]uh1jbhjhhhj&hKubeh}(h]h ](jstructeh"]h$]h&]jjjjsjjsjjjuh1hhhhhhNhNubj)}(hXM **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](j+)}(h**Definition**:: struct vb2_vmarea_handler { refcount_t *refcount; void (*put)(void *arg); void *arg; }; h](jh)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhj{ubjN)}(histruct vb2_vmarea_handler { refcount_t *refcount; void (*put)(void *arg); void *arg; };h]histruct vb2_vmarea_handler { refcount_t *refcount; void (*put)(void *arg); void *arg; };}hjsbah}(h]h ]h"]h$]h&]hhuh1jMhp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhj{ubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjwubjh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jghp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhK"hjwubj)}(hhh](j)}(hB``refcount`` pointer to :c:type:`refcount_t` entry in the buffer. h](j)}(h ``refcount``h]j)}(hjҿh]hrefcount}(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.hhKhj̿ubj)}(hhh]jh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj refcount_tuh1hhjhKhjubh entry in the buffer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghjhKhjubah}(h]h ]h"]h$]h&]uh1jhj̿ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjɿubj)}(h=``put`` callback to function that decreases buffer refcount. h](j)}(h``put``h]j)}(hj.h]hput}(hj0hhhNhNubah}(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.hhKhj(ubj)}(hhh]jh)}(h4callback to function that decreases buffer refcount.h]h4callback to function that decreases buffer refcount.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjChKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKhjɿubj)}(h&``arg`` argument for **put** callback.h](j)}(h``arg``h]j)}(hjgh]harg}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhjaubj)}(hhh]jh)}(hargument for **put** callback.h](h argument for }(hjhhhNhNubj)}(h**put**h]hput}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jghp/var/lib/git/docbuild/linux/Documentation/driver-api/media/v4l2-videobuf2:12: ./include/media/videobuf2-memops.hhKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhjɿubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(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_sourcehnj _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}(hhjhhjjjj1j6js jx j4j9jijnj/j4jMjRjjj#j#j_%jd%j'j'j)j)j,j,j.j.j0j0j3j3jh8jm8j>j>jAjAjDjDjDIjIIjLjLjuOjzOjQjRjVjVj/Yj4YjZjZj\j\j_j_jcjcjfjfjjjjjAnjFnjojoj