1 .. SPDX-License-Identifier: GFDL-1.1-no-invari !! 1 .. Permission is granted to copy, distribute and/or modify this 2 .. c:namespace:: DTV.ca !! 2 .. document under the terms of the GNU Free Documentation License, >> 3 .. Version 1.1 or any later version published by the Free Software >> 4 .. Foundation, with no Invariant Sections, no Front-Cover Texts >> 5 .. and no Back-Cover Texts. A copy of the license is included at >> 6 .. Documentation/userspace-api/media/fdl-appendix.rst. >> 7 .. >> 8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections 3 9 4 .. _CA_GET_SLOT_INFO: 10 .. _CA_GET_SLOT_INFO: 5 11 6 ================ 12 ================ 7 CA_GET_SLOT_INFO 13 CA_GET_SLOT_INFO 8 ================ 14 ================ 9 15 10 Name 16 Name 11 ---- 17 ---- 12 18 13 CA_GET_SLOT_INFO 19 CA_GET_SLOT_INFO 14 20 >> 21 15 Synopsis 22 Synopsis 16 -------- 23 -------- 17 24 18 .. c:macro:: CA_GET_SLOT_INFO !! 25 .. c:function:: int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info) >> 26 :name: CA_GET_SLOT_INFO 19 27 20 ``int ioctl(fd, CA_GET_SLOT_INFO, struct ca_sl << 21 28 22 Arguments 29 Arguments 23 --------- 30 --------- 24 31 25 ``fd`` 32 ``fd`` 26 File descriptor returned by a previous call !! 33 File descriptor returned by a previous call to :c:func:`open() <cec-open>`. 27 34 28 ``info`` 35 ``info`` 29 Pointer to struct :c:type:`ca_slot_info`. 36 Pointer to struct :c:type:`ca_slot_info`. 30 37 31 Description 38 Description 32 ----------- 39 ----------- 33 40 34 Returns information about a CA slot identified 41 Returns information about a CA slot identified by 35 :c:type:`ca_slot_info`.slot_num. 42 :c:type:`ca_slot_info`.slot_num. >> 43 36 44 37 Return Value 45 Return Value 38 ------------ 46 ------------ 39 47 40 On success 0 is returned, and :c:type:`ca_slot 48 On success 0 is returned, and :c:type:`ca_slot_info` is filled. 41 49 42 On error -1 is returned, and the ``errno`` var 50 On error -1 is returned, and the ``errno`` variable is set 43 appropriately. 51 appropriately. 44 52 45 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 53 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 46 54 47 .. flat-table:: 55 .. flat-table:: 48 :header-rows: 0 56 :header-rows: 0 49 :stub-columns: 0 57 :stub-columns: 0 50 :widths: 1 16 58 :widths: 1 16 51 59 52 - - ``ENODEV`` 60 - - ``ENODEV`` 53 - the slot is not available. 61 - the slot is not available. 54 62 55 The generic error codes are described at the 63 The generic error codes are described at the 56 :ref:`Generic Error Codes <gen-errors>` chapte 64 :ref:`Generic Error Codes <gen-errors>` chapter.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.