€•û8Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ>/translations/zh_CN/userspace-api/media/v4l/vidioc-prepare-buf”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ>/translations/zh_TW/userspace-api/media/v4l/vidioc-prepare-buf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ>/translations/it_IT/userspace-api/media/v4l/vidioc-prepare-buf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ>/translations/ja_JP/userspace-api/media/v4l/vidioc-prepare-buf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ>/translations/ko_KR/userspace-api/media/v4l/vidioc-prepare-buf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ>/translations/sp_SP/userspace-api/media/v4l/vidioc-prepare-buf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later”h]”hŒ8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒX/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/vidioc-prepare-buf.rst”h KubhŒtarget”“”)”}”(hŒ.. _VIDIOC_PREPARE_BUF:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œvidioc-prepare-buf”uh1h´h KhhhžhhŸh³ubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒioctl VIDIOC_PREPARE_BUF”h]”hŒioctl VIDIOC_PREPARE_BUF”…””}”(hhÉhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhhÄhžhhŸh³h KubhÃ)”}”(hhh]”(hÈ)”}”(hŒName”h]”hŒName”…””}”(hhÚhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhh×hžhhŸh³h K ubhŒ paragraph”“”)”}”(hŒ-VIDIOC_PREPARE_BUF - Prepare a buffer for I/O”h]”hŒ-VIDIOC_PREPARE_BUF - Prepare a buffer for I/O”…””}”(hhêhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K hh×hžhubeh}”(h]”Œname”ah ]”h"]”Œname”ah$]”h&]”uh1hÂhhÄhžhhŸh³h K ubhÃ)”}”(hhh]”(hÈ)”}”(hŒSynopsis”h]”hŒSynopsis”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhjhžhhŸh³h KubhŒindex”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”Œ V4L.VIDIOC_PREPARE_BUF (C macro)”Œc.V4L.VIDIOC_PREPARE_BUF”hNt”auh1jhjhžhhŸNh NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒVIDIOC_PREPARE_BUF”h]”hŒdesc_signature_line”“”)”}”(hŒVIDIOC_PREPARE_BUF”h]”hŒ desc_name”“”)”}”(hŒVIDIOC_PREPARE_BUF”h]”hŒ desc_sig_name”“”)”}”(hj+h]”hŒVIDIOC_PREPARE_BUF”…””}”(hj;hžhhŸNh Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1j9hj5ubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”h±h²uh1j3hj/hžhhŸh³h Kubah}”(h]”h ]”h"]”h$]”h&]”h±h²Œ add_permalink”ˆuh1j-Œsphinx_line_type”Œ declarator”hj)hžhhŸh³h Kubah}”(h]”j ah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1j'hŸh³h Khj$hžhubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jehj$hžhhŸh³h Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”jsŒobjtype”jtŒdesctype”jtŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j"hžhhjhŸNh Nubhé)”}”(hŒC``int ioctl(int fd, VIDIOC_PREPARE_BUF, struct v4l2_buffer *argp)``”h]”hŒliteral”“”)”}”(hj€h]”hŒ?int ioctl(int fd, VIDIOC_PREPARE_BUF, struct v4l2_buffer *argp)”…””}”(hj„hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hj~ubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h Khjhžhubeh}”(h]”Œsynopsis”ah ]”h"]”Œsynopsis”ah$]”h&]”uh1hÂhhÄhžhhŸh³h KubhÃ)”}”(hhh]”(hÈ)”}”(hŒ Arguments”h]”hŒ Arguments”…””}”(hj¢hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhjŸhžhhŸh³h KubhŒdefinition_list”“”)”}”(hhh]”(hŒdefinition_list_item”“”)”}”(hŒ5``fd`` File descriptor returned by :c:func:`open()`. ”h]”(hŒterm”“”)”}”(hŒ``fd``”h]”jƒ)”}”(hj¿h]”hŒfd”…””}”(hjÁhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hj½ubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hŸh³h Khj·ubhŒ definition”“”)”}”(hhh]”hé)”}”(hŒ-File descriptor returned by :c:func:`open()`.”h]”(hŒFile descriptor returned by ”…””}”(hjÙhžhhŸNh Nubh)”}”(hŒ:c:func:`open()`”h]”jƒ)”}”(hjãh]”hŒopen()”…””}”(hjåhžhhŸNh Nubah}”(h]”h ]”(Œxref”jsŒc-func”eh"]”h$]”h&]”uh1j‚hjáubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ*userspace-api/media/v4l/vidioc-prepare-buf”Œ refdomain”jsŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”jŒ ASTIdentifier”“”)”}”Œ identifier”ŒV4L”sbN†”asbŒ reftarget”Œopen”uh1hhŸh³h KhjÙubhŒ.”…””}”(hjÙhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h KhjÖubah}”(h]”h ]”h"]”h$]”h&]”uh1jÔhj·ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhŸh³h Khj²ubj¶)”}”(hŒ2``argp`` Pointer to struct :c:type:`v4l2_buffer`. ”h]”(j¼)”}”(hŒ``argp``”h]”jƒ)”}”(hj.h]”hŒargp”…””}”(hj0hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hj,ubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hŸh³h Khj(ubjÕ)”}”(hhh]”hé)”}”(hŒ(Pointer to struct :c:type:`v4l2_buffer`.”h]”(hŒPointer to struct ”…””}”(hjFhžhhŸNh Nubh)”}”(hŒ:c:type:`v4l2_buffer`”h]”jƒ)”}”(hjPh]”hŒ v4l2_buffer”…””}”(hjRhžhhŸNh Nubah}”(h]”h ]”(jïjsŒc-type”eh"]”h$]”h&]”uh1j‚hjNubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jûŒ refdomain”jsŒreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jjjŒ v4l2_buffer”uh1hhŸh³h KhjFubhŒ.”…””}”(hjFhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h KhjCubah}”(h]”h ]”h"]”h$]”h&]”uh1jÔhj(ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhŸh³h Khj²hžhubeh}”(h]”h ]”h"]”h$]”h&]”uh1j°hjŸhžhhŸh³h Nubeh}”(h]”Œ arguments”ah ]”h"]”Œ arguments”ah$]”h&]”uh1hÂhhÄhžhhŸh³h KubhÃ)”}”(hhh]”(hÈ)”}”(hŒ Description”h]”hŒ Description”…””}”(hj”hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhj‘hžhhŸh³h K ubhé)”}”(hX_Applications can optionally call the :ref:`VIDIOC_PREPARE_BUF` ioctl to pass ownership of the buffer to the driver before actually enqueuing it, using the :ref:`VIDIOC_QBUF ` ioctl, and to prepare it for future I/O. Such preparations may include cache invalidation or cleaning. Performing them in advance saves time during the actual I/O.”h]”(hŒ%Applications can optionally call the ”…””}”(hj¢hžhhŸNh Nubh)”}”(hŒ:ref:`VIDIOC_PREPARE_BUF`”h]”hŒinline”“”)”}”(hj¬h]”hŒVIDIOC_PREPARE_BUF”…””}”(hj°hžhhŸNh Nubah}”(h]”h ]”(jïŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j®hjªubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jûŒ refdomain”jºŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjŒvidioc_prepare_buf”uh1hhŸh³h K"hj¢ubhŒ] ioctl to pass ownership of the buffer to the driver before actually enqueuing it, using the ”…””}”(hj¢hžhhŸNh Nubh)”}”(hŒ :ref:`VIDIOC_QBUF `”h]”j¯)”}”(hjÒh]”hŒ VIDIOC_QBUF”…””}”(hjÔhžhhŸNh Nubah}”(h]”h ]”(jïŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j®hjÐubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jûŒ refdomain”jÞŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjŒ vidioc_qbuf”uh1hhŸh³h K"hj¢ubhŒ¤ ioctl, and to prepare it for future I/O. Such preparations may include cache invalidation or cleaning. Performing them in advance saves time during the actual I/O.”…””}”(hj¢hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K"hj‘hžhubhé)”}”(hŒIThe struct :c:type:`v4l2_buffer` structure is specified in :ref:`buffer`.”h]”(hŒ The struct ”…””}”(hjúhžhhŸNh Nubh)”}”(hŒ:c:type:`v4l2_buffer`”h]”jƒ)”}”(hjh]”hŒ v4l2_buffer”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”(jïjsŒc-type”eh"]”h$]”h&]”uh1j‚hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jûŒ refdomain”jsŒreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jjjŒ v4l2_buffer”uh1hhŸh³h K(hjúubhŒ structure is specified in ”…””}”(hjúhžhhŸNh Nubh)”}”(hŒ :ref:`buffer`”h]”j¯)”}”(hj'h]”hŒbuffer”…””}”(hj)hžhhŸNh Nubah}”(h]”h ]”(jïŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j®hj%ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jûŒ refdomain”j3Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjŒbuffer”uh1hhŸh³h K(hjúubhŒ.”…””}”(hjúhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K(hj‘hžhubeh}”(h]”Œ description”ah ]”h"]”Œ description”ah$]”h&]”uh1hÂhhÄhžhhŸh³h K ubhÃ)”}”(hhh]”(hÈ)”}”(hŒ Return Value”h]”hŒ Return Value”…””}”(hjZhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhjWhžhhŸh³h K,ubhé)”}”(hŒ´On success 0 is returned, on error -1 and the ``errno`` variable is set appropriately. The generic error codes are described at the :ref:`Generic Error Codes ` chapter.”h]”(hŒ.On success 0 is returned, on error -1 and the ”…””}”(hjhhžhhŸNh Nubjƒ)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjphžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjhubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjhhžhhŸNh Nubh)”}”(hŒ':ref:`Generic Error Codes `”h]”j¯)”}”(hj„h]”hŒGeneric Error Codes”…””}”(hj†hžhhŸNh Nubah}”(h]”h ]”(jïŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j®hj‚ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jûŒ refdomain”jŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjŒ gen-errors”uh1hhŸh³h K.hjhubhŒ chapter.”…””}”(hjhhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K.hjWhžhubj±)”}”(hhh]”(j¶)”}”(hŒEBUSY File I/O is in progress. ”h]”(j¼)”}”(hŒEBUSY”h]”hŒEBUSY”…””}”(hj³hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hŸh³h K3hj¯ubjÕ)”}”(hhh]”hé)”}”(hŒFile I/O is in progress.”h]”hŒFile I/O is in progress.”…””}”(hjÄhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K3hjÁubah}”(h]”h ]”h"]”h$]”h&]”uh1jÔhj¯ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhŸh³h K3hj¬ubj¶)”}”(hŒ¤EINVAL The buffer ``type`` is not supported, or the ``index`` is out of bounds, or no buffers have been allocated yet, or the ``userptr`` or ``length`` are invalid.”h]”(j¼)”}”(hŒEINVAL”h]”hŒEINVAL”…””}”(hjâhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hŸh³h K7hjÞubjÕ)”}”(hhh]”hé)”}”(hŒThe buffer ``type`` is not supported, or the ``index`` is out of bounds, or no buffers have been allocated yet, or the ``userptr`` or ``length`` are invalid.”h]”(hŒ The buffer ”…””}”(hjóhžhhŸNh Nubjƒ)”}”(hŒ``type``”h]”hŒtype”…””}”(hjûhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjóubhŒ is not supported, or the ”…””}”(hjóhžhhŸNh Nubjƒ)”}”(hŒ ``index``”h]”hŒindex”…””}”(hj hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjóubhŒA is out of bounds, or no buffers have been allocated yet, or the ”…””}”(hjóhžhhŸNh Nubjƒ)”}”(hŒ ``userptr``”h]”hŒuserptr”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjóubhŒ or ”…””}”(hjóhžhhŸNh Nubjƒ)”}”(hŒ ``length``”h]”hŒlength”…””}”(hj1hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjóubhŒ are invalid.”…””}”(hjóhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K6hjðubah}”(h]”h ]”h"]”h$]”h&]”uh1jÔhjÞubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhŸh³h K7hj¬hžhubeh}”(h]”h ]”h"]”h$]”h&]”uh1j°hjWhžhhŸh³h Nubeh}”(h]”Œ return-value”ah ]”h"]”Œ return value”ah$]”h&]”uh1hÂhhÄhžhhŸh³h K,ubeh}”(h]”(Œioctl-vidioc-prepare-buf”hÁeh ]”h"]”(Œioctl vidioc_prepare_buf”Œvidioc_prepare_buf”eh$]”h&]”uh1hÂhhhžhhŸh³h KŒexpect_referenced_by_name”}”jih¶sŒexpect_referenced_by_id”}”hÁh¶subeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h³uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÇNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j“Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h³Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”hÁ]”h¶asŒnameids”}”(jihÁjhjehýhújœj™jŽj‹jTjQj`j]uŒ nametypes”}”(jiˆjh‰hý‰jœ‰jމjT‰j`‰uh}”(hÁhÄjehÄhúh×j™jj j)j‹jŸjQj‘j]jWuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hé)”}”(hhh]”hŒ8Hyperlink target "vidioc-prepare-buf" is not referenced.”…””}”hjýsbah}”(h]”h ]”h"]”h$]”h&]”uh1hèhjúubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”h³Œline”Kuh1jøubaŒ transformer”NŒ include_log”]”Œ decoration”Nhžhub.