video-clear-buffer.rst 891 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _VIDEO_CLEAR_BUFFER:
  3. ==================
  4. VIDEO_CLEAR_BUFFER
  5. ==================
  6. Name
  7. ----
  8. VIDEO_CLEAR_BUFFER
  9. .. attention:: This ioctl is deprecated.
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(fd, VIDEO_CLEAR_BUFFER)
  13. :name: VIDEO_CLEAR_BUFFER
  14. Arguments
  15. ---------
  16. .. flat-table::
  17. :header-rows: 0
  18. :stub-columns: 0
  19. - .. row 1
  20. - int fd
  21. - File descriptor returned by a previous call to open().
  22. - .. row 2
  23. - int request
  24. - Equals VIDEO_CLEAR_BUFFER for this command.
  25. Description
  26. -----------
  27. This ioctl call clears all video buffers in the driver and in the
  28. decoder hardware.
  29. Return Value
  30. ------------
  31. On success 0 is returned, on error -1 and the ``errno`` variable is set
  32. appropriately. The generic error codes are described at the
  33. :ref:`Generic Error Codes <gen-errors>` chapter.