Asphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget6/translations/zh_CN/userspace-api/media/dvb/dmx-fwritemodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget6/translations/zh_TW/userspace-api/media/dvb/dmx-fwritemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget6/translations/it_IT/userspace-api/media/dvb/dmx-fwritemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget6/translations/ja_JP/userspace-api/media/dvb/dmx-fwritemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget6/translations/ko_KR/userspace-api/media/dvb/dmx-fwritemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget6/translations/sp_SP/userspace-api/media/dvb/dmx-fwritemodnameN 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:spacepreserveuh1hhhhhhP/var/lib/git/docbuild/linux/Documentation/userspace-api/media/dvb/dmx-fwrite.rsthKubhtarget)}(h.. _dmx_fwrite:h]h}(h]h ]h"]h$]h&]refid dmx-fwriteuh1hhKhhhhhhubhsection)}(hhh](htitle)}(hDigital TV demux write()h]hDigital TV demux write()}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hNameh]hName}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh paragraph)}(hDigital TV demux write()h]hDigital TV demux write()}(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.write (C function)c.DTV.dmx.writehNtauh1jhjhhhNhNubhdesc)}(hhh](hdesc_signature)}(h4ssize_t write(int fd, const void *buf, size_t count)h]hdesc_signature_line)}(h4ssize_t write(int fd, const void *buf, size_t count)h](h)}(hhh]h desc_sig_name)}(hssize_th]hssize_t}(hj8hhhNhNubah}(h]h ]nah"]h$]h&]uh1j6hj3ubah}(h]h ]h"]h$]h&] refdomaincreftype identifier reftargetj:modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data](jU ASTIdentifier)}jPDTVsbNj])}jPdmxsbNj])}jPwritesbc.DTV.dmx.writeesbuh1hhj/hhhhhKubhdesc_sig_space)}(h h]h }(hjmhhhNhNubah}(h]h ]wah"]h$]h&]uh1jkhj/hhhhhKubh desc_name)}(hwriteh]j7)}(hjhh]hwrite}(hjhhhNhNubah}(h]h ]jCah"]h$]h&]uh1j6hj~ubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1j|hj/hhhhhKubhdesc_parameterlist)}(h'(int fd, const void *buf, size_t count)h](hdesc_parameter)}(hint fdh](hdesc_sig_keyword_type)}(hinth]hint}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjubjl)}(h h]h }(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jkhjubj7)}(hfdh]hfd}(hjhhhNhNubah}(h]h ]jCah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hconst void *bufh](hdesc_sig_keyword)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjubjl)}(h h]h }(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jkhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjl)}(h h]h }(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jkhjubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjubj7)}(hbufh]hbuf}(hj'hhhNhNubah}(h]h ]jCah"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h size_t counth](h)}(hhh]j7)}(hsize_th]hsize_t}(hjChhhNhNubah}(h]h ]jCah"]h$]h&]uh1j6hj@ubah}(h]h ]h"]h$]h&] refdomainjNreftypejP reftargetjEmodnameN classnameNjTjW)}jZ](j^NjbNjfc.DTV.dmx.writeesbuh1hhj<ubjl)}(h h]h }(hjchhhNhNubah}(h]h ]jxah"]h$]h&]uh1jkhj<ubj7)}(hcounth]hcount}(hjqhhhNhNubah}(h]h ]jCah"]h$]h&]uh1j6hj<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj/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&]uh1jhj$hhhhhKubeh}(h]h ](jNfunctioneh"]h$]h&]domainjNobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j"hhhjhNhNubeh}(h]synopsisah ]h"]synopsisah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Argumentsh]h Arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhdefinition_list)}(hhh](hdefinition_list_item)}(hH``fd`` File descriptor returned by a previous call to :c:func:`open()`. h](hterm)}(h``fd``h]hliteral)}(hjh]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(h@File descriptor returned by a previous call to :c:func:`open()`.h](h/File descriptor returned by a previous call to }(hjhhhNhNubh)}(h:c:func:`open()`h]j)}(hjh]hopen()}(hjhhhNhNubah}(h]h ](xrefjNc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoc"userspace-api/media/dvb/dmx-fwrite refdomainjNreftypefunc refexplicitrefwarnjTjW)}jZ](j^NjbNesb reftargetopenuh1hhhhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(h'``buf`` Buffer with data to be written h](j)}(h``buf``h]j)}(hjGh]hbuf}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhhhKhjAubj)}(hhh]h)}(hBuffer with data to be writtenh]hBuffer with data to be written}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj\ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(h(``count`` Number of bytes at the buffer h](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhhhKhjyubj)}(hhh]h)}(hNumber of bytes at the bufferh]hNumber of bytes at the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h] argumentsah ]h"] argumentsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK!ubh)}(hXThis system call is only provided by the logical device ``/dev/dvb/adapter?/dvr?``, associated with the physical demux device that provides the actual DVR functionality. It is used for replay of a digitally recorded Transport Stream. Matching filters have to be defined in the corresponding physical demux device, ``/dev/dvb/adapter?/demux?``. The amount of data to be transferred is implied by count.h](h8This system call is only provided by the logical device }(hjhhhNhNubj)}(h``/dev/dvb/adapter?/dvr?``h]h/dev/dvb/adapter?/dvr?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, associated with the physical demux device that provides the actual DVR functionality. It is used for replay of a digitally recorded Transport Stream. Matching filters have to be defined in the corresponding physical demux device, }(hjhhhNhNubj)}(h``/dev/dvb/adapter?/demux?``h]h/dev/dvb/adapter?/demux?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh;. The amount of data to be transferred is implied by count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK#hjhhubeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhK!ubh)}(hhh](h)}(h Return Valueh]h Return Value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK+ubh)}(hOn success 0 is returned.h]hOn success 0 is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hj hhubh)}(hIOn error -1 is returned, and the ``errno`` variable is set appropriately.h](h!On error -1 is returned, and the }(hj)hhhNhNubj)}(h ``errno``h]herrno}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh variable is set appropriately.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK/hj hhubhtabular_col_spec)}(hhh]h}(h]h ]h"]h$]h&]spec|p{2.5cm}|p{15.0cm}|uh1jIhhhK2hj hhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j`hj]ubja)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j`hj]ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h``EWOULDBLOCK``h]j)}(hjh]h EWOULDBLOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhK9hjubah}(h]h ]h"]h$]h&]uh1jhj}ubj)}(hhh]h)}(hNo data was written. This might happen if ``O_NONBLOCK`` was specified and there is no more buffer space available (if ``O_NONBLOCK`` is not specified the function will block until buffer space is available).h](h*No data was written. This might happen if }(hjhhhNhNubj)}(h``O_NONBLOCK``h]h O_NONBLOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? was specified and there is no more buffer space available (if }(hjhhhNhNubj)}(h``O_NONBLOCK``h]h O_NONBLOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK is not specified the function will block until buffer space is available).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK:hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1j{hjxubj|)}(hhh](j)}(hhh]h)}(h ``EBUSY``h]j)}(hjh]hEBUSY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hThis error code indicates that there are conflicting requests. The corresponding demux device is setup to receive data from the front- end. Make sure that these filters are stopped and that the filters with input set to ``DMX_IN_DVR`` are started.h](hThis error code indicates that there are conflicting requests. The corresponding demux device is setup to receive data from the front- end. Make sure that these filters are stopped and that the filters with input set to }(hj hhhNhNubj)}(h``DMX_IN_DVR``h]h DMX_IN_DVR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh are started.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j{hjxubeh}(h]h ]h"]h$]h&]uh1jvhj]ubeh}(h]h ]h"]h$]h&]colsKuh1j[hjXubah}(h]h ]h"]h$]h&]uh1jVhj hhhNhNubh)}(h]The generic error codes are described at the :ref:`Generic Error Codes ` chapter.h](h-The generic error codes are described at the }(hjHhhhNhNubh)}(h':ref:`Generic Error Codes `h]hinline)}(hjRh]hGeneric Error Codes}(hjVhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jThjPubah}(h]h ]h"]h$]h&]refdocj refdomainj`reftyperef refexplicitrefwarnj) gen-errorsuh1hhhhKEhjHubh chapter.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKEhj hhubeh}(h] return-valueah ]h"] return valueah$]h&]uh1hhhhhhhhK+ubeh}(h](digital-tv-demux-writeheh ]h"](digital tv demux write() dmx_fwriteeh$]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}(jhjjhhjjjjjjjj~u nametypes}(jjhjjjjuh}(hhjhhhjjj j)jjjjj~j u 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]h0Hyperlink target "dmx-fwrite" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1juba transformerN include_log] decorationNhhub.