€•ÈAŒ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”Œ7/translations/zh_CN/userspace-api/media/dvb/dmx-reqbufs”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/zh_TW/userspace-api/media/dvb/dmx-reqbufs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/it_IT/userspace-api/media/dvb/dmx-reqbufs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/ja_JP/userspace-api/media/dvb/dmx-reqbufs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/ko_KR/userspace-api/media/dvb/dmx-reqbufs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/pt_BR/userspace-api/media/dvb/dmx-reqbufs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/sp_SP/userspace-api/media/dvb/dmx-reqbufs”Œ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³ŒQ/var/lib/git/docbuild/linux/Documentation/userspace-api/media/dvb/dmx-reqbufs.rst”h´KubhŒtarget”“”)”}”(hŒ.. _DMX_REQBUFS:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œ dmx-reqbufs”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒioctl DMX_REQBUFS”h]”hŒioctl DMX_REQBUFS”…””}”(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Œ;DMX_REQBUFS - Initiate Memory Mapping and/or DMA buffer I/O”h]”hŒ;DMX_REQBUFS - Initiate Memory Mapping and/or DMA buffer I/O”…””}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K hhëh²hubhŒwarning”“”)”}”(hŒthis API is still experimental”h]”hý)”}”(hjh]”hŒthis API is still experimental”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1j hhëh²hh³hÇh´Nubeh}”(h]”Œname”ah ]”h"]”Œname”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K ubh×)”}”(hhh]”(hÜ)”}”(hŒSynopsis”h]”hŒSynopsis”…””}”(hj0h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj-h²hh³hÇh´KubhŒindex”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”ŒDTV.dmx.DMX_REQBUFS (C macro)”Œc.DTV.dmx.DMX_REQBUFS”hNt”auh1j>hj-h²hh³Nh´NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒ DMX_REQBUFS”h]”hŒdesc_signature_line”“”)”}”(hŒ DMX_REQBUFS”h]”hŒ desc_name”“”)”}”(hŒ DMX_REQBUFS”h]”hŒ desc_sig_name”“”)”}”(hjXh]”hŒ DMX_REQBUFS”…””}”(hjhh²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1jfhjbubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”hÅhÆuh1j`hj\h²hh³hÇh´Kubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒ add_permalink”ˆuh1jZŒsphinx_line_type”Œ declarator”hjVh²hh³hÇh´Kubah}”(h]”jMah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1jTh³hÇh´KhjQh²hubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1j’hjQh²hh³hÇh´Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”j Œobjtype”j¡Œdesctype”j¡Œnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1jOh²hhj-h³Nh´Nubhý)”}”(hŒC``int ioctl(int fd, DMX_REQBUFS, struct dmx_requestbuffers *argp)``”h]”hŒliteral”“”)”}”(hj­h]”hŒ?int ioctl(int fd, DMX_REQBUFS, struct dmx_requestbuffers *argp)”…””}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj«ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khj-h²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 ”…””}”(hjh²hh³Nh´Nubh)”}”(hŒ:c:func:`open()`”h]”j°)”}”(hjh]”hŒopen()”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”(Œxref”j Œc-func”eh"]”h$]”h&]”uh1j¯hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ#userspace-api/media/dvb/dmx-reqbufs”Œ refdomain”j Œreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”(j/Œ ASTIdentifier”“”)”}”Œ identifier”ŒDTV”sbN†”j7)”}”j:Œdmx”sbN†”esbŒ reftarget”Œopen”uh1hh³hÇh´KhjubhŒ.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjäubeh}”(h]”h ]”h"]”h$]”h&]”uh1jâh³hÇh´Khjßubjã)”}”(hŒ9``argp`` Pointer to struct :c:type:`dmx_requestbuffers`. ”h]”(jé)”}”(hŒ``argp``”h]”j°)”}”(hj_h]”hŒargp”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèh³hÇh´KhjYubj)”}”(hhh]”hý)”}”(hŒ/Pointer to struct :c:type:`dmx_requestbuffers`.”h]”(hŒPointer to struct ”…””}”(hjwh²hh³Nh´Nubh)”}”(hŒ:c:type:`dmx_requestbuffers`”h]”j°)”}”(hjh]”hŒdmx_requestbuffers”…””}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”(jj Œc-type”eh"]”h$]”h&]”uh1j¯hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j(Œ refdomain”j Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰j.j2jAŒdmx_requestbuffers”uh1hh³hÇh´KhjwubhŒ.”…””}”(hjwh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjYubeh}”(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ý)”}”(hŒIThis ioctl is used to initiate a memory mapped or DMABUF based demux I/O.”h]”hŒIThis ioctl is used to initiate a memory mapped or DMABUF based demux I/O.”…””}”(hjÓh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K$hjÂh²hubhý)”}”(hXþMemory mapped buffers are located in device memory and must be allocated with this ioctl before they can be mapped into the application's address space. User buffers are allocated by applications themselves, and this ioctl is merely used to switch the driver into user pointer I/O mode and to setup some internal structures. Similarly, DMABUF buffers are allocated by applications through a device driver, and this ioctl only configures the driver into DMABUF I/O mode without performing any direct allocation.”h]”hXMemory mapped buffers are located in device memory and must be allocated with this ioctl before they can be mapped into the application’s address space. User buffers are allocated by applications themselves, and this ioctl is merely used to switch the driver into user pointer I/O mode and to setup some internal structures. Similarly, DMABUF buffers are allocated by applications through a device driver, and this ioctl only configures the driver into DMABUF I/O mode without performing any direct allocation.”…””}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K&hjÂh²hubhý)”}”(hŒÝTo allocate device buffers applications initialize all fields of the struct :c:type:`dmx_requestbuffers` structure. They set the ``count`` field to the desired number of buffers, and ``size`` to the size of each buffer.”h]”(hŒLTo allocate device buffers applications initialize all fields of the struct ”…””}”(hjïh²hh³Nh´Nubh)”}”(hŒ:c:type:`dmx_requestbuffers`”h]”j°)”}”(hjùh]”hŒdmx_requestbuffers”…””}”(hjûh²hh³Nh´Nubah}”(h]”h ]”(jj Œc-type”eh"]”h$]”h&]”uh1j¯hj÷ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j(Œ refdomain”j Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰j.j2jAŒdmx_requestbuffers”uh1hh³hÇh´K/hjïubhŒ structure. They set the ”…””}”(hjïh²hh³Nh´Nubj°)”}”(hŒ ``count``”h]”hŒcount”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hjïubhŒ. field to the desired number of buffers, and ”…””}”(hjïh²hh³Nh´Nubj°)”}”(hŒ``size``”h]”hŒsize”…””}”(hj,h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hjïubhŒ to the size of each buffer.”…””}”(hjïh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K/hjÂh²hubhý)”}”(hXòWhen the ioctl is called with a pointer to this structure, the driver will attempt to allocate the requested number of buffers and it stores the actual number allocated in the ``count`` field. The ``count`` can be smaller than the number requested, even zero, when the driver runs out of free memory. A larger number is also possible when the driver requires more buffers to function correctly. The actual allocated buffer size can is returned at ``size``, and can be smaller than what's requested.”h]”(hŒ°When the ioctl is called with a pointer to this structure, the driver will attempt to allocate the requested number of buffers and it stores the actual number allocated in the ”…””}”(hjDh²hh³Nh´Nubj°)”}”(hŒ ``count``”h]”hŒcount”…””}”(hjLh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hjDubhŒ field. The ”…””}”(hjDh²hh³Nh´Nubj°)”}”(hŒ ``count``”h]”hŒcount”…””}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hjDubhŒñ can be smaller than the number requested, even zero, when the driver runs out of free memory. A larger number is also possible when the driver requires more buffers to function correctly. The actual allocated buffer size can is returned at ”…””}”(hjDh²hh³Nh´Nubj°)”}”(hŒ``size``”h]”hŒsize”…””}”(hjph²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hjDubhŒ-, and can be smaller than what’s requested.”…””}”(hjDh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K4hjÂh²hubhý)”}”(hŒVWhen this I/O method is not supported, the ioctl returns an ``EOPNOTSUPP`` error code.”h]”(hŒhj¨ubhŒi again to change the number of buffers, however this cannot succeed when any buffers are still mapped. A ”…””}”(hj¨h²hh³Nh´Nubj°)”}”(hŒ ``count``”h]”hŒcount”…””}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj¨ubhŒR value of zero frees all buffers, after aborting or finishing any DMA in progress.”…””}”(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”…””}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjöh²hh³hÇh´KDubhý)”}”(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 ”…””}”(hjh²hh³Nh´Nubj°)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hjubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjh²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”ˆjAŒ gen-errors”uh1hh³hÇh´KFhjubhŒ chapter.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KFhjöh²hubjÞ)”}”(hhh]”jã)”}”(hŒ:EOPNOTSUPP The the requested I/O method is not supported.”h]”(jé)”}”(hŒ EOPNOTSUPP”h]”hŒ EOPNOTSUPP”…””}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jèh³hÇh´KJhjNubj)”}”(hhh]”hý)”}”(hŒ/The the requested I/O method is not supported.”h]”hŒ/The the requested I/O method is not supported.”…””}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KKhj`ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjNubeh}”(h]”h ]”h"]”h$]”h&]”uh1jâh³hÇh´KJhjKubah}”(h]”h ]”h"]”h$]”h&]”uh1jÝhjöh²hh³hÇh´Nubeh}”(h]”Œ return-value”ah ]”h"]”Œ return value”ah$]”h&]”uh1hÖhhØh²hh³hÇh´KDubeh}”(h]”(Œioctl-dmx-reqbufs”hÕeh ]”h"]”(Œioctl dmx_reqbufs”Œ dmx_reqbufs”eh$]”h&]”uh1hÖhhh²hh³hÇh´KŒexpect_referenced_by_name”}”j‘hÊ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”}”(j‘hÕjjj*j'jÉjÆj¿j¼jójðjˆj…uŒ nametypes”}”(j‘ˆj‰j*‰jɉj¿‰jó‰jˆ‰uh}”(hÕhØjhØj'hëjÆj-jMjVj¼jÌjðjÂj…jöuŒ 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Œ1Hyperlink target "dmx-reqbufs" 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.