iCsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget5/translations/zh_CN/userspace-api/media/dvb/dmx-fopenmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/zh_TW/userspace-api/media/dvb/dmx-fopenmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/it_IT/userspace-api/media/dvb/dmx-fopenmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/ja_JP/userspace-api/media/dvb/dmx-fopenmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/ko_KR/userspace-api/media/dvb/dmx-fopenmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/sp_SP/userspace-api/media/dvb/dmx-fopenmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-laterh]h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhO/var/lib/git/docbuild/linux/Documentation/userspace-api/media/dvb/dmx-fopen.rsthKubhtarget)}(h.. _dmx_fopen:h]h}(h]h ]h"]h$]h&]refid dmx-fopenuh1hhKhhhhhhubhsection)}(hhh](htitle)}(hDigital TV demux open()h]hDigital TV demux open()}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hNameh]hName}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh paragraph)}(hDigital TV demux open()h]hDigital TV demux open()}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubeh}(h]nameah ]h"]nameah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hSynopsish]hSynopsis}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singleDTV.dmx.open (C function)c.DTV.dmx.openhNtauh1jhjhhhNhNubhdesc)}(hhh](hdesc_signature)}(h+int open(const char *deviceName, int flags)h]hdesc_signature_line)}(h+int open(const char *deviceName, int flags)h](hdesc_sig_keyword_type)}(hinth]hint}(hj5hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j3hj/hhhhhKubhdesc_sig_space)}(h h]h }(hjFhhhNhNubah}(h]h ]wah"]h$]h&]uh1jDhj/hhhhhKubh desc_name)}(hopenh]h desc_sig_name)}(hopenh]hopen}(hj]hhhNhNubah}(h]h ]nah"]h$]h&]uh1j[hjWubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jUhj/hhhhhKubhdesc_parameterlist)}(h#(const char *deviceName, int flags)h](hdesc_parameter)}(hconst char *deviceNameh](hdesc_sig_keyword)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhj|ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj|ubj4)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j@ah"]h$]h&]uh1j3hj|ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj|ubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhj|ubj\)}(h deviceNameh]h deviceName}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj|ubeh}(h]h ]h"]h$]h&]noemphhhuh1jzhjvubj{)}(h int flagsh](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j@ah"]h$]h&]uh1j3hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jzhjvubeh}(h]h ]h"]h$]h&]hhuh1jthj/hhhhhKubeh}(h]h ]h"]h$]h&]hh add_permalinkuh1j-sphinx_line_type declaratorhj)hhhhhKubah}(h]j ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j'hhhKhj$hhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1j0hj$hhhhhKubeh}(h]h ](cfunctioneh"]h$]h&]domainj>objtypej?desctypej?noindex noindexentrynocontentsentryuh1j"hhhjhNhNubeh}(h]synopsisah ]h"]synopsisah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Argumentsh]h Arguments}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhhhhhKubhdefinition_list)}(hhh](hdefinition_list_item)}(h3``name`` Name of specific Digital TV demux device. h](hterm)}(h``name``h]hliteral)}(hjqh]hname}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jshjoubah}(h]h ]h"]h$]h&]uh1jmhhhKhjiubh definition)}(hhh]h)}(h)Name of specific Digital TV demux device.h]h)Name of specific Digital TV demux device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jghhhKhjdubjh)}(h0``flags`` A bit-wise OR of the following flags: h](jn)}(h ``flags``h]jt)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj)}(hhh]h)}(h%A bit-wise OR of the following flags:h]h%A bit-wise OR of the following flags:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjdhhubeh}(h]h ]h"]h$]h&]uh1jbhjQhhhhhNubhtabular_col_spec)}(hhh]h}(h]h ]h"]h$]h&]spec|p{2.5cm}|p{15.0cm}|uh1jhhhKhjQhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h ``O_RDONLY``h]jt)}(hj#h]hO_RDONLY}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jshj!ubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hread-only accessh]hread-only access}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hj>ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h ``O_RDWR``h]jt)}(hjch]hO_RDWR}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jshjaubah}(h]h ]h"]h$]h&]uh1hhhhK)hj^ubah}(h]h ]h"]h$]h&]uh1jhj[ubj)}(hhh]h)}(hread/write accessh]hread/write access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hj~ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h``O_NONBLOCK``h]jt)}(hjh]h O_NONBLOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h8open in non-blocking mode (blocking mode is the default)h]h8open in non-blocking mode (blocking mode is the default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjQhhhNhNubeh}(h] argumentsah ]h"] argumentsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK2ubh)}(hXThis system call, used with a device name of ``/dev/dvb/adapter?/demux?``, allocates a new filter and returns a handle which can be used for subsequent control of that filter. This call has to be made for each filter to be used, i.e. every returned file descriptor is a reference to a single filter. ``/dev/dvb/adapter?/dvr?`` is a logical device to be used for retrieving Transport Streams for digital video recording. When reading from this device a transport stream containing the packets from all PES filters set in the corresponding demux device (``/dev/dvb/adapter?/demux?``) having the output set to ``DMX_OUT_TS_TAP``. A recorded Transport Stream is replayed by writing to this device.h](h-This system call, used with a device name of }(hjhhhNhNubjt)}(h``/dev/dvb/adapter?/demux?``h]h/dev/dvb/adapter?/demux?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubh, allocates a new filter and returns a handle which can be used for subsequent control of that filter. This call has to be made for each filter to be used, i.e. every returned file descriptor is a reference to a single filter. }(hjhhhNhNubjt)}(h``/dev/dvb/adapter?/dvr?``h]h/dev/dvb/adapter?/dvr?}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubh is a logical device to be used for retrieving Transport Streams for digital video recording. When reading from this device a transport stream containing the packets from all PES filters set in the corresponding demux device (}(hjhhhNhNubjt)}(h``/dev/dvb/adapter?/demux?``h]h/dev/dvb/adapter?/demux?}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubh) having the output set to }(hjhhhNhNubjt)}(h``DMX_OUT_TS_TAP``h]hDMX_OUT_TS_TAP}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubhD. A recorded Transport Stream is replayed by writing to this device.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK4hjhhubh)}(hXPThe significance of blocking or non-blocking mode is described in the documentation for functions where there is a difference. It does not affect the semantics of the ``open()`` call itself. A device opened in blocking mode can later be put into non-blocking mode (and vice versa) using the ``F_SETFL`` command of the fcntl system call.h](hThe significance of blocking or non-blocking mode is described in the documentation for functions where there is a difference. It does not affect the semantics of the }(hj]hhhNhNubjt)}(h ``open()``h]hopen()}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jshj]ubhr call itself. A device opened in blocking mode can later be put into non-blocking mode (and vice versa) using the }(hj]hhhNhNubjt)}(h ``F_SETFL``h]hF_SETFL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jshj]ubh" command of the fcntl system call.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK?hjhhubeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhK2ubh)}(hhh](h)}(h Return Valueh]h Return Value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKFubh)}(hOn success 0 is returned.h]hOn success 0 is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjhhubh)}(hIOn error -1 is returned, and the ``errno`` variable is set appropriately.h](h!On error -1 is returned, and the }(hjhhhNhNubjt)}(h ``errno``h]herrno}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubh variable is set appropriately.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKJhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]j|p{2.5cm}|p{15.0cm}|uh1jhhhKMhjhhubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]j)}(hhh](j)}(hhh]h)}(h ``EMFILE``h]jt)}(hjh]hEMFILE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jshjubah}(h]h ]h"]h$]h&]uh1hhhhKThjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h6"Too many open files", i.e. no more filters available.h]h:“Too many open files”, i.e. no more filters available.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKUhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjhhhNhNubh)}(h]The generic error codes are described at the :ref:`Generic Error Codes ` chapter.h](h-The generic error codes are described at the }(hjPhhhNhNubh)}(h':ref:`Generic Error Codes `h]hinline)}(hjZh]hGeneric Error Codes}(hj^hhhNhNubah}(h]h ](xrefstdstd-refeh"]h$]h&]uh1j\hjXubah}(h]h ]h"]h$]h&]refdoc!userspace-api/media/dvb/dmx-fopen refdomainjireftyperef refexplicitrefwarn reftarget gen-errorsuh1hhhhKWhjPubh chapter.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKWhjhhubeh}(h] return-valueah ]h"] return valueah$]h&]uh1hhhhhhhhKFubeh}(h](digital-tv-demux-openheh ]h"](digital tv demux open() dmx_fopeneh$]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_backlinksjfootnote_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_sourceh _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}(jhjjhhjNjKjjjjjju nametypes}(jjhjNjjjuh}(hhjhhhjKjj j)jjQjjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages]hsystem_message)}(hhh]h)}(hhh]h/Hyperlink target "dmx-fopen" is not referenced.}hj(sbah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1j#uba transformerN include_log] decorationNhhub.