€•í4Œ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”ŒC/translations/zh_CN/userspace-api/media/mediactl/request-func-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒC/translations/zh_TW/userspace-api/media/mediactl/request-func-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒC/translations/it_IT/userspace-api/media/mediactl/request-func-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒC/translations/ja_JP/userspace-api/media/mediactl/request-func-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒC/translations/ko_KR/userspace-api/media/mediactl/request-func-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒC/translations/pt_BR/userspace-api/media/mediactl/request-func-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒC/translations/sp_SP/userspace-api/media/mediactl/request-func-ioctl”Œ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³Œ]/var/lib/git/docbuild/linux/Documentation/userspace-api/media/mediactl/request-func-ioctl.rst”h´KubhŒtarget”“”)”}”(hŒ.. _request-func-ioctl:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œrequest-func-ioctl”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒrequest ioctl()”h]”hŒrequest ioctl()”…””}”(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Œ1request-ioctl - Control a request file descriptor”h]”hŒ1request-ioctl - Control a request file descriptor”…””}”(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ý)”}”(hŒ*``int ioctl(int fd, int cmd, void *argp)``”h]”hŒliteral”“”)”}”(hj<h]”hŒ&int ioctl(int fd, int cmd, void *argp)”…””}”(hj@h²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ŒC``fd`` File descriptor returned by :ref:`MEDIA_IOC_REQUEST_ALLOC`. ”h]”(hŒterm”“”)”}”(hŒ``fd``”h]”j?)”}”(hj{h]”hŒfd”…””}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hjyubah}”(h]”h ]”h"]”h$]”h&]”uh1jwh³hÇh´KhjsubhŒ definition”“”)”}”(hhh]”hý)”}”(hŒ;File descriptor returned by :ref:`MEDIA_IOC_REQUEST_ALLOC`.”h]”(hŒFile descriptor returned by ”…””}”(hj•h²hh³Nh´Nubh)”}”(hŒ:ref:`MEDIA_IOC_REQUEST_ALLOC`”h]”hŒinline”“”)”}”(hjŸh]”hŒMEDIA_IOC_REQUEST_ALLOC”…””}”(hj£h²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1j¡hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ/userspace-api/media/mediactl/request-func-ioctl”Œ refdomain”j®Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆŒ reftarget”Œmedia_ioc_request_alloc”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&]”uh1jhjsubeh}”(h]”h ]”h"]”h$]”h&]”uh1jqh³hÇh´Khjnubjr)”}”(hŒz``cmd`` The request ioctl command code as defined in the media.h header file, for example :ref:`MEDIA_REQUEST_IOC_QUEUE`. ”h]”(jx)”}”(hŒ``cmd``”h]”j?)”}”(hjÞh]”hŒcmd”…””}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hjÜubah}”(h]”h ]”h"]”h$]”h&]”uh1jwh³hÇh´K hjØubj‘)”}”(hhh]”hý)”}”(hŒqThe request ioctl command code as defined in the media.h header file, for example :ref:`MEDIA_REQUEST_IOC_QUEUE`.”h]”(hŒRThe request ioctl command code as defined in the media.h header file, for example ”…””}”(hjöh²hh³Nh´Nubh)”}”(hŒ:ref:`MEDIA_REQUEST_IOC_QUEUE`”h]”j¢)”}”(hjh]”hŒMEDIA_REQUEST_IOC_QUEUE”…””}”(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ÀŒmedia_request_ioc_queue”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&]”uh1jhjØubeh}”(h]”h ]”h"]”h$]”h&]”uh1jqh³hÇh´K hjnh²hubjr)”}”(hŒ2``argp`` Pointer to a request-specific structure. ”h]”(jx)”}”(hŒ``argp``”h]”j?)”}”(hj:h]”hŒargp”…””}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hj8ubah}”(h]”h ]”h"]”h$]”h&]”uh1jwh³hÇh´K#hj4ubj‘)”}”(hhh]”hý)”}”(hŒ(Pointer to a request-specific structure.”h]”hŒ(Pointer to a request-specific structure.”…””}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K#hjOubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj4ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jqh³hÇh´K#hjnh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1jlhj[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Ûhjzh²hh³hÇh´K&ubhý)”}”(hŒ…The :ref:`ioctl() ` function manipulates request parameters. The argument ``fd`` must be an open file descriptor.”h]”(hŒThe ”…””}”(hj‹h²hh³Nh´Nubh)”}”(hŒ#:ref:`ioctl() `”h]”j¢)”}”(hj•h]”hŒioctl()”…””}”(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ÀŒrequest-func-ioctl”uh1hh³hÇh´K(hj‹ubhŒ7 function manipulates request parameters. The argument ”…””}”(hj‹h²hh³Nh´Nubj?)”}”(hŒ``fd``”h]”hŒfd”…””}”(hj·h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hj‹ubhŒ! must be an open file descriptor.”…””}”(hj‹h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K(hjzh²hubhý)”}”(hŒÊThe ioctl ``cmd`` code specifies the request function to be called. It has encoded in it whether the argument is an input, output or read/write parameter, and the size of the argument ``argp`` in bytes.”h]”(hŒ The ioctl ”…””}”(hjÏh²hh³Nh´Nubj?)”}”(hŒ``cmd``”h]”hŒcmd”…””}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hjÏubhŒ§ code specifies the request function to be called. It has encoded in it whether the argument is an input, output or read/write parameter, and the size of the argument ”…””}”(hjÏh²hh³Nh´Nubj?)”}”(hŒ``argp``”h]”hŒargp”…””}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hjÏubhŒ in bytes.”…””}”(hjÏh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K+hjzh²hubhý)”}”(hŒîMacros and structures definitions specifying request ioctl commands and their parameters are located in the media.h header file. All request ioctl commands, their respective function and parameters are specified in :ref:`media-user-func`.”h]”(hŒ×Macros and structures definitions specifying request ioctl commands and their parameters are located in the media.h header file. All request ioctl commands, their respective function and parameters are specified in ”…””}”(hjh²hh³Nh´Nubh)”}”(hŒ:ref:`media-user-func`”h]”j¢)”}”(hj h]”hŒmedia-user-func”…””}”(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ÀŒmedia-user-func”uh1hh³hÇh´K/hjubhŒ.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K/hjzh²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´K5ubhý)”}”(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 ”…””}”(hjLh²hh³Nh´Nubj?)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j>hjLubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjLh²hh³Nh´Nubh)”}”(hŒ':ref:`Generic Error Codes `”h]”j¢)”}”(hjhh]”hŒGeneric Error Codes”…””}”(hjjh²hh³Nh´Nubah}”(h]”h ]”(j­Œstd”Œstd-ref”eh"]”h$]”h&]”uh1j¡hjfubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jºŒ refdomain”jtŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjÀŒ gen-errors”uh1hh³hÇh´K7hjLubhŒ chapter.”…””}”(hjLh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K7hj;h²hubhý)”}”(hŒOCommand-specific error codes are listed in the individual command descriptions.”h]”hŒOCommand-specific error codes are listed in the individual command descriptions.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K;hj;h²hubhý)”}”(hŒcWhen an ioctl that takes an output or read/write parameter fails, the parameter remains unmodified.”h]”hŒcWhen an ioctl that takes an output or read/write parameter fails, the parameter remains unmodified.”…””}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K>hj;h²hubeh}”(h]”Œ return-value”ah ]”h"]”Œ return value”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K5ubeh}”(h]”(Œ request-ioctl”hÕeh ]”h"]”(Œrequest ioctl()”Œrequest-func-ioctl”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¶jjjXjUjwjtj8j5j±j®uŒ nametypes”}”(jºˆj¹‰j‰jX‰jw‰j8‰j±‰uh}”(hÕhØj¶hØjhëjUjjtj[j5jzj®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Œ8Hyperlink target "request-func-ioctl" is not referenced.”…””}”hjNsbah}”(h]”h ]”h"]”h$]”h&]”uh1hühjKubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”Kuh1jIubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.