int ioctl(int fd, VIDIOC_G_PRIORITY, enum v4l2_priority *argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.VIDIOC_S_PRIORITY (C macro)c.V4L.VIDIOC_S_PRIORITYhNtauh1jhjhhhNhNubj#)}(hhh](j()}(hVIDIOC_S_PRIORITYh]j.)}(hVIDIOC_S_PRIORITYh]j4)}(hVIDIOC_S_PRIORITYh]j:)}(hjh]hVIDIOC_S_PRIORITY}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]hhuh1j3hjhhhhhKubah}(h]h ]h"]h$]h&]hhjWuh1j-jXjYhjhhhhhKubah}(h]jah ](j]j^eh"]h$]h&]jbjc)jdhuh1j'hhhKhjhhubjf)}(hhh]h}(h]h ]h"]h$]h&]uh1jehjhhhhhKubeh}(h]h ](jsmacroeh"]h$]h&]jxjsjyjjzjj{j|j}uh1j"hhhjhNhNubh)}(hH``int ioctl(int fd, VIDIOC_S_PRIORITY, const enum v4l2_priority *argp)``h]j)}(hjh]hDint ioctl(int fd, VIDIOC_S_PRIORITY, const enum v4l2_priority *argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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)}(hj"h]hfd}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(h-File descriptor returned by :c:func:`open()`.h](hFile descriptor returned by }(hj<hhhNhNubh)}(h:c:func:`open()`h]j)}(hjFh]hopen()}(hjHhhhNhNubah}(h]h ](xrefjsc-funceh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdoc)userspace-api/media/v4l/vidioc-g-priority refdomainjsreftypefunc refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]je ASTIdentifier)} identifierV4LsbNasb reftargetopenuh1hhhhKhj<ubh.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(h:``argp`` Pointer to an enum :c:type:`v4l2_priority` type. h](j)}(h``argp``h]j)}(hjh]hargp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhK!hjubj8)}(hhh]h)}(h0Pointer to an enum :c:type:`v4l2_priority` type.h](hPointer to an enum }(hjhhhNhNubh)}(h:c:type:`v4l2_priority`h]j)}(hjh]h v4l2_priority}(hjhhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjs v4l2_priorityuh1hhhhK!hjubh type.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]uh1jhhhK!hjhhubeh}(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)}(hTo 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 }(hjhhhNhNubh)}(h,:ref:`VIDIOC_G_PRIORITY `h]hinline)}(hjh]hVIDIOC_G_PRIORITY}(hjhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjreftyperef refexplicitrefwarnjsvidioc_g_priorityuh1hhhhK&hjubhe ioctl with a pointer to an enum v4l2_priority variable where the driver stores the current priority.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK&hjhhubh)}(hTo 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](hqTo request an access priority applications store the desired priority in an enum v4l2_priority variable and call }(hj9hhhNhNubh)}(h,:ref:`VIDIOC_S_PRIORITY `h]j)}(hjCh]hVIDIOC_S_PRIORITY}(hjEhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj^ refdomainjOreftyperef refexplicitrefwarnjsvidioc_g_priorityuh1hhhhK*hj9ubh' ioctl with a pointer to this variable.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK*hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.v4l2_priority (C type)c.V4L.v4l2_priorityhNtauh1jhjhhhNhNubj#)}(hhh](j()}(h v4l2_priorityh]j.)}(htype v4l2_priorityh](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)}(h v4l2_priorityh]j:)}(hj~h]h v4l2_priority}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]hhuh1j3hjhhhhhK.ubeh}(h]h ]h"]h$]h&]hhjWuh1j-jXjYhj|hhhhhK.ubah}(h]jwah ](j]j^eh"]h$]h&]jbjc)jdhuh1j'hhhK.hjyhhubjf)}(hhh]h}(h]h ]h"]h$]h&]uh1jehjyhhhhhK.ubeh}(h]h ](jstypeeh"]h$]h&]jxjsjyjjzjj{j|j}uh1j"hhhjhNhNubhtabular_col_spec)}(hhh]h}(h]h ]h"]h$]h&]spec|p{6.6cm}|p{2.2cm}|p{8.5cm}|uh1jhhhK0hjhhubhtable)}(hhh](h)}(henum v4l2_priorityh]henum v4l2_priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubhtgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h``V4L2_PRIORITY_UNSET``h]j)}(hj/h]hV4L2_PRIORITY_UNSET}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhhhK7hj*ubah}(h]h ]h"]h$]h&]uh1j(hj%ubj))}(hhh]h)}(h0h]h0}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjJubah}(h]h ]h"]h$]h&]uh1j(hj%ubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hj%ubeh}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hhh](j))}(hhh]h)}(h``V4L2_PRIORITY_BACKGROUND``h]j)}(hjxh]hV4L2_PRIORITY_BACKGROUND}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhhhK:hjsubah}(h]h ]h"]h$]h&]uh1j(hjpubj))}(hhh]h)}(h1h]h1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjubah}(h]h ]h"]h$]h&]uh1j(hjpubj))}(hhh]h)}(hLowest 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]hLowest 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK` chapter.h](h.On success 0 is returned, on error -1 and the }(hjhhhNhNubj)}(h ``errno``h]herrno}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM variable is set appropriately. The generic error codes are described at the }(hjhhhNhNubh)}(h':ref:`Generic Error Codes `h]j)}(hjh]hGeneric Error Codes}(hjhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjreftyperef refexplicitrefwarnjs gen-errorsuh1hhhhKShjubh chapter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKShjhhubj)}(hhh](j)}(h0EINVAL The requested priority value is invalid. h](j)}(hEINVALh]hEINVAL}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKXhj1ubj8)}(hhh]h)}(h(The requested priority value is invalid.h]h(The requested priority value is invalid.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhjCubah}(h]h ]h"]h$]h&]uh1j7hj1ubeh}(h]h ]h"]h$]h&]uh1jhhhKXhj.ubj)}(h