요약·해설과 원문, 전문 번역을 서로 분리했습니다. 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.dmx
.. _DMX_SET_PES_FILTER:
==================
DMX_SET_PES_FILTER
==================
Name
----
DMX_SET_PES_FILTER
Synopsis
--------
.. c:macro:: DMX_SET_PES_FILTER
``int ioctl(int fd, DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)``
Arguments
---------
``fd``
File descriptor returned by :c:func:`open()`.
``params``
Pointer to structure containing filter parameters.
Description
-----------
This ioctl call sets up a PES filter according to the parameters
provided. By a PES filter is meant a filter that is based just on the
packet identifier (PID), i.e. no PES header or payload filtering
capability is supported.
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
- ``EBUSY``
- This error code indicates that there are conflicting requests.
There are active filters filtering data from another input source.
Make sure that these filters are stopped before starting this
filter.
The generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
이름과 호출 형식
1-20이 문서는 GFDL-1.1-no-invariants-or-later 라이선스와 `DTV.dmx` C namespace를 사용하며 `DMX_SET_PES_FILTER` ioctl을 설명합니다.
호출 형식은 `int ioctl(int fd, DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)`입니다.
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.dmx
.. _DMX_SET_PES_FILTER:
==================
DMX_SET_PES_FILTER
==================
Name
----
DMX_SET_PES_FILTER
Synopsis
--------
.. c:macro:: DMX_SET_PES_FILTER
``int ioctl(int fd, DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)``
PID 기반 PES 필터
21-37`fd`는 `open()`이 반환한 file descriptor이고, `params`는 PES 필터 매개변수가 든 구조체를 가리킵니다.
이 ioctl은 제공된 매개변수에 따라 PES 필터를 구성합니다.
여기서 PES 필터는 packet identifier(PID)만을 기준으로 하는 필터입니다. PES header나 payload 내용을 검사하는 필터링 기능은 지원하지 않습니다.
지원하는 선택 기준과 지원하지 않는 심층 필터를 구분합니다.
Arguments
---------
``fd``
File descriptor returned by :c:func:`open()`.
``params``
Pointer to structure containing filter parameters.
Description
-----------
This ioctl call sets up a PES filter according to the parameters
provided. By a PES filter is meant a filter that is based just on the
packet identifier (PID), i.e. no PES header or payload filtering
capability is supported.
반환값과 EBUSY
38-64성공하면 0을 반환하고, 오류가 발생하면 -1을 반환하며 `errno`를 적절히 설정합니다.
다른 입력 소스를 사용하는 활성 필터와의 충돌입니다.
이 오류가 발생하면 새 필터를 시작하기 전에 충돌하는 기존 필터를 중지해야 합니다.
그 밖의 공통 오류 코드는 `Generic Error Codes <gen-errors>` 장에서 설명합니다.
입력 소스별 필터를 직렬화합니다.
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
- ``EBUSY``
- This error code indicates that there are conflicting requests.
There are active filters filtering data from another input source.
Make sure that these filters are stopped before starting this
filter.
The generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.
요약·해설
dmx-set-pes-filter.rst:1-64PES 필터는 PID 기반 선택만 지원하며 header나 payload 내용을 검사하지 않습니다. 다른 입력 소스의 활성 필터와 충돌하면 EBUSY가 발생합니다.