€•šDŒ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”Œ6/translations/zh_CN/userspace-api/media/dvb/dmx-expbuf”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/zh_TW/userspace-api/media/dvb/dmx-expbuf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/it_IT/userspace-api/media/dvb/dmx-expbuf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/ja_JP/userspace-api/media/dvb/dmx-expbuf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/ko_KR/userspace-api/media/dvb/dmx-expbuf”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ6/translations/sp_SP/userspace-api/media/dvb/dmx-expbuf”Œ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ŸŒP/var/lib/git/docbuild/linux/Documentation/userspace-api/media/dvb/dmx-expbuf.rst”h KubhŒtarget”“”)”}”(hŒ.. _DMX_EXPBUF:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œ dmx-expbuf”uh1h´h KhhhžhhŸh³ubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒioctl DMX_EXPBUF”h]”hŒioctl DMX_EXPBUF”…””}”(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Œ9DMX_EXPBUF - Export a buffer as a DMABUF file descriptor.”h]”hŒ9DMX_EXPBUF - Export a buffer as a DMABUF file descriptor.”…””}”(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_EXPBUF (C macro)”Œc.DTV.dmx.DMX_EXPBUF”hNt”auh1j*hjhžhhŸNh NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒ DMX_EXPBUF”h]”hŒdesc_signature_line”“”)”}”(hŒ DMX_EXPBUF”h]”hŒ desc_name”“”)”}”(hŒ DMX_EXPBUF”h]”hŒ desc_sig_name”“”)”}”(hjDh]”hŒ DMX_EXPBUF”…””}”(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Œ@``int ioctl(int fd, DMX_EXPBUF, struct dmx_exportbuffer *argp)``”h]”hŒliteral”“”)”}”(hj™h]”hŒŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj-Œ dmx_reqbufs”uh1hhŸh³h K(hjóubhŒ (struct ”…””}”(hjóhžhhŸNh Nubh)”}”(hŒ:c:type:`dmx_requestbuffers`”h]”jœ)”}”(hjVh]”hŒdmx_requestbuffers”…””}”(hjXhžhhŸNh Nubah}”(h]”h ]”(jjŒŒc-type”eh"]”h$]”h&]”uh1j›hjTubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”jŒŒreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jjj-Œdmx_requestbuffers”uh1hhŸh³h K(hjóubhŒ ”…””}”(hjóhžhhŸNh Nubjœ)”}”(hŒ ``count``”h]”hŒcount”…””}”(hjwhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjóubhŒ3) minus one. Additional flags may be posted in the ”…””}”(hjóhžhhŸNh Nubjœ)”}”(hŒ ``flags``”h]”hŒflags”…””}”(hj‰hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjóubhŒó field. Refer to a manual for open() for details. Currently only O_CLOEXEC, O_RDONLY, O_WRONLY, and O_RDWR are supported. All other fields must be set to zero. In the case of multi-planar API, every plane is exported separately using multiple ”…””}”(hjóhžhhŸNh Nubh)”}”(hŒ:ref:`DMX_EXPBUF`”h]”jÌ)”}”(hjh]”hŒ DMX_EXPBUF”…””}”(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-Œ dmx_expbuf”uh1hhŸh³h K(hjóubhŒ calls.”…””}”(hjóhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K(hj®hžhubhé)”}”(hX%After calling :ref:`DMX_EXPBUF` the ``fd`` field will be set by a driver, on success. This is a DMABUF file descriptor. The application may pass it to other DMABUF-aware devices. It is recommended to close a DMABUF file when it is no longer used to allow the associated memory to be reclaimed.”h]”(hŒAfter calling ”…””}”(hjÅhžhhŸNh Nubh)”}”(hŒ:ref:`DMX_EXPBUF`”h]”jÌ)”}”(hjÏh]”hŒ DMX_EXPBUF”…””}”(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-Œ dmx_expbuf”uh1hhŸh³h K3hjÅubhŒ the ”…””}”(hjÅhžhhŸNh Nubjœ)”}”(hŒ``fd``”h]”hŒfd”…””}”(hjñhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjÅubhŒû field will be set by a driver, on success. This is a DMABUF file descriptor. The application may pass it to other DMABUF-aware devices. It is recommended to close a DMABUF file when it is no longer used to allow the associated memory to be reclaimed.”…””}”(hjÅhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K3hj®hžhubeh}”(h]”Œ description”ah ]”h"]”Œ description”ah$]”h&]”uh1hÂhhÄhžhhŸh³h K"ubhÃ)”}”(hhh]”(hÈ)”}”(hŒExamples”h]”hŒExamples”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhjhžhhŸh³h K9ubhŒ literal_block”“”)”}”(hX\int buffer_export(int v4lfd, enum dmx_buf_type bt, int index, int *dmafd) { struct dmx_exportbuffer expbuf; memset(&expbuf, 0, sizeof(expbuf)); expbuf.type = bt; expbuf.index = index; if (ioctl(v4lfd, DMX_EXPBUF, &expbuf) == -1) { perror("DMX_EXPBUF"); return -1; } *dmafd = expbuf.fd; return 0; }”h]”hX\int buffer_export(int v4lfd, enum dmx_buf_type bt, int index, int *dmafd) { struct dmx_exportbuffer expbuf; memset(&expbuf, 0, sizeof(expbuf)); expbuf.type = bt; expbuf.index = index; if (ioctl(v4lfd, DMX_EXPBUF, &expbuf) == -1) { perror("DMX_EXPBUF"); return -1; } *dmafd = expbuf.fd; return 0; }”…””}”hj$sbah}”(h]”h ]”h"]”h$]”h&]”h±h²Œforce”‰Œlanguage”jŒŒhighlight_args”}”uh1j"hŸh³h K;hjhžhubeh}”(h]”Œexamples”ah ]”h"]”Œexamples”ah$]”h&]”uh1hÂhhÄhžhhŸh³h K9ubhÃ)”}”(hhh]”(hÈ)”}”(hŒ Return Value”h]”hŒ Return Value”…””}”(hjAhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhj>hžhhŸh³h KOubhé)”}”(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 ”…””}”(hjOhžhhŸNh Nubjœ)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjWhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjOubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjOhžhhŸNh Nubh)”}”(hŒ':ref:`Generic Error Codes `”h]”jÌ)”}”(hjkh]”hŒGeneric Error Codes”…””}”(hjmhžhhŸNh Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jËhjiubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”jwŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj-Œ gen-errors”uh1hhŸh³h KQhjOubhŒ chapter.”…””}”(hjOhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h KQhj>hžhubjÊ)”}”(hhh]”jÏ)”}”(hŒuEINVAL A queue is not in MMAP mode or DMABUF exporting is not supported or ``flags`` or ``index`` fields are invalid.”h]”(jÕ)”}”(hŒEINVAL”h]”hŒEINVAL”…””}”(hjšhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÔhŸh³h KVhj–ubjî)”}”(hhh]”hé)”}”(hŒnA queue is not in MMAP mode or DMABUF exporting is not supported or ``flags`` or ``index`` fields are invalid.”h]”(hŒDA queue is not in MMAP mode or DMABUF exporting is not supported or ”…””}”(hj«hžhhŸNh Nubjœ)”}”(hŒ ``flags``”h]”hŒflags”…””}”(hj³hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hj«ubhŒ or ”…””}”(hj«hžhhŸNh Nubjœ)”}”(hŒ ``index``”h]”hŒindex”…””}”(hjÅhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hj«ubhŒ fields are invalid.”…””}”(hj«hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h KVhj¨ubah}”(h]”h ]”h"]”h$]”h&]”uh1jíhj–ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÎhŸh³h KVhj“ubah}”(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 KOubeh}”(h]”(Œioctl-dmx-expbuf”hÁeh ]”h"]”(Œioctl dmx_expbuf”Œ dmx_expbuf”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üjùjjjµj²j«j¨jj j;j8jôjñuŒ nametypes”}”(jýˆjü‰j‰jµ‰j«‰j‰j;‰jô‰uh}”(hÁhÄjùhÄjh×j²jj9jBj¨j¸j j®j8jjñ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Œ0Hyperlink target "dmx-expbuf" 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.