← Documents Documentation/userspace-api/media/dvb/dmx-remove-pid.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / DVB / Demux

DMX_REMOVE_PID

다중 PID TS demux tap 필터에서 지정 PID를 제거합니다.

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

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

1. 요약·해설

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

요약·해설

dmx-remove-pid.rst:1-48

DMX_REMOVE_PID는 SET_PES_FILTER 또는 ADD_PID로 구성한 DMX_OUT_TSDEMUX_TAP 필터에서 PID 하나만 제거하고 나머지 필터링은 유지합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.dmx
3
4 .. _DMX_REMOVE_PID:
5
6 ==============
7 DMX_REMOVE_PID
8 ==============
9
10 Name
11 ----
12
13 DMX_REMOVE_PID
14
15 Synopsis
16 --------
17
18 .. c:macro:: DMX_REMOVE_PID
19
20 ``int ioctl(fd, DMX_REMOVE_PID, __u16 *pid)``
21
22 Arguments
23 ---------
24
25 ``fd``
26 File descriptor returned by :c:func:`open()`.
27
28 ``pid``
29 PID of the PES filter to be removed.
30
31 Description
32 -----------
33
34 This ioctl call allows to remove a PID when multiple PIDs are set on a
35 transport stream filter, e. g. a filter previously set up with output
36 equal to :c:type:`DMX_OUT_TSDEMUX_TAP <dmx_output>`, created via either
37 :ref:`DMX_SET_PES_FILTER` or :ref:`DMX_ADD_PID`.
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 The generic error codes are described at the
48 :ref:`Generic Error Codes <gen-errors>` chapter.
49

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

이름과 호출 형식

1-20

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

호출 형식은 `int ioctl(fd, DMX_REMOVE_PID, __u16 *pid)`입니다.

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

.. _DMX_REMOVE_PID:

==============
DMX_REMOVE_PID
==============

Name
----

DMX_REMOVE_PID

Synopsis
--------

.. c:macro:: DMX_REMOVE_PID

``int ioctl(fd, DMX_REMOVE_PID, __u16 *pid)``

인자와 제거 가능한 필터

21-37

`fd`는 `open()`이 반환한 file descriptor이고, `pid`는 제거할 PES 필터의 PID를 가리킵니다.

이 ioctl은 여러 PID가 설정된 transport stream 필터에서 PID 하나를 제거합니다.

대상은 출력이 `DMX_OUT_TSDEMUX_TAP <dmx_output>`인 필터이며, `DMX_SET_PES_FILTER` 또는 `DMX_ADD_PID`로 구성한 필터에 적용할 수 있습니다.

다중 PID 필터 축소
DMX_SET_PES_FILTER로 TSDEMUX_TAP 필터 구성필요한 PID를 DMX_ADD_PID로 추가제거할 __u16 PID 선택DMX_REMOVE_PID 호출나머지 PID 필터링은 유지

기존 TS demux tap 필터에서 지정 PID만 제거합니다.


Arguments
---------

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

``pid``
    PID of the PES filter to be removed.

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

This ioctl call allows to remove a PID when multiple PIDs are set on a
transport stream filter, e. g. a filter previously set up with output
equal to :c:type:`DMX_OUT_TSDEMUX_TAP <dmx_output>`, created via either
:ref:`DMX_SET_PES_FILTER` or :ref:`DMX_ADD_PID`.

반환값

38-48

성공하면 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.

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