Documentation/userspace-api/media/dvb/ca-get-cap.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / DVB / CA

CA_GET_CAP

CA와 descrambler 슬롯의 수와 type을 조회합니다.

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

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약·해설

ca-get-cap.rst:1-46

CA_GET_CAP은 열린 CA 장치에 struct ca_caps를 전달해 사용 가능한 CA/descrambler 슬롯과 type을 조회합니다.

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_CAP:
5
6 ==========
7 CA_GET_CAP
8 ==========
9
10 Name
11 ----
12
13 CA_GET_CAP
14
15 Synopsis
16 --------
17
18 .. c:macro:: CA_GET_CAP
19
20 ``int ioctl(fd, CA_GET_CAP, struct ca_caps *caps)``
21
22 Arguments
23 ---------
24
25 ``fd``
26 File descriptor returned by a previous call to :c:func:`open()`.
27
28 ``caps``
29 Pointer to struct :c:type:`ca_caps`.
30
31 Description
32 -----------
33
34 Queries the Kernel for information about the available CA and descrambler
35 slots, and their types.
36
37 Return Value
38 ------------
39
40 On success 0 is returned and :c:type:`ca_caps` is filled.
41
42 On error, -1 is returned and the ``errno`` variable is set
43 appropriately.
44
45 The generic error codes are described at the
46 :ref:`Generic Error Codes <gen-errors>` chapter.
47

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

이름과 호출 원형

1-20

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

호출 원형은 `int ioctl(fd, CA_GET_CAP, struct ca_caps *caps)`이며 C macro 이름도 `CA_GET_CAP`입니다.

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

.. _CA_GET_CAP:

==========
CA_GET_CAP
==========

Name
----

CA_GET_CAP

Synopsis
--------

.. c:macro:: CA_GET_CAP

``int ioctl(fd, CA_GET_CAP, struct ca_caps *caps)``

인자와 조회 내용

21-36

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

이 IOCTL은 사용 가능한 CA 슬롯과 descrambler 슬롯, 그리고 각 슬롯의 type 정보를 커널에 질의합니다.

CA_GET_CAP 질의
CA 장치를 openstruct ca_caps 버퍼 준비ioctl(fd, CA_GET_CAP, caps) 호출커널이 CA/descrambler slot과 type 기록

열린 CA 장치에서 기능 구조체를 채웁니다.


Arguments
---------

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

``caps``
  Pointer to struct :c:type:`ca_caps`.

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

Queries the Kernel for information about the available CA and descrambler
slots, and their types.

반환값

37-46

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

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

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

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

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

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