Documentation/userspace-api/media/dvb/dmx-fclose.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / DVB / Demux

Digital TV demux close()

필터를 비활성화하고 할당된 자원을 해제합니다.

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

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

1. 요약·해설

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

요약·해설

dmx-fclose.rst:1-42

close()는 하나의 demux 필터를 참조하는 fd를 닫으며 필터를 비활성화하고 해제합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.dmx
3
4 .. _dmx_fclose:
5
6 ========================
7 Digital TV demux close()
8 ========================
9
10 Name
11 ----
12
13 Digital TV demux close()
14
15 Synopsis
16 --------
17
18 .. c:function:: int close(int fd)
19
20 Arguments
21 ---------
22
23 ``fd``
24 File descriptor returned by a previous call to
25 :c:func:`open()`.
26
27 Description
28 -----------
29
30 This system call deactivates and deallocates a filter that was
31 previously allocated via the :c:func:`open()` call.
32
33 Return Value
34 ------------
35
36 On success 0 is returned.
37
38 On error, -1 is returned and the ``errno`` variable is set
39 appropriately.
40
41 The generic error codes are described at the
42 :ref:`Generic Error Codes <gen-errors>` chapter.
43

3. 한국어 전문 번역

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

이름과 호출 형식

1-18

이 문서는 GFDL-1.1-no-invariants-or-later 라이선스와 `DTV.dmx` C namespace를 사용하며 `dmx_fclose` 참조 대상으로 Digital TV demux의 `close()`를 설명합니다.

함수 원형은 `int close(int fd)`입니다.

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

.. _dmx_fclose:

========================
Digital TV demux close()
========================

Name
----

Digital TV demux close()

Synopsis
--------

.. c:function:: int close(int fd)

인자와 필터 해제

19-31

`fd`는 앞선 `open()` 호출이 반환한 file descriptor입니다.

이 시스템 호출은 `open()`으로 이전에 할당한 필터를 비활성화하고 그 자원을 해제합니다.

Demux 필터 종료
open()으로 필터와 fd 할당필터 사용 및 제어 완료close(fd) 호출필터 비활성화와 자원 해제

하나의 fd가 참조하는 필터를 비활성화하고 해제합니다.


Arguments
---------

``fd``
  File descriptor returned by a previous call to
  :c:func:`open()`.

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

This system call deactivates and deallocates a filter that was
previously allocated via the :c:func:`open()` call.

반환값

32-42

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