1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 2 3.. _DMX_REMOVE_PID: 4 5============== 6DMX_REMOVE_PID 7============== 8 9Name 10---- 11 12DMX_REMOVE_PID 13 14 15Synopsis 16-------- 17 18.. c:function:: int ioctl(fd, DMX_REMOVE_PID, __u16 *pid) 19 :name: DMX_REMOVE_PID 20 21 22Arguments 23--------- 24 25``fd`` 26 File descriptor returned by :c:func:`open() <dvb-dmx-open>`. 27 28``pid`` 29 PID of the PES filter to be removed. 30 31 32Description 33----------- 34 35This ioctl call allows to remove a PID when multiple PIDs are set on a 36transport stream filter, e. g. a filter previously set up with output 37equal to :c:type:`DMX_OUT_TSDEMUX_TAP <dmx_output>`, created via either 38:ref:`DMX_SET_PES_FILTER` or :ref:`DMX_ADD_PID`. 39 40 41Return Value 42------------ 43 44On success 0 is returned. 45 46On error -1 is returned, and the ``errno`` variable is set 47appropriately. 48 49The generic error codes are described at the 50:ref:`Generic Error Codes <gen-errors>` chapter. 51