1 .. -*- coding: utf-8; mode: rst -*-
18 .. c:function:: int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)
19 :name: CA_GET_SLOT_INFO
26 File descriptor returned by a previous call to :c:func:`open() <cec-open>`.
29 Pointer to struct c:type:`ca_slot_info`.
31 .. _ca_slot_info_type:
33 .. flat-table:: ca_slot_info types
44 - CI high level interface
49 - CI link layer level interface
54 - CI physical layer level interface
59 - built-in descrambler
64 - simple smart card interface
66 .. _ca_slot_info_flag:
68 .. flat-table:: ca_slot_info flags
78 - CA_CI_MODULE_PRESENT
80 - module (or card) inserted
87 .. c:type:: ca_slot_info
89 .. flat-table:: struct ca_slot_info
106 - CA interface this slot supports, as defined at :ref:`ca_slot_info_type`.
111 - flags as defined at :ref:`ca_slot_info_flag`.
117 .. note:: This ioctl is undocumented. Documentation is welcome.
123 On success 0 is returned, on error -1 and the ``errno`` variable is set
124 appropriately. The generic error codes are described at the
125 :ref:`Generic Error Codes <gen-errors>` chapter.