dmx-set-buffer-size.rst 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _DMX_SET_BUFFER_SIZE:
  3. ===================
  4. DMX_SET_BUFFER_SIZE
  5. ===================
  6. Name
  7. ----
  8. DMX_SET_BUFFER_SIZE
  9. Synopsis
  10. --------
  11. .. c:function:: int ioctl( int fd, DMX_SET_BUFFER_SIZE, unsigned long size)
  12. :name: DMX_SET_BUFFER_SIZE
  13. Arguments
  14. ---------
  15. ``fd``
  16. File descriptor returned by :c:func:`open() <dvb-dmx-open>`.
  17. ``size``
  18. Unsigned long size
  19. Description
  20. -----------
  21. This ioctl call is used to set the size of the circular buffer used for
  22. filtered data. The default size is two maximum sized sections, i.e. if
  23. this function is not called a buffer size of ``2 * 4096`` bytes will be
  24. used.
  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. The generic error codes are described at the
  31. :ref:`Generic Error Codes <gen-errors>` chapter.