vZsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftargetF/translations/zh_CN/userspace-api/media/mediactl/media-ioc-device-infomodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetF/translations/zh_TW/userspace-api/media/mediactl/media-ioc-device-infomodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetF/translations/it_IT/userspace-api/media/mediactl/media-ioc-device-infomodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetF/translations/ja_JP/userspace-api/media/mediactl/media-ioc-device-infomodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetF/translations/ko_KR/userspace-api/media/mediactl/media-ioc-device-infomodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetF/translations/sp_SP/userspace-api/media/mediactl/media-ioc-device-infomodnameN 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:spacepreserveuh1hhhhhh`/var/lib/git/docbuild/linux/Documentation/userspace-api/media/mediactl/media-ioc-device-info.rsthKubhtarget)}(h.. _media_ioc_device_info:h]h}(h]h ]h"]h$]h&]refidmedia-ioc-device-infouh1hhKhhhhhhubhsection)}(hhh](htitle)}(hioctl MEDIA_IOC_DEVICE_INFOh]hioctl MEDIA_IOC_DEVICE_INFO}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hNameh]hName}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh paragraph)}(h0MEDIA_IOC_DEVICE_INFO - Query device informationh]h0MEDIA_IOC_DEVICE_INFO - Query device information}(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](single"MC.MEDIA_IOC_DEVICE_INFO (C macro)c.MC.MEDIA_IOC_DEVICE_INFOhNtauh1jhjhhhNhNubhdesc)}(hhh](hdesc_signature)}(hMEDIA_IOC_DEVICE_INFOh]hdesc_signature_line)}(hMEDIA_IOC_DEVICE_INFOh]h desc_name)}(hMEDIA_IOC_DEVICE_INFOh]h desc_sig_name)}(hj+h]hMEDIA_IOC_DEVICE_INFO}(hj;hhhNhNubah}(h]h ]nah"]h$]h&]uh1j9hj5ubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1j3hj/hhhhhKubah}(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&]uh1jehj$hhhhhKubeh}(h]h ](cmacroeh"]h$]h&]domainjsobjtypejtdesctypejtnoindex noindexentrynocontentsentryuh1j"hhhjhNhNubh)}(hL``int ioctl(int fd, MEDIA_IOC_DEVICE_INFO, struct media_device_info *argp)``h]hliteral)}(hjh]hHint ioctl(int fd, MEDIA_IOC_DEVICE_INFO, struct media_device_info *argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]synopsisah ]h"]synopsisah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Argumentsh]h Arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhdefinition_list)}(hhh](hdefinition_list_item)}(h5``fd`` File descriptor returned by :c:func:`open()`. h](hterm)}(h``fd``h]j)}(hjh]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(h-File descriptor returned by :c:func:`open()`.h](hFile descriptor returned by }(hjhhhNhNubh)}(h:c:func:`open()`h]j)}(hjh]hopen()}(hjhhhNhNubah}(h]h ](xrefjsc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoc2userspace-api/media/mediactl/media-ioc-device-info refdomainjsreftypefunc refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)} identifierMCsbNasb reftargetopenuh1hhhhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(h8``argp`` Pointer to struct :c:type:`media_device_info`. h](j)}(h``argp``h]j)}(hj.h]hargp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhhhKhj(ubj)}(hhh]h)}(h.Pointer to struct :c:type:`media_device_info`.h](hPointer to struct }(hjFhhhNhNubh)}(h:c:type:`media_device_info`h]j)}(hjPh]hmedia_device_info}(hjRhhhNhNubah}(h]h ](jjsc-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocj refdomainjsreftypetype refexplicitrefwarnjjjmedia_device_infouh1hhhhKhjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjCubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(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)}(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 }(hjhhhNhNubj)}(h``MEDIA_IOC_DEVICE_INFO``h]hMEDIA_IOC_DEVICE_INFO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ ioctl. To query device information, applications call the ioctl with a pointer to a struct }(hjhhhNhNubh)}(h:c:type:`media_device_info`h]j)}(hjh]hmedia_device_info}(hjhhhNhNubah}(h]h ](jjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjsreftypetype refexplicitrefwarnjjjmedia_device_infouh1hhhhK"hjubhg. The driver fills the structure and returns the information to the application. The ioctl never fails.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jMC.media_device_info (C type)c.MC.media_device_infohNtauh1jhjhhhNhNubj#)}(hhh](j()}(hmedia_device_infoh]j.)}(htype media_device_infoh](hdesc_sig_keyword)}(htypeh]htype}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjhhhhhK(ubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhhhK(ubj4)}(hmedia_device_infoh]j:)}(hjh]hmedia_device_info}(hj$hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj ubah}(h]h ](jLjMeh"]h$]h&]hhuh1j3hjhhhhhK(ubeh}(h]h ]h"]h$]h&]hhjWuh1j-jXjYhjhhhhhK(ubah}(h]jah ](j]j^eh"]h$]h&]jbjc)jdhuh1j'hhhK(hjhhubjf)}(hhh]h}(h]h ]h"]h$]h&]uh1jehjhhhhhK(ubeh}(h]h ](jstypeeh"]h$]h&]jxjsjyjOjzjOj{j|j}uh1j"hhhjhNhNubhtabular_col_spec)}(hhh]h}(h]h ]h"]h$]h&]spec|p{4.4cm}|p{4.4cm}|p{8.5cm}|uh1jShhhK*hjhhubhtable)}(hhh](h)}(hstruct media_device_infoh]hstruct media_device_info}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hjbubhtgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jxhjuubjy)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jxhjuubjy)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jxhjuubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h``driver``\ [16]h](j)}(h ``driver``h]hdriver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh [16]}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](h)}(hName of the driver implementing the media API as a NUL-terminated ASCII string. The driver version is stored in the ``driver_version`` field.h](htName of the driver implementing the media API as a NUL-terminated ASCII string. The driver version is stored in the }(hjhhhNhNubj)}(h``driver_version``h]hdriver_version}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh field.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK3hjubh)}(hDriver 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]hDriver 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hcharh]hchar}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h``model``\ [32]h](j)}(h ``model``h]hmodel}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh [32]}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK` chapter.h](h.On success 0 is returned, on error -1 and the }(hj]hhhNhNubj)}(h ``errno``h]herrno}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubhM variable is set appropriately. The generic error codes are described at the }(hj]hhhNhNubh)}(h':ref:`Generic Error Codes `h]hinline)}(hjyh]hGeneric Error Codes}(hj}hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j{hjwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj gen-errorsuh1hhhhKhhj]ubh chapter.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhjLhhubeh}(h] return-valueah ]h"] return valueah$]h&]uh1hhhhhhhhKfubeh}(h](ioctl-media-ioc-device-infoheh ]h"](ioctl media_ioc_device_infomedia_ioc_device_infoeh$]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}(jhjjhhjjjjjIjFjju nametypes}(jjhjjjIjuh}(hhjhhhjjj j)jjjFjjjjjLjjbu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages]transform_messages]hsystem_message)}(hhh]h)}(hhh]h;Hyperlink target "media-ioc-device-info" is not referenced.}hjDsbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1j?uba transformerN include_log] decorationNhhub.