ca-reset.rst 651 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _CA_RESET:
  3. ========
  4. CA_RESET
  5. ========
  6. Name
  7. ----
  8. CA_RESET
  9. Synopsis
  10. --------
  11. .. c:function:: int ioctl(fd, CA_RESET)
  12. :name: CA_RESET
  13. Arguments
  14. ---------
  15. ``fd``
  16. File descriptor returned by a previous call to :c:func:`open() <cec-open>`.
  17. Description
  18. -----------
  19. Puts the Conditional Access hardware on its initial state. It should
  20. be called before start using the CA hardware.
  21. Return Value
  22. ------------
  23. On success 0 is returned.
  24. On error -1 is returned, and the ``errno`` variable is set
  25. appropriately.
  26. Generic error codes are described at the
  27. :ref:`Generic Error Codes <gen-errors>` chapter.