1 <refentry id="vidioc-g-priority">
3 <refentrytitle>ioctl VIDIOC_G_PRIORITY, VIDIOC_S_PRIORITY</refentrytitle>
8 <refname>VIDIOC_G_PRIORITY</refname>
9 <refname>VIDIOC_S_PRIORITY</refname>
10 <refpurpose>Query or request the access priority associated with a
11 file descriptor</refpurpose>
17 <funcdef>int <function>ioctl</function></funcdef>
18 <paramdef>int <parameter>fd</parameter></paramdef>
19 <paramdef>int <parameter>request</parameter></paramdef>
20 <paramdef>enum v4l2_priority *<parameter>argp</parameter></paramdef>
25 <funcdef>int <function>ioctl</function></funcdef>
26 <paramdef>int <parameter>fd</parameter></paramdef>
27 <paramdef>int <parameter>request</parameter></paramdef>
28 <paramdef>const enum v4l2_priority *<parameter>argp</parameter></paramdef>
34 <title>Arguments</title>
38 <term><parameter>fd</parameter></term>
44 <term><parameter>request</parameter></term>
46 <para>VIDIOC_G_PRIORITY, VIDIOC_S_PRIORITY</para>
50 <term><parameter>argp</parameter></term>
52 <para>Pointer to an enum v4l2_priority type.</para>
59 <title>Description</title>
61 <para>To query the current access priority
62 applications call the <constant>VIDIOC_G_PRIORITY</constant> ioctl
63 with a pointer to an enum v4l2_priority variable where the driver stores
64 the current priority.</para>
66 <para>To request an access priority applications store the
67 desired priority in an enum v4l2_priority variable and call
68 <constant>VIDIOC_S_PRIORITY</constant> ioctl with a pointer to this
71 <table frame="none" pgwide="1" id="v4l2-priority">
72 <title>enum v4l2_priority</title>
77 <entry><constant>V4L2_PRIORITY_UNSET</constant></entry>
82 <entry><constant>V4L2_PRIORITY_BACKGROUND</constant></entry>
84 <entry>Lowest priority, usually applications running in
85 background, for example monitoring VBI transmissions. A proxy
86 application running in user space will be necessary if multiple
87 applications want to read from a device at this priority.</entry>
90 <entry><constant>V4L2_PRIORITY_INTERACTIVE</constant></entry>
95 <entry><constant>V4L2_PRIORITY_DEFAULT</constant></entry>
97 <entry>Medium priority, usually applications started and
98 interactively controlled by the user. For example TV viewers, Teletext
99 browsers, or just "panel" applications to change the channel or video
100 controls. This is the default priority unless an application requests
104 <entry><constant>V4L2_PRIORITY_RECORD</constant></entry>
106 <entry>Highest priority. Only one file descriptor can have
107 this priority, it blocks any other fd from changing device properties.
108 Usually applications which must not be interrupted, like video
121 <term><errorcode>EINVAL</errorcode></term>
123 <para>The requested priority value is invalid.</para>
127 <term><errorcode>EBUSY</errorcode></term>
129 <para>Another application already requested higher