0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: DTV.ca
0003
0004 .. _CA_GET_SLOT_INFO:
0005
0006 ================
0007 CA_GET_SLOT_INFO
0008 ================
0009
0010 Name
0011 ----
0012
0013 CA_GET_SLOT_INFO
0014
0015 Synopsis
0016 --------
0017
0018 .. c:macro:: CA_GET_SLOT_INFO
0019
0020 ``int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)``
0021
0022 Arguments
0023 ---------
0024
0025 ``fd``
0026 File descriptor returned by a previous call to :c:func:`open()`.
0027
0028 ``info``
0029 Pointer to struct :c:type:`ca_slot_info`.
0030
0031 Description
0032 -----------
0033
0034 Returns information about a CA slot identified by
0035 :c:type:`ca_slot_info`.slot_num.
0036
0037 Return Value
0038 ------------
0039
0040 On success 0 is returned, and :c:type:`ca_slot_info` is filled.
0041
0042 On error -1 is returned, and the ``errno`` variable is set
0043 appropriately.
0044
0045 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
0046
0047 .. flat-table::
0048 :header-rows: 0
0049 :stub-columns: 0
0050 :widths: 1 16
0051
0052 - - ``ENODEV``
0053 - the slot is not available.
0054
0055 The generic error codes are described at the
0056 :ref:`Generic Error Codes <gen-errors>` chapter.