← Documents Documentation/userspace-api/media/dvb/ca-get-slot-info.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / DVB / CA

CA_GET_SLOT_INFO

slot_num으로 선택한 CA 슬롯 정보를 조회합니다.

Source pathDocumentation/userspace-api/media/dvb/ca-get-slot-info.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

ca-get-slot-info.rst:1-56

CA_GET_SLOT_INFO는 ca_slot_info.slot_num으로 슬롯을 지정하고 정보를 반환하며 사용할 수 없는 슬롯에는 ENODEV를 보고합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.ca
3
4 .. _CA_GET_SLOT_INFO:
5
6 ================
7 CA_GET_SLOT_INFO
8 ================
9
10 Name
11 ----
12
13 CA_GET_SLOT_INFO
14
15 Synopsis
16 --------
17
18 .. c:macro:: CA_GET_SLOT_INFO
19
20 ``int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)``
21
22 Arguments
23 ---------
24
25 ``fd``
26 File descriptor returned by a previous call to :c:func:`open()`.
27
28 ``info``
29 Pointer to struct :c:type:`ca_slot_info`.
30
31 Description
32 -----------
33
34 Returns information about a CA slot identified by
35 :c:type:`ca_slot_info`.slot_num.
36
37 Return Value
38 ------------
39
40 On success 0 is returned, and :c:type:`ca_slot_info` is filled.
41
42 On error -1 is returned, and the ``errno`` variable is set
43 appropriately.
44
45 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
46
47 .. flat-table::
48 :header-rows: 0
49 :stub-columns: 0
50 :widths: 1 16
51
52 - - ``ENODEV``
53 - the slot is not available.
54
55 The generic error codes are described at the
56 :ref:`Generic Error Codes <gen-errors>` chapter.
57

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

이름과 호출 원형

1-20

이 문서는 GFDL-1.1-no-invariants-or-later 라이선스와 `DTV.ca` C namespace를 사용하며 `CA_GET_SLOT_INFO` IOCTL을 설명합니다.

호출 원형은 `int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)`입니다.

.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.ca

.. _CA_GET_SLOT_INFO:

================
CA_GET_SLOT_INFO
================

Name
----

CA_GET_SLOT_INFO

Synopsis
--------

.. c:macro:: CA_GET_SLOT_INFO

``int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)``

인자와 슬롯 선택

21-35

`fd`는 앞선 `open()` 호출이 반환한 file descriptor이고, `info`는 `struct ca_slot_info`를 가리키는 포인터입니다.

이 IOCTL은 `ca_slot_info.slot_num`으로 식별한 CA 슬롯의 정보를 반환합니다.

CA 슬롯 정보 조회
CA 장치를 openca_slot_info.slot_num 설정CA_GET_SLOT_INFO 호출선택한 CA slot 정보 수신

구조체의 slot_num으로 조회 대상을 선택합니다.


Arguments
---------

``fd``
  File descriptor returned by a previous call to :c:func:`open()`.

``info``
  Pointer to struct :c:type:`ca_slot_info`.

Description
-----------

Returns information about a CA slot identified by
:c:type:`ca_slot_info`.slot_num.

반환값과 ENODEV

36-56

성공하면 0을 반환하고 `ca_slot_info`를 채웁니다. 오류이면 -1을 반환하고 `errno`를 알맞게 설정합니다.

CA_GET_SLOT_INFO 전용 오류
항목설명
ENODEV요청한 슬롯을 사용할 수 없음

원문의 flat-table 오류 코드를 보존합니다.

그 밖의 일반 오류 코드는 `Generic Error Codes <gen-errors>` 장에서 설명합니다.


Return Value
------------

On success 0 is returned, and :c:type:`ca_slot_info` is filled.

On error -1 is returned, and the ``errno`` variable is set
appropriately.

.. tabularcolumns:: |p{2.5cm}|p{15.0cm}|

.. flat-table::
    :header-rows:  0
    :stub-columns: 0
    :widths: 1 16

    -  -  ``ENODEV``
       -  the slot is not available.

The generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.