€•ÔKŒ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”Œ5/translations/zh_CN/userspace-api/media/rc/lirc-write”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/zh_TW/userspace-api/media/rc/lirc-write”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/it_IT/userspace-api/media/rc/lirc-write”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/ja_JP/userspace-api/media/rc/lirc-write”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/ko_KR/userspace-api/media/rc/lirc-write”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/pt_BR/userspace-api/media/rc/lirc-write”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/sp_SP/userspace-api/media/rc/lirc-write”Œ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ŒCSPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later”h]”hŒCSPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒO/var/lib/git/docbuild/linux/Documentation/userspace-api/media/rc/lirc-write.rst”h´KubhŒtarget”“”)”}”(hŒ.. _lirc-write:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œ lirc-write”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ LIRC write()”h]”hŒ LIRC write()”…””}”(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Œ#lirc-write - Write to a LIRC device”h]”hŒ#lirc-write - Write to a LIRC device”…””}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K hhëh²hubeh}”(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Œ literal_block”“”)”}”(hŒ#include ”h]”hŒ#include ”…””}”hj'sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒforce”‰Œlanguage”Œc”Œhighlight_args”}”uh1j%h³hÇh´Khjh²hubhŒindex”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”ŒRC.write (C function)”Œ c.RC.write”hNt”auh1j:hjh²hh³Nh´NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒ0ssize_t write( int fd, void *buf, size_t count )”h]”hŒdesc_signature_line”“”)”}”(hŒ.ssize_t write(int fd, void *buf, size_t count)”h]”(h)”}”(hhh]”hŒ desc_sig_name”“”)”}”(hŒssize_t”h]”hŒssize_t”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1j_hj\ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”j7Œreftype”Œ identifier”Œ reftarget”jcŒmodname”NŒ classname”NŒ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”(j}Œ ASTIdentifier”“”)”}”jxŒRC”sbN†”j…)”}”jxŒwrite”sbŒ c.RC.write”†”esbuh1hhjXh²hh³hÇh´KubhŒdesc_sig_space”“”)”}”(hŒ ”h]”hŒ ”…””}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”Œw”ah"]”h$]”h&]”uh1jhjXh²hh³hÇh´KubhŒ desc_name”“”)”}”(hŒwrite”h]”j`)”}”(hjŒh]”hŒwrite”…””}”(hj¦h²hh³Nh´Nubah}”(h]”h ]”jlah"]”h$]”h&]”uh1j_hj¢ubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”hÅhÆuh1j hjXh²hh³hÇh´KubhŒdesc_parameterlist”“”)”}”(hŒ!(int fd, void *buf, size_t count)”h]”(hŒdesc_parameter”“”)”}”(hŒint fd”h]”(hŒdesc_sig_keyword_type”“”)”}”(hŒint”h]”hŒint”…””}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”Œkt”ah"]”h$]”h&]”uh1jÇhjÃubj)”}”(hŒ ”h]”hŒ ”…””}”(hjØh²hh³Nh´Nubah}”(h]”h ]”jœah"]”h$]”h&]”uh1jhjÃubj`)”}”(hŒfd”h]”hŒfd”…””}”(hjæh²hh³Nh´Nubah}”(h]”h ]”jlah"]”h$]”h&]”uh1j_hjÃubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1jÁhj½ubjÂ)”}”(hŒ void *buf”h]”(jÈ)”}”(hŒvoid”h]”hŒvoid”…””}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”jÔah"]”h$]”h&]”uh1jÇhjûubj)”}”(hŒ ”h]”hŒ ”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”jœah"]”h$]”h&]”uh1jhjûubhŒdesc_sig_punctuation”“”)”}”(hŒ*”h]”hŒ*”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”Œp”ah"]”h$]”h&]”uh1jhjûubj`)”}”(hŒbuf”h]”hŒbuf”…””}”(hj,h²hh³Nh´Nubah}”(h]”h ]”jlah"]”h$]”h&]”uh1j_hjûubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1jÁhj½ubjÂ)”}”(hŒ size_t count”h]”(h)”}”(hhh]”j`)”}”(hŒsize_t”h]”hŒsize_t”…””}”(hjHh²hh³Nh´Nubah}”(h]”h ]”jlah"]”h$]”h&]”uh1j_hjEubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”j7Œreftype”jxŒ reftarget”jJŒmodname”NŒ classname”Nj|j)”}”j‚]”(j†N†”jŠŒ c.RC.write”†”esbuh1hhjAubj)”}”(hŒ ”h]”hŒ ”…””}”(hjgh²hh³Nh´Nubah}”(h]”h ]”jœah"]”h$]”h&]”uh1jhjAubj`)”}”(hŒcount”h]”hŒcount”…””}”(hjuh²hh³Nh´Nubah}”(h]”h ]”jlah"]”h$]”h&]”uh1j_hjAubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1jÁhj½ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j»hjXh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒ add_permalink”ˆuh1jVŒsphinx_line_type”Œ declarator”hjRh²hh³hÇh´Kubah}”(h]”jIah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1jPh³hÇh´KhjMh²hubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1j¤hjMh²hh³hÇh´Kubeh}”(h]”h ]”(j7Œfunction”eh"]”h$]”h&]”Œdomain”j7Œobjtype”j²Œdesctype”j²Œnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1jKh²hhjh³Nh´Nubeh}”(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Œ/``fd`` File descriptor returned by ``open()``. ”h]”(hŒterm”“”)”}”(hŒ``fd``”h]”hŒliteral”“”)”}”(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 ``open()``.”h]”(hŒFile descriptor returned by ”…””}”(hjh²hh³Nh´Nubjç)”}”(hŒ ``open()``”h]”hŒopen()”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhjubhŒ.”…””}”(hjh²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Œ'``buf`` Buffer with data to be written ”h]”(já)”}”(hŒ``buf``”h]”jç)”}”(hj2h]”hŒbuf”…””}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhj0ubah}”(h]”h ]”h"]”h$]”h&]”uh1jàh³hÇh´Khj,ubjü)”}”(hhh]”hý)”}”(hŒBuffer with data to be written”h]”hŒBuffer with data to be written”…””}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KhjGubah}”(h]”h ]”h"]”h$]”h&]”uh1jûhj,ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÚh³hÇh´Khj×h²hubjÛ)”}”(hŒ(``count`` Number of bytes at the buffer ”h]”(já)”}”(hŒ ``count``”h]”jç)”}”(hjjh]”hŒcount”…””}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhjhubah}”(h]”h ]”h"]”h$]”h&]”uh1jàh³hÇh´K"hjdubjü)”}”(hhh]”hý)”}”(hŒNumber of bytes at the buffer”h]”hŒNumber of bytes at the buffer”…””}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K"hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jûhjdubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÚh³hÇh´K"hj×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ŒŠ:c:func:`write()` writes up to ``count`` bytes to the device referenced by the file descriptor ``fd`` from the buffer starting at ``buf``.”h]”(h)”}”(hŒ:c:func:`write()`”h]”jç)”}”(hjÁh]”hŒwrite()”…””}”(hjÃh²hh³Nh´Nubah}”(h]”h ]”(Œxref”j7Œc-func”eh"]”h$]”h&]”uh1jæhj¿ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ!userspace-api/media/rc/lirc-write”Œ refdomain”j7Œreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j|j)”}”j‚]”j†N†”asbŒ reftarget”Œwrite”uh1hh³hÇh´K'hj»ubhŒ writes up to ”…””}”(hj»h²hh³Nh´Nubjç)”}”(hŒ ``count``”h]”hŒcount”…””}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhj»ubhŒ7 bytes to the device referenced by the file descriptor ”…””}”(hj»h²hh³Nh´Nubjç)”}”(hŒ``fd``”h]”hŒfd”…””}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhj»ubhŒ from the buffer starting at ”…””}”(hj»h²hh³Nh´Nubjç)”}”(hŒ``buf``”h]”hŒbuf”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhj»ubhŒ.”…””}”(hj»h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K'hjªh²hubhý)”}”(hŒ©The exact format of the data depends on what mode a driver is in, use :ref:`lirc_get_features` to get the supported modes and use :ref:`lirc_set_send_mode` set the mode.”h]”(hŒFThe exact format of the data depends on what mode a driver is in, use ”…””}”(hj%h²hh³Nh´Nubh)”}”(hŒ:ref:`lirc_get_features`”h]”hŒinline”“”)”}”(hj/h]”hŒlirc_get_features”…””}”(hj3h²hh³Nh´Nubah}”(h]”h ]”(jÍŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j1hj-ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÙŒ refdomain”j=Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjãŒlirc_get_features”uh1hh³hÇh´K+hj%ubhŒ$ to get the supported modes and use ”…””}”(hj%h²hh³Nh´Nubh)”}”(hŒ:ref:`lirc_set_send_mode`”h]”j2)”}”(hjUh]”hŒlirc_set_send_mode”…””}”(hjWh²hh³Nh´Nubah}”(h]”h ]”(jÍŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j1hjSubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÙŒ refdomain”jaŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjãŒlirc_set_send_mode”uh1hh³hÇh´K+hj%ubhŒ set the mode.”…””}”(hj%h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K+hjªh²hubhý)”}”(hXÕWhen in :ref:`LIRC_MODE_PULSE ` mode, the data written to the chardev is a pulse/space sequence of integer values. Pulses and spaces are only marked implicitly by their position. The data must start and end with a pulse, therefore, the data must always include an uneven number of samples. The write function blocks until the data has been transmitted by the hardware. If more data is provided than the hardware can send, the driver returns ``EINVAL``.”h]”(hŒWhen in ”…””}”(hj}h²hh³Nh´Nubh)”}”(hŒ(:ref:`LIRC_MODE_PULSE `”h]”j2)”}”(hj‡h]”hŒLIRC_MODE_PULSE”…””}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”(jÍŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j1hj…ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÙŒ refdomain”j“Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjãŒlirc-mode-pulse”uh1hh³hÇh´K/hj}ubhXš mode, the data written to the chardev is a pulse/space sequence of integer values. Pulses and spaces are only marked implicitly by their position. The data must start and end with a pulse, therefore, the data must always include an uneven number of samples. The write function blocks until the data has been transmitted by the hardware. If more data is provided than the hardware can send, the driver returns ”…””}”(hj}h²hh³Nh´Nubjç)”}”(hŒ ``EINVAL``”h]”hŒEINVAL”…””}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhj}ubhŒ.”…””}”(hj}h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K/hjªh²hubhý)”}”(hXBWhen in :ref:`LIRC_MODE_SCANCODE ` mode, one ``struct lirc_scancode`` must be written to the chardev at a time, else ``EINVAL`` is returned. Set the desired scancode in the ``scancode`` member, and the :ref:`IR protocol ` in the :c:type:`rc_proto`: member. All other members must be set to 0, else ``EINVAL`` is returned. If there is no protocol encoder for the protocol or the scancode is not valid for the specified protocol, ``EINVAL`` is returned. The write function blocks until the scancode is transmitted by the hardware.”h]”(hŒWhen in ”…””}”(hjÁh²hh³Nh´Nubh)”}”(hŒ.:ref:`LIRC_MODE_SCANCODE `”h]”j2)”}”(hjËh]”hŒLIRC_MODE_SCANCODE”…””}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”(jÍŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j1hjÉubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÙŒ refdomain”j׌reftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjãŒlirc-mode-scancode”uh1hh³hÇh´K7hjÁubhŒ mode, one ”…””}”(hjÁh²hh³Nh´Nubjç)”}”(hŒ``struct lirc_scancode``”h]”hŒstruct lirc_scancode”…””}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhjÁubhŒ0 must be written to the chardev at a time, else ”…””}”(hjÁh²hh³Nh´Nubjç)”}”(hŒ ``EINVAL``”h]”hŒEINVAL”…””}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhjÁubhŒ. is returned. Set the desired scancode in the ”…””}”(hjÁh²hh³Nh´Nubjç)”}”(hŒ ``scancode``”h]”hŒscancode”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhjÁubhŒ member, and the ”…””}”(hjÁh²hh³Nh´Nubh)”}”(hŒ1:ref:`IR protocol `”h]”j2)”}”(hj%h]”hŒ IR protocol”…””}”(hj'h²hh³Nh´Nubah}”(h]”h ]”(jÍŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j1hj#ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÙŒ refdomain”j1Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjãŒremote_controllers_protocols”uh1hh³hÇh´K7hjÁubhŒ in the ”…””}”(hjÁh²hh³Nh´Nubh)”}”(hŒ:c:type:`rc_proto`”h]”jç)”}”(hjIh]”hŒrc_proto”…””}”(hjKh²hh³Nh´Nubah}”(h]”h ]”(jÍj7Œc-type”eh"]”h$]”h&]”uh1jæhjGubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÙŒ refdomain”j7Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰j|jßjãŒrc_proto”uh1hh³hÇh´K7hjÁubhŒ3: member. All other members must be set to 0, else ”…””}”(hjÁh²hh³Nh´Nubjç)”}”(hŒ ``EINVAL``”h]”hŒEINVAL”…””}”(hjjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhjÁubhŒx is returned. If there is no protocol encoder for the protocol or the scancode is not valid for the specified protocol, ”…””}”(hjÁh²hh³Nh´Nubjç)”}”(hŒ ``EINVAL``”h]”hŒEINVAL”…””}”(hj|h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jæhjÁubhŒZ is returned. The write function blocks until the scancode is transmitted by the hardware.”…””}”(hjÁh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K7hjª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´KBubhý)”}”(hX]On success, the number of bytes written is returned. It is not an error if this number is smaller than the number of bytes requested, or the amount of data required for one frame. On error, -1 is returned, and the ``errno`` variable is set appropriately. The generic error codes are described at the :ref:`Generic Error Codes ` chapter.”h]”(hŒ×On success, the number of bytes written is returned. It is not an error if this number is smaller than the number of bytes requested, or the amount of data required for one frame. On error, -1 is returned, 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]”j2)”}”(hjÉh]”hŒGeneric Error Codes”…””}”(hjËh²hh³Nh´Nubah}”(h]”h ]”(jÍŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j1hjÇubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÙŒ refdomain”jÕŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj㌠gen-errors”uh1hh³hÇh´KDhj­ubhŒ chapter.”…””}”(hj­h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KDhjœh²hubeh}”(h]”Œ return-value”ah ]”h"]”Œ return value”ah$]”h&]”uh1hÖhhØh²hh³hÇh´KBubeh}”(h]”(hÕŒid1”eh ]”h"]”(Œ lirc write()”Œ lirc-write”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¤j™j–jöjóuŒ nametypes”}”(jÿˆjþ‰j‰jÁ‰j§‰j™‰jö‰uh}”(hÕhØjûhØjhëj¾jjIjRj¤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”“”}”j7Ks…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hý)”}”(hhh]”hŒ0Hyperlink target "lirc-write" is not referenced.”…””}”hj“sbah}”(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.