ca-get-cap.rst 780 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: DTV.ca
  3. .. _CA_GET_CAP:
  4. ==========
  5. CA_GET_CAP
  6. ==========
  7. Name
  8. ----
  9. CA_GET_CAP
  10. Synopsis
  11. --------
  12. .. c:macro:: CA_GET_CAP
  13. ``int ioctl(fd, CA_GET_CAP, struct ca_caps *caps)``
  14. Arguments
  15. ---------
  16. ``fd``
  17. File descriptor returned by a previous call to :c:func:`open()`.
  18. ``caps``
  19. Pointer to struct :c:type:`ca_caps`.
  20. Description
  21. -----------
  22. Queries the Kernel for information about the available CA and descrambler
  23. slots, and their types.
  24. Return Value
  25. ------------
  26. On success 0 is returned and :c:type:`ca_caps` is filled.
  27. On error, -1 is returned and the ``errno`` variable is set
  28. appropriately.
  29. The generic error codes are described at the
  30. :ref:`Generic Error Codes <gen-errors>` chapter.