요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.fe
.. _FE_SET_FRONTEND:
***************
FE_SET_FRONTEND
***************
.. attention:: This ioctl is deprecated.
Name
====
FE_SET_FRONTEND
Synopsis
========
.. c:macro:: FE_SET_FRONTEND
``int ioctl(int fd, FE_SET_FRONTEND, struct dvb_frontend_parameters *p)``
Arguments
=========
``fd``
File descriptor returned by :c:func:`open()`.
``p``
Points to parameters for tuning operation.
Description
===========
This ioctl call starts a tuning operation using specified parameters.
The result of this call will be successful if the parameters were valid
and the tuning could be initiated. The result of the tuning operation in
itself, however, will arrive asynchronously as an event (see
documentation for :ref:`FE_GET_EVENT` and
FrontendEvent.) If a new :ref:`FE_SET_FRONTEND`
operation is initiated before the previous one was completed, the
previous operation will be aborted in favor of the new one. This command
requires read/write access to the device.
Return Value
============
On success 0 is returned.
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
- .. row 1
- ``EINVAL``
- Maximum supported symbol rate reached.
Generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Deprecated tuning ioctl 선언
1-32`FE_SET_FRONTEND`는 deprecated된 tuning ioctl입니다. 호출 형식은 `int ioctl(int fd, FE_SET_FRONTEND, struct dvb_frontend_parameters *p)`입니다.
Legacy tuning 매개변수 구조체를 전달합니다.
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.fe
.. _FE_SET_FRONTEND:
***************
FE_SET_FRONTEND
***************
.. attention:: This ioctl is deprecated.
Name
====
FE_SET_FRONTEND
Synopsis
========
.. c:macro:: FE_SET_FRONTEND
``int ioctl(int fd, FE_SET_FRONTEND, struct dvb_frontend_parameters *p)``
Arguments
=========
``fd``
File descriptor returned by :c:func:`open()`.
``p``
Points to parameters for tuning operation.
비동기 tuning과 교체 동작
33-68지정한 매개변수로 tuning operation을 시작합니다. 매개변수가 유효하고 tuning을 시작할 수 있으면 이 호출 자체는 성공합니다.
실제 tuning 결과는 비동기 event로 도착하며 `FE_GET_EVENT`와 `FrontendEvent` 문서를 참조해야 합니다.
이전 `FE_SET_FRONTEND`가 끝나기 전에 새 operation을 시작하면 이전 operation을 중단하고 새 요청을 우선합니다. 장치에 대한 read/write 접근이 필요합니다.
성공 시 0, 오류 시 -1을 반환하고 `errno`를 설정합니다.
원문 flat-table의 오류 조건입니다.
호출 성공과 실제 lock 성공은 서로 다른 시점입니다.
그 밖의 일반 오류는 `Generic Error Codes <gen-errors>` 절에 설명되어 있습니다.
Description
===========
This ioctl call starts a tuning operation using specified parameters.
The result of this call will be successful if the parameters were valid
and the tuning could be initiated. The result of the tuning operation in
itself, however, will arrive asynchronously as an event (see
documentation for :ref:`FE_GET_EVENT` and
FrontendEvent.) If a new :ref:`FE_SET_FRONTEND`
operation is initiated before the previous one was completed, the
previous operation will be aborted in favor of the new one. This command
requires read/write access to the device.
Return Value
============
On success 0 is returned.
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
- .. row 1
- ``EINVAL``
- Maximum supported symbol rate reached.
Generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.
요약·해설
fe-set-frontend.rst:1-68호출 성공은 tuning 시작만 뜻하고 실제 결과는 비동기 event로 도착합니다. 신규 요청은 진행 중인 이전 요청을 중단합니다.