ca-get-cap.rst 757 B

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