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`.
34 Returns information about a CA slot identified by
35 :c:type:`ca_slot_info`.slot_num.
41 On success 0 is returned, and :c:type:`ca_slot_info` is filled.
43 On error -1 is returned, and the ``errno`` variable is set
46 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
54 - the slot is not available.
56 The generic error codes are described at the
57 :ref:`Generic Error Codes <gen-errors>` chapter.