1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
25 .. c:function:: int ioctl(fd, DMX_GET_PES_PIDS, __u16 pids[5])
26 :name: DMX_GET_PES_PIDS
32 File descriptor returned by :c:func:`open() <dvb-dmx-open>`.
35 Array used to store 5 Program IDs.
41 This ioctl allows to query a DVB device to return the first PID used
42 by audio, video, textext, subtitle and PCR programs on a given service.
45 ======================= ======== =======================================
46 PID element position content
47 ======================= ======== =======================================
48 pids[DMX_PES_AUDIO] 0 first audio PID
49 pids[DMX_PES_VIDEO] 1 first video PID
50 pids[DMX_PES_TELETEXT] 2 first teletext PID
51 pids[DMX_PES_SUBTITLE] 3 first subtitle PID
52 pids[DMX_PES_PCR] 4 first Program Clock Reference PID
53 ======================= ======== =======================================
58 A value equal to 0xffff means that the PID was not filled by the
65 On success 0 is returned.
67 On error -1 is returned, and the ``errno`` variable is set
70 The generic error codes are described at the
71 :ref:`Generic Error Codes <gen-errors>` chapter.