ca-get-slot-info.rst 976 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _CA_GET_SLOT_INFO:
  3. ================
  4. CA_GET_SLOT_INFO
  5. ================
  6. Name
  7. ----
  8. CA_GET_SLOT_INFO
  9. Synopsis
  10. --------
  11. .. c:function:: int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)
  12. :name: CA_GET_SLOT_INFO
  13. Arguments
  14. ---------
  15. ``fd``
  16. File descriptor returned by a previous call to :c:func:`open() <cec-open>`.
  17. ``info``
  18. Pointer to struct :c:type:`ca_slot_info`.
  19. Description
  20. -----------
  21. Returns information about a CA slot identified by
  22. :c:type:`ca_slot_info`.slot_num.
  23. Return Value
  24. ------------
  25. On success 0 is returned, and :c:type:`ca_slot_info` is filled.
  26. On error -1 is returned, and the ``errno`` variable is set
  27. appropriately.
  28. .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
  29. .. flat-table::
  30. :header-rows: 0
  31. :stub-columns: 0
  32. :widths: 1 16
  33. - - ``ENODEV``
  34. - the slot is not available.
  35. The generic error codes are described at the
  36. :ref:`Generic Error Codes <gen-errors>` chapter.