€•1RŒ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”Œ=/translations/zh_CN/userspace-api/media/v4l/vidioc-g-priority”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ=/translations/zh_TW/userspace-api/media/v4l/vidioc-g-priority”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ=/translations/it_IT/userspace-api/media/v4l/vidioc-g-priority”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ=/translations/ja_JP/userspace-api/media/v4l/vidioc-g-priority”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ=/translations/ko_KR/userspace-api/media/v4l/vidioc-g-priority”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ=/translations/pt_BR/userspace-api/media/v4l/vidioc-g-priority”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ=/translations/sp_SP/userspace-api/media/v4l/vidioc-g-priority”Œ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³ŒW/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/vidioc-g-priority.rst”h´KubhŒtarget”“”)”}”(hŒ.. _VIDIOC_G_PRIORITY:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œvidioc-g-priority”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ*ioctl VIDIOC_G_PRIORITY, VIDIOC_S_PRIORITY”h]”hŒ*ioctl VIDIOC_G_PRIORITY, VIDIOC_S_PRIORITY”…””}”(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ŒnVIDIOC_G_PRIORITY - VIDIOC_S_PRIORITY - Query or request the access priority associated with a file descriptor”h]”hŒnVIDIOC_G_PRIORITY - VIDIOC_S_PRIORITY - Query or request the access priority associated with a 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Œindex”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”ŒV4L.VIDIOC_G_PRIORITY (C macro)”Œc.V4L.VIDIOC_G_PRIORITY”hNt”auh1j%hjh²hh³Nh´NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒVIDIOC_G_PRIORITY”h]”hŒdesc_signature_line”“”)”}”(hŒVIDIOC_G_PRIORITY”h]”hŒ desc_name”“”)”}”(hŒVIDIOC_G_PRIORITY”h]”hŒ desc_sig_name”“”)”}”(hj?h]”hŒVIDIOC_G_PRIORITY”…””}”(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ŒB``int ioctl(int fd, VIDIOC_G_PRIORITY, enum v4l2_priority *argp)``”h]”hŒliteral”“”)”}”(hj”h]”hŒ>int ioctl(int fd, VIDIOC_G_PRIORITY, enum v4l2_priority *argp)”…””}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj’ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjh²hubj&)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(j2ŒV4L.VIDIOC_S_PRIORITY (C macro)”Œc.V4L.VIDIOC_S_PRIORITY”hNt”auh1j%hjh²hh³Nh´Nubj7)”}”(hhh]”(j<)”}”(hŒVIDIOC_S_PRIORITY”h]”jB)”}”(hŒVIDIOC_S_PRIORITY”h]”jH)”}”(hŒVIDIOC_S_PRIORITY”h]”jN)”}”(hj¾h]”hŒVIDIOC_S_PRIORITY”…””}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”jYah"]”h$]”h&]”uh1jMhjÄubah}”(h]”h ]”(j`jaeh"]”h$]”h&]”hÅhÆuh1jGhjÀh²hh³hÇh´Kubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆjkˆuh1jAjljmhj¼h²hh³hÇh´Kubah}”(h]”j·ah ]”(jqjreh"]”h$]”h&]”jvˆjw)jxhuh1j;h³hÇh´Khj¹h²hubjz)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jyhj¹h²hh³hÇh´Kubeh}”(h]”h ]”(j‡Œmacro”eh"]”h$]”h&]”jŒj‡jjójŽjój‰j‰j‘‰uh1j6h²hhjh³Nh´Nubhý)”}”(hŒH``int ioctl(int fd, VIDIOC_S_PRIORITY, const enum v4l2_priority *argp)``”h]”j—)”}”(hjùh]”hŒDint ioctl(int fd, VIDIOC_S_PRIORITY, const enum v4l2_priority *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”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjh²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—)”}”(hj6h]”hŒfd”…””}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj4ubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´Khj.ubhŒ definition”“”)”}”(hhh]”hý)”}”(hŒ-File descriptor returned by :c:func:`open()`.”h]”(hŒFile descriptor returned by ”…””}”(hjPh²hh³Nh´Nubh)”}”(hŒ:c:func:`open()`”h]”j—)”}”(hjZh]”hŒopen()”…””}”(hj\h²hh³Nh´Nubah}”(h]”h ]”(Œxref”j‡Œc-func”eh"]”h$]”h&]”uh1j–hjXubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ)userspace-api/media/v4l/vidioc-g-priority”Œ refdomain”j‡Œreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”jyŒ ASTIdentifier”“”)”}”Œ identifier”ŒV4L”sbN†”asbŒ reftarget”Œopen”uh1hh³hÇh´KhjPubhŒ.”…””}”(hjPh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KhjMubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj.ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´Khj)ubj-)”}”(hŒ:``argp`` Pointer to an enum :c:type:`v4l2_priority` type. ”h]”(j3)”}”(hŒ``argp``”h]”j—)”}”(hj¥h]”hŒargp”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj£ubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´K!hjŸubjL)”}”(hhh]”hý)”}”(hŒ0Pointer to an enum :c:type:`v4l2_priority` type.”h]”(hŒPointer to an enum ”…””}”(hj½h²hh³Nh´Nubh)”}”(hŒ:c:type:`v4l2_priority`”h]”j—)”}”(hjÇh]”hŒ v4l2_priority”…””}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”(jfj‡Œc-type”eh"]”h$]”h&]”uh1j–hjÅubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j‡Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jxj|j‡Œ v4l2_priority”uh1hh³hÇh´K!hj½ubhŒ type.”…””}”(hj½h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K!hjºubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjŸubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´K!hj)h²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j'hjh²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Ûhjh²hh³hÇh´K$ubhý)”}”(hŒÌTo query the current access priority applications call the :ref:`VIDIOC_G_PRIORITY ` ioctl with a pointer to an enum v4l2_priority variable where the driver stores the current priority.”h]”(hŒ;To query the current access priority applications call the ”…””}”(hjh²hh³Nh´Nubh)”}”(hŒ,:ref:`VIDIOC_G_PRIORITY `”h]”hŒinline”“”)”}”(hj#h]”hŒVIDIOC_G_PRIORITY”…””}”(hj'h²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j%hj!ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j1Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj‡Œvidioc_g_priority”uh1hh³hÇh´K&hjubhŒe ioctl with a pointer to an enum v4l2_priority variable where the driver stores the current priority.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K&hjh²hubhý)”}”(hŒÄTo request an access priority applications store the desired priority in an enum v4l2_priority variable and call :ref:`VIDIOC_S_PRIORITY ` ioctl with a pointer to this variable.”h]”(hŒqTo request an access priority applications store the desired priority in an enum v4l2_priority variable and call ”…””}”(hjMh²hh³Nh´Nubh)”}”(hŒ,:ref:`VIDIOC_S_PRIORITY `”h]”j&)”}”(hjWh]”hŒVIDIOC_S_PRIORITY”…””}”(hjYh²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j%hjUubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”jcŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj‡Œvidioc_g_priority”uh1hh³hÇh´K*hjMubhŒ' ioctl with a pointer to this variable.”…””}”(hjMh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K*hjh²hubj&)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(j2ŒV4L.v4l2_priority (C type)”Œc.V4L.v4l2_priority”hNt”auh1j%hjh²hh³Nh´Nubj7)”}”(hhh]”(j<)”}”(hŒ v4l2_priority”h]”jB)”}”(hŒtype v4l2_priority”h]”(hŒdesc_sig_keyword”“”)”}”(hŒtype”h]”hŒtype”…””}”(hjšh²hh³Nh´Nubah}”(h]”h ]”Œk”ah"]”h$]”h&]”uh1j˜hj”h²hh³hÇh´K.ubhŒdesc_sig_space”“”)”}”(hŒ ”h]”hŒ ”…””}”(hj«h²hh³Nh´Nubah}”(h]”h ]”Œw”ah"]”h$]”h&]”uh1j©hj”h²hh³hÇh´K.ubjH)”}”(hŒ v4l2_priority”h]”jN)”}”(hj’h]”hŒ v4l2_priority”…””}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”jYah"]”h$]”h&]”uh1jMhjºubah}”(h]”h ]”(j`jaeh"]”h$]”h&]”hÅhÆuh1jGhj”h²hh³hÇh´K.ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆjkˆuh1jAjljmhjh²hh³hÇh´K.ubah}”(h]”j‹ah ]”(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‡jjéjŽjéj‰j‰j‘‰uh1j6h²hhjh³Nh´NubhŒtabular_col_spec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œspec”Œ|p{6.6cm}|p{2.2cm}|p{8.5cm}|”uh1jíh³hÇh´K0hjh²hubhŒtable”“”)”}”(hhh]”(hÜ)”}”(hŒenum v4l2_priority”h]”hŒenum v4l2_priority”…””}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛh³hÇh´K2hjüubhŒtgroup”“”)”}”(hhh]”(hŒcolspec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jhjubj)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jhjubj)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jhjubhŒtbody”“”)”}”(hhh]”(hŒrow”“”)”}”(hhh]”(hŒentry”“”)”}”(hhh]”hý)”}”(hŒ``V4L2_PRIORITY_UNSET``”h]”j—)”}”(hjCh]”hŒV4L2_PRIORITY_UNSET”…””}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjAubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K7hj>ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj9ubj=)”}”(hhh]”hý)”}”(hŒ0”h]”hŒ0”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K8hj^ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj9ubj=)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1j<hj9ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hhh]”(j=)”}”(hhh]”hý)”}”(hŒ``V4L2_PRIORITY_BACKGROUND``”h]”j—)”}”(hjŒh]”hŒV4L2_PRIORITY_BACKGROUND”…””}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjŠubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K:hj‡ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj„ubj=)”}”(hhh]”hý)”}”(hŒ1”h]”hŒ1”…””}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K;hj§ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj„ubj=)”}”(hhh]”hý)”}”(hŒèLowest priority, usually applications running in background, for example monitoring VBI transmissions. A proxy application running in user space will be necessary if multiple applications want to read from a device at this priority.”h]”hŒèLowest priority, usually applications running in background, for example monitoring VBI transmissions. A proxy application running in user space will be necessary if multiple applications want to read from a device at this priority.”…””}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K` chapter.”h]”(hŒ.On success 0 is returned, on error -1 and the ”…””}”(hjþh²hh³Nh´Nubj—)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjh²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]”j&)”}”(hjh]”hŒGeneric Error Codes”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j%hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j&Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj‡Œ gen-errors”uh1hh³hÇh´KShjþubhŒ chapter.”…””}”(hjþh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KShjíh²hubj()”}”(hhh]”(j-)”}”(hŒ0EINVAL The requested priority value is invalid. ”h]”(j3)”}”(hŒEINVAL”h]”hŒEINVAL”…””}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´KXhjEubjL)”}”(hhh]”hý)”}”(hŒ(The requested priority value is invalid.”h]”hŒ(The requested priority value is invalid.”…””}”(hjZh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KXhjWubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjEubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´KXhjBubj-)”}”(hŒ