Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / dvb / dmx-add-pid.rst
blob6343035653ac21ad458efa8278ffda61690fe01e
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _DMX_ADD_PID:
5 ===========
6 DMX_ADD_PID
7 ===========
9 Name
10 ----
12 DMX_ADD_PID
15 Synopsis
16 --------
18 .. cpp:function:: int ioctl(fd, int request = DMX_ADD_PID, __u16 *)
21 Arguments
22 ---------
24 .. flat-table::
25     :header-rows:  0
26     :stub-columns: 0
29     -  .. row 1
31        -  int fd
33        -  File descriptor returned by a previous call to open().
35     -  .. row 2
37        -  int request
39        -  Equals DMX_ADD_PID for this command.
41     -  .. row 3
43        -  __u16 *
45        -  PID number to be filtered.
48 Description
49 -----------
51 This ioctl call allows to add multiple PIDs to a transport stream filter
52 previously set up with DMX_SET_PES_FILTER and output equal to
53 DMX_OUT_TSDEMUX_TAP.
56 Return Value
57 ------------
59 On success 0 is returned, on error -1 and the ``errno`` variable is set
60 appropriately. The generic error codes are described at the
61 :ref:`Generic Error Codes <gen-errors>` chapter.