€•Ù@Œ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Œ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é)”}”(hhüh]”hŒthis API is still experimental”…””}”(hhþhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h Khhúubah}”(h]”h ]”h"]”h$]”h&]”uh1hø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”…””}”(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”ŒDTV.dmx.DMX_REQBUFS (C macro)”Œc.DTV.dmx.DMX_REQBUFS”hNt”auh1j*hjhž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”“”)”}”(hjDh]”hŒ DMX_REQBUFS”…””}”(hjThžhhŸNh Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1jRhjNubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”h±h²uh1jLhjHhžhhŸh³h Kubah}”(h]”h ]”h"]”h$]”h&]”h±h²Œ add_permalink”ˆuh1jFŒsphinx_line_type”Œ declarator”hjBhžhhŸh³h Kubah}”(h]”j9ah ]”(Œ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&]”uh1j~hj=hžhhŸh³h Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”jŒŒobjtype”jŒdesctype”jŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j;hžhhjhŸ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)”…””}”(hjhž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”jŒŒc-func”eh"]”h$]”h&]”uh1j›hjúubah}”(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†”j#)”}”j&Œdmx”sbN†”esbŒ 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Œ9``argp`` Pointer to struct :c:type:`dmx_requestbuffers`. ”h]”(jÕ)”}”(hŒ``argp``”h]”jœ)”}”(hjKh]”hŒargp”…””}”(hjMhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjIubah}”(h]”h ]”h"]”h$]”h&]”uh1jÔhŸh³h KhjEubjî)”}”(hhh]”hé)”}”(hŒ/Pointer to struct :c:type:`dmx_requestbuffers`.”h]”(hŒPointer to struct ”…””}”(hjchžhhŸNh Nubh)”}”(hŒ:c:type:`dmx_requestbuffers`”h]”jœ)”}”(hjmh]”hŒdmx_requestbuffers”…””}”(hjohžhhŸNh Nubah}”(h]”h ]”(jjŒŒc-type”eh"]”h$]”h&]”uh1j›hjkubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”jŒŒreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jjj-Œdmx_requestbuffers”uh1hhŸh³h KhjcubhŒ.”…””}”(hjchžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h Khj`ubah}”(h]”h ]”h"]”h$]”h&]”uh1jíhjEubeh}”(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”‰jjj-Œ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”…””}”(hjhž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 ”…””}”(hj0hžhhŸNh Nubjœ)”}”(hŒ ``count``”h]”hŒcount”…””}”(hj8hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hj0ubhŒ field. The ”…””}”(hj0hžhhŸNh Nubjœ)”}”(hŒ ``count``”h]”hŒcount”…””}”(hjJhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hj0ubhŒñ 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 ”…””}”(hj0hžhhŸNh Nubjœ)”}”(hŒ``size``”h]”hŒsize”…””}”(hj\hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hj0ubhŒ-, and can be smaller than what’s requested.”…””}”(hj0hž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 ”…””}”(hjóhžhhŸNh Nubjœ)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjûhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjóubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjóhžhhŸNh Nubh)”}”(hŒ':ref:`Generic Error Codes `”h]”j¡)”}”(hjh]”hŒGeneric Error Codes”…””}”(hjhž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 KFhjóubhŒ chapter.”…””}”(hjóhž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”…””}”(hj>hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÔhŸh³h KJhj:ubjî)”}”(hhh]”hé)”}”(hŒ/The the requested I/O method is not supported.”h]”hŒ/The the requested I/O method is not supported.”…””}”(hjOhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h KKhjLubah}”(h]”h ]”h"]”h$]”h&]”uh1jíhj:ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÎhŸh³h KJhj7ubah}”(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Áj|jyjjjµj²j«j¨jßjÜjtjquŒ nametypes”}”(j}ˆj|‰j‰jµ‰j«‰j߉jt‰uh}”(hÁhÄjyhÄjh×j²jj9jBj¨j¸jÜj®jqjâ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.”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”uh1hèhjubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”h³Œline”Kuh1j ubaŒ transformer”NŒ include_log”]”Œ decoration”Nhžhub.