1059b1c5bSMauro Carvalho Chehab.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
254f38fcaSMauro Carvalho Chehab
354f38fcaSMauro Carvalho Chehab.. _CA_GET_SLOT_INFO:
454f38fcaSMauro Carvalho Chehab
554f38fcaSMauro Carvalho Chehab================
654f38fcaSMauro Carvalho ChehabCA_GET_SLOT_INFO
754f38fcaSMauro Carvalho Chehab================
854f38fcaSMauro Carvalho Chehab
954f38fcaSMauro Carvalho ChehabName
1054f38fcaSMauro Carvalho Chehab----
1154f38fcaSMauro Carvalho Chehab
1254f38fcaSMauro Carvalho ChehabCA_GET_SLOT_INFO
1354f38fcaSMauro Carvalho Chehab
1454f38fcaSMauro Carvalho Chehab
1554f38fcaSMauro Carvalho ChehabSynopsis
1654f38fcaSMauro Carvalho Chehab--------
1754f38fcaSMauro Carvalho Chehab
1854f38fcaSMauro Carvalho Chehab.. c:function:: int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)
1954f38fcaSMauro Carvalho Chehab    :name: CA_GET_SLOT_INFO
2054f38fcaSMauro Carvalho Chehab
2154f38fcaSMauro Carvalho Chehab
2254f38fcaSMauro Carvalho ChehabArguments
2354f38fcaSMauro Carvalho Chehab---------
2454f38fcaSMauro Carvalho Chehab
2554f38fcaSMauro Carvalho Chehab``fd``
2654f38fcaSMauro Carvalho Chehab  File descriptor returned by a previous call to :c:func:`open() <cec-open>`.
2754f38fcaSMauro Carvalho Chehab
2854f38fcaSMauro Carvalho Chehab``info``
2954f38fcaSMauro Carvalho Chehab  Pointer to struct :c:type:`ca_slot_info`.
3054f38fcaSMauro Carvalho Chehab
3154f38fcaSMauro Carvalho ChehabDescription
3254f38fcaSMauro Carvalho Chehab-----------
3354f38fcaSMauro Carvalho Chehab
3454f38fcaSMauro Carvalho ChehabReturns information about a CA slot identified by
3554f38fcaSMauro Carvalho Chehab:c:type:`ca_slot_info`.slot_num.
3654f38fcaSMauro Carvalho Chehab
3754f38fcaSMauro Carvalho Chehab
3854f38fcaSMauro Carvalho ChehabReturn Value
3954f38fcaSMauro Carvalho Chehab------------
4054f38fcaSMauro Carvalho Chehab
4154f38fcaSMauro Carvalho ChehabOn success 0 is returned, and :c:type:`ca_slot_info` is filled.
4254f38fcaSMauro Carvalho Chehab
4354f38fcaSMauro Carvalho ChehabOn error -1 is returned, and the ``errno`` variable is set
4454f38fcaSMauro Carvalho Chehabappropriately.
4554f38fcaSMauro Carvalho Chehab
4654f38fcaSMauro Carvalho Chehab.. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
4754f38fcaSMauro Carvalho Chehab
4854f38fcaSMauro Carvalho Chehab.. flat-table::
4954f38fcaSMauro Carvalho Chehab    :header-rows:  0
5054f38fcaSMauro Carvalho Chehab    :stub-columns: 0
5154f38fcaSMauro Carvalho Chehab    :widths: 1 16
5254f38fcaSMauro Carvalho Chehab
5354f38fcaSMauro Carvalho Chehab    -  -  ``ENODEV``
5454f38fcaSMauro Carvalho Chehab       -  the slot is not available.
5554f38fcaSMauro Carvalho Chehab
5654f38fcaSMauro Carvalho ChehabThe generic error codes are described at the
5754f38fcaSMauro Carvalho Chehab:ref:`Generic Error Codes <gen-errors>` chapter.
58