€•t[Œ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”ŒF/translations/zh_CN/userspace-api/media/mediactl/media-ioc-device-info”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒF/translations/zh_TW/userspace-api/media/mediactl/media-ioc-device-info”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒF/translations/it_IT/userspace-api/media/mediactl/media-ioc-device-info”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒF/translations/ja_JP/userspace-api/media/mediactl/media-ioc-device-info”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒF/translations/ko_KR/userspace-api/media/mediactl/media-ioc-device-info”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒF/translations/pt_BR/userspace-api/media/mediactl/media-ioc-device-info”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒF/translations/sp_SP/userspace-api/media/mediactl/media-ioc-device-info”Œ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³Œ`/var/lib/git/docbuild/linux/Documentation/userspace-api/media/mediactl/media-ioc-device-info.rst”h´KubhŒtarget”“”)”}”(hŒ.. _media_ioc_device_info:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œmedia-ioc-device-info”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒioctl MEDIA_IOC_DEVICE_INFO”h]”hŒioctl MEDIA_IOC_DEVICE_INFO”…””}”(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Œ0MEDIA_IOC_DEVICE_INFO - Query device information”h]”hŒ0MEDIA_IOC_DEVICE_INFO - Query device information”…””}”(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Œindex”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”Œ"MC.MEDIA_IOC_DEVICE_INFO (C macro)”Œc.MC.MEDIA_IOC_DEVICE_INFO”hNt”auh1j%hjh²hh³Nh´NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒMEDIA_IOC_DEVICE_INFO”h]”hŒdesc_signature_line”“”)”}”(hŒMEDIA_IOC_DEVICE_INFO”h]”hŒ desc_name”“”)”}”(hŒMEDIA_IOC_DEVICE_INFO”h]”hŒ desc_sig_name”“”)”}”(hj?h]”hŒMEDIA_IOC_DEVICE_INFO”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1jMhjIubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”hÅhÆuh1jGhjCh²hh³hÇh´Kubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒ add_permalink”ˆuh1jAŒsphinx_line_type”Œ declarator”hj=h²hh³hÇh´Kubah}”(h]”j4ah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1j;h³hÇh´Khj8h²hubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jyhj8h²hh³hÇh´Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”j‡Œobjtype”jˆŒdesctype”jˆŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j6h²hhjh³Nh´Nubhý)”}”(hŒL``int ioctl(int fd, MEDIA_IOC_DEVICE_INFO, struct media_device_info *argp)``”h]”hŒliteral”“”)”}”(hj”h]”hŒHint ioctl(int fd, MEDIA_IOC_DEVICE_INFO, struct media_device_info *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Œ5``fd`` File descriptor returned by :c:func:`open()`. ”h]”(hŒterm”“”)”}”(hŒ``fd``”h]”j—)”}”(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 :c:func:`open()`.”h]”(hŒFile descriptor returned by ”…””}”(hjíh²hh³Nh´Nubh)”}”(hŒ:c:func:`open()`”h]”j—)”}”(hj÷h]”hŒopen()”…””}”(hjùh²hh³Nh´Nubah}”(h]”h ]”(Œxref”j‡Œc-func”eh"]”h$]”h&]”uh1j–hjõubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ2userspace-api/media/mediactl/media-ioc-device-info”Œ refdomain”j‡Œreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”jŒ ASTIdentifier”“”)”}”Œ identifier”ŒMC”sbN†”asbŒ reftarget”Œopen”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&]”uh1jèhjËubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÉh³hÇh´KhjÆubjÊ)”}”(hŒ8``argp`` Pointer to struct :c:type:`media_device_info`. ”h]”(jÐ)”}”(hŒ``argp``”h]”j—)”}”(hjBh]”hŒargp”…””}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj@ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÏh³hÇh´Khj<ubjé)”}”(hhh]”hý)”}”(hŒ.Pointer to struct :c:type:`media_device_info`.”h]”(hŒPointer to struct ”…””}”(hjZh²hh³Nh´Nubh)”}”(hŒ:c:type:`media_device_info`”h]”j—)”}”(hjdh]”hŒmedia_device_info”…””}”(hjfh²hh³Nh´Nubah}”(h]”h ]”(jj‡Œc-type”eh"]”h$]”h&]”uh1j–hjbubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j‡Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jjj$Œmedia_device_info”uh1hh³hÇh´KhjZubhŒ.”…””}”(hjZh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KhjWubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj<ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÉh³hÇh´KhjÆ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ý)”}”(hXAll media devices must support the ``MEDIA_IOC_DEVICE_INFO`` ioctl. To query device information, applications call the ioctl with a pointer to a struct :c:type:`media_device_info`. The driver fills the structure and returns the information to the application. The ioctl never fails.”h]”(hŒ#All media devices must support the ”…””}”(hj¶h²hh³Nh´Nubj—)”}”(hŒ``MEDIA_IOC_DEVICE_INFO``”h]”hŒMEDIA_IOC_DEVICE_INFO”…””}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj¶ubhŒ\ ioctl. To query device information, applications call the ioctl with a pointer to a struct ”…””}”(hj¶h²hh³Nh´Nubh)”}”(hŒ:c:type:`media_device_info`”h]”j—)”}”(hjÒh]”hŒmedia_device_info”…””}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”(jj‡Œc-type”eh"]”h$]”h&]”uh1j–hjÐubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j‡Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jjj$Œmedia_device_info”uh1hh³hÇh´K"hj¶ubhŒg. The driver fills the structure and returns the information to the application. The ioctl never fails.”…””}”(hj¶h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K"hj¥h²hubj&)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(j2ŒMC.media_device_info (C type)”Œc.MC.media_device_info”hNt”auh1j%hj¥h²hh³Nh´Nubj7)”}”(hhh]”(j<)”}”(hŒmedia_device_info”h]”jB)”}”(hŒtype media_device_info”h]”(hŒdesc_sig_keyword”“”)”}”(hŒtype”h]”hŒtype”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”Œk”ah"]”h$]”h&]”uh1jhjh²hh³hÇh´K(ubhŒdesc_sig_space”“”)”}”(hŒ ”h]”hŒ ”…””}”(hj%h²hh³Nh´Nubah}”(h]”h ]”Œw”ah"]”h$]”h&]”uh1j#hjh²hh³hÇh´K(ubjH)”}”(hŒmedia_device_info”h]”jN)”}”(hj h]”hŒmedia_device_info”…””}”(hj8h²hh³Nh´Nubah}”(h]”h ]”jYah"]”h$]”h&]”uh1jMhj4ubah}”(h]”h ]”(j`jaeh"]”h$]”h&]”hÅhÆuh1jGhjh²hh³hÇh´K(ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆjkˆuh1jAjljmhj h²hh³hÇh´K(ubah}”(h]”jah ]”(jqjreh"]”h$]”h&]”jvˆjw)jxhuh1j;h³hÇh´K(hjh²hubjz)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jyhjh²hh³hÇh´K(ubeh}”(h]”h ]”(j‡Œtype”eh"]”h$]”h&]”jŒj‡jjcjŽjcj‰j‰j‘‰uh1j6h²hhj¥h³Nh´NubhŒtabular_col_spec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œspec”Œ|p{4.4cm}|p{4.4cm}|p{8.5cm}|”uh1jgh³hÇh´K*hj¥h²hubhŒtable”“”)”}”(hhh]”(hÜ)”}”(hŒstruct media_device_info”h]”hŒstruct media_device_info”…””}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛh³hÇh´K,hjvubhŒtgroup”“”)”}”(hhh]”(hŒcolspec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jŒhj‰ubj)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jŒhj‰ubj)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jŒhj‰ubhŒtbody”“”)”}”(hhh]”(hŒrow”“”)”}”(hhh]”(hŒentry”“”)”}”(hhh]”hý)”}”(hŒchar”h]”hŒchar”…””}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K1hj¸ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj³ubj·)”}”(hhh]”hý)”}”(hŒ``driver``\ [16]”h]”(j—)”}”(hŒ ``driver``”h]”hŒdriver”…””}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjÒubhŒ [16]”…””}”(hjÒh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K2hjÏubah}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj³ubj·)”}”(hhh]”(hý)”}”(hŒName of the driver implementing the media API as a NUL-terminated ASCII string. The driver version is stored in the ``driver_version`` field.”h]”(hŒtName of the driver implementing the media API as a NUL-terminated ASCII string. The driver version is stored in the ”…””}”(hj÷h²hh³Nh´Nubj—)”}”(hŒ``driver_version``”h]”hŒdriver_version”…””}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj÷ubhŒ field.”…””}”(hj÷h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K3hjôubhý)”}”(hŒªDriver specific applications can use this information to verify the driver identity. It is also useful to work around known bugs, or to identify drivers in error reports.”h]”hŒªDriver specific applications can use this information to verify the driver identity. It is also useful to work around known bugs, or to identify drivers in error reports.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K7hjôubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj³ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j±hj®ubj²)”}”(hhh]”(j·)”}”(hhh]”hý)”}”(hŒchar”h]”hŒchar”…””}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K;hj4ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj1ubj·)”}”(hhh]”hý)”}”(hŒ``model``\ [32]”h]”(j—)”}”(hŒ ``model``”h]”hŒmodel”…””}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjNubhŒ [32]”…””}”(hjNh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K` chapter.”h]”(hŒ.On success 0 is returned, on error -1 and the ”…””}”(hjqh²hh³Nh´Nubj—)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjqubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjqh²hh³Nh´Nubh)”}”(hŒ':ref:`Generic Error Codes `”h]”hŒinline”“”)”}”(hjh]”hŒGeneric Error Codes”…””}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj‹ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j›Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj$Œ gen-errors”uh1hh³hÇh´KhhjqubhŒ chapter.”…””}”(hjqh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khhj`h²hubeh}”(h]”Œ return-value”ah ]”h"]”Œ return value”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kfubeh}”(h]”(Œioctl-media-ioc-device-info”hÕeh ]”h"]”(Œioctl media_ioc_device_info”Œmedia_ioc_device_info”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”j¶Œ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]jZj¼j¹uŒ nametypes”}”(jňjĉj‰j°‰j¢‰j]‰j¼‰uh}”(hÕhØjÁhØjhëj­jj4j=jŸj³jZj¥jj j¹j`jýjvuŒ 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”“”}”jüKs…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hý)”}”(hhh]”hŒ;Hyperlink target "media-ioc-device-info" is not referenced.”…””}”hjXsbah}”(h]”h ]”h"]”h$]”h&]”uh1hühjUubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”Kuh1jSubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.