Documentation/userspace-api/media/dvb/fe-read-signal-strength.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / DVB / Frontend

FE_READ_SIGNAL_STRENGTH

Deprecated 상태이며 uint16_t signal strength를 조회하는 ioctl입니다.

Source pathDocumentation/userspace-api/media/dvb/fe-read-signal-strength.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

fe-read-signal-strength.rst:1-49

현재 신호 세기를 반환하는 legacy ioctl이며 절대 단위는 원문에 명시되지 않습니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.fe
3
4 .. _FE_READ_SIGNAL_STRENGTH:
5
6 ***********************
7 FE_READ_SIGNAL_STRENGTH
8 ***********************
9
10 Name
11 ====
12
13 FE_READ_SIGNAL_STRENGTH
14
15 .. attention:: This ioctl is deprecated.
16
17 Synopsis
18 ========
19
20 .. c:macro:: FE_READ_SIGNAL_STRENGTH
21
22 ``int ioctl(int fd, FE_READ_SIGNAL_STRENGTH, uint16_t *strength)``
23
24 Arguments
25 =========
26
27 ``fd``
28 File descriptor returned by :c:func:`open()`.
29
30 ``strength``
31 The signal strength value is stored into \*strength.
32
33 Description
34 ===========
35
36 This ioctl call returns the signal strength value for the signal
37 currently received by the front-end. For this command, read-only access
38 to the device is sufficient.
39
40 Return Value
41 ============
42
43 On success 0 is returned.
44
45 On error -1 is returned, and the ``errno`` variable is set
46 appropriately.
47
48 Generic error codes are described at the
49 :ref:`Generic Error Codes <gen-errors>` chapter.
50

3. 한국어 전문 번역

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

Deprecated 신호 세기 조회 선언

1-32

`FE_READ_SIGNAL_STRENGTH`는 deprecated 상태인 ioctl입니다. 호출 형식은 `int ioctl(int fd, FE_READ_SIGNAL_STRENGTH, uint16_t *strength)`입니다.

FE_READ_SIGNAL_STRENGTH 인수
인수의미
fdopen()이 반환한 파일 descriptor
strengthsignal strength 값을 저장할 uint16_t 포인터

신호 세기를 16bit unsigned 값으로 받습니다.

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

.. _FE_READ_SIGNAL_STRENGTH:

***********************
FE_READ_SIGNAL_STRENGTH
***********************

Name
====

FE_READ_SIGNAL_STRENGTH

.. attention:: This ioctl is deprecated.

Synopsis
========

.. c:macro:: FE_READ_SIGNAL_STRENGTH

``int ioctl(int fd, FE_READ_SIGNAL_STRENGTH, uint16_t *strength)``

Arguments
=========

``fd``
    File descriptor returned by :c:func:`open()`.

``strength``
    The signal strength value is stored into \*strength.

현재 수신 신호의 strength

33-49

Frontend가 현재 수신하는 signal의 strength 값을 `*strength`에 반환합니다. 이 command에는 read-only 접근이면 충분합니다.

성공하면 0을 반환합니다. 오류가 발생하면 -1을 반환하고 `errno`를 설정합니다. 일반 오류는 `Generic Error Codes <gen-errors>` 절을 따릅니다.

원문은 값의 절대 단위나 scale을 명시하지 않으므로 `uint16_t`라는 저장 형식만 보존합니다.

Description
===========

This ioctl call returns the signal strength value for the signal
currently received by the front-end. For this command, read-only access
to the device is sufficient.

Return Value
============

On success 0 is returned.

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

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