dmx-add-pid.rst 803 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: DTV.dmx
  3. .. _DMX_ADD_PID:
  4. ===========
  5. DMX_ADD_PID
  6. ===========
  7. Name
  8. ----
  9. DMX_ADD_PID
  10. Synopsis
  11. --------
  12. .. c:macro:: DMX_ADD_PID
  13. ``int ioctl(fd, DMX_ADD_PID, __u16 *pid)``
  14. Arguments
  15. ---------
  16. ``fd``
  17. File descriptor returned by :c:func:`open()`.
  18. ``pid``
  19. PID number to be filtered.
  20. Description
  21. -----------
  22. This ioctl call allows to add multiple PIDs to a transport stream filter
  23. previously set up with :ref:`DMX_SET_PES_FILTER` and output equal to
  24. :c:type:`DMX_OUT_TSDEMUX_TAP <dmx_output>`.
  25. Return Value
  26. ------------
  27. On success 0 is returned.
  28. On error -1 is returned, and the ``errno`` variable is set
  29. appropriately.
  30. Generic error codes are described at the
  31. :ref:`Generic Error Codes <gen-errors>` chapter.