dmx-set-buffer-size.rst 904 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: DTV.dmx
  3. .. _DMX_SET_BUFFER_SIZE:
  4. ===================
  5. DMX_SET_BUFFER_SIZE
  6. ===================
  7. Name
  8. ----
  9. DMX_SET_BUFFER_SIZE
  10. Synopsis
  11. --------
  12. .. c:macro:: DMX_SET_BUFFER_SIZE
  13. ``int ioctl(int fd, DMX_SET_BUFFER_SIZE, unsigned long size)``
  14. Arguments
  15. ---------
  16. ``fd``
  17. File descriptor returned by :c:func:`open()`.
  18. ``size``
  19. Unsigned long size
  20. Description
  21. -----------
  22. This ioctl call is used to set the size of the circular buffer used for
  23. filtered data. The default size is two maximum sized sections, i.e. if
  24. this function is not called a buffer size of ``2 * 4096`` bytes will be
  25. used.
  26. Return Value
  27. ------------
  28. On success 0 is returned.
  29. On error -1 is returned, and the ``errno`` variable is set
  30. appropriately.
  31. The generic error codes are described at the
  32. :ref:`Generic Error Codes <gen-errors>` chapter.