← Documents Documentation/userspace-api/media/dvb/dmx-set-pes-filter.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / DVB / Demux

DMX_SET_PES_FILTER

PID만을 기준으로 PES 패킷을 선택하는 필터를 구성합니다.

Source pathDocumentation/userspace-api/media/dvb/dmx-set-pes-filter.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

dmx-set-pes-filter.rst:1-64

PES 필터는 PID 기반 선택만 지원하며 header나 payload 내용을 검사하지 않습니다. 다른 입력 소스의 활성 필터와 충돌하면 EBUSY가 발생합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.dmx
3
4 .. _DMX_SET_PES_FILTER:
5
6 ==================
7 DMX_SET_PES_FILTER
8 ==================
9
10 Name
11 ----
12
13 DMX_SET_PES_FILTER
14
15 Synopsis
16 --------
17
18 .. c:macro:: DMX_SET_PES_FILTER
19
20 ``int ioctl(int fd, DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)``
21
22 Arguments
23 ---------
24
25 ``fd``
26 File descriptor returned by :c:func:`open()`.
27
28 ``params``
29 Pointer to structure containing filter parameters.
30
31 Description
32 -----------
33
34 This ioctl call sets up a PES filter according to the parameters
35 provided. By a PES filter is meant a filter that is based just on the
36 packet identifier (PID), i.e. no PES header or payload filtering
37 capability is supported.
38
39 Return Value
40 ------------
41
42 On success 0 is returned.
43
44 On error -1 is returned, and the ``errno`` variable is set
45 appropriately.
46
47 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
48
49 .. flat-table::
50 :header-rows: 0
51 :stub-columns: 0
52 :widths: 1 16
53
54 - .. row 1
55
56 - ``EBUSY``
57
58 - This error code indicates that there are conflicting requests.
59 There are active filters filtering data from another input source.
60 Make sure that these filters are stopped before starting this
61 filter.
62
63 The generic error codes are described at the
64 :ref:`Generic Error Codes <gen-errors>` chapter.
65

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 내용을 검사하는 필터링 기능은 지원하지 않습니다.

PES 필터 범위
항목설명
지원packet identifier(PID) 기반 패킷 선택
미지원PES header 내용 필터링
미지원PES 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`를 적절히 설정합니다.

DMX_SET_PES_FILTER 전용 오류
오류조건
EBUSY다른 input source의 데이터를 필터링하는 활성 필터가 있어 요청이 충돌함

다른 입력 소스를 사용하는 활성 필터와의 충돌입니다.

이 오류가 발생하면 새 필터를 시작하기 전에 충돌하는 기존 필터를 중지해야 합니다.

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

PES 입력 충돌 해소
현재 활성 필터의 input source 확인다른 input source를 사용하는 필터 중지DMX_SET_PES_FILTER 다시 호출새 PES 필터 시작

입력 소스별 필터를 직렬화합니다.


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.