← Documents Documentation/userspace-api/media/dvb/frontend_f_close.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / DVB / Frontend

Digital TV frontend close()

Frontend file descriptor 종료와 하드웨어 power-down 가능성을 설명합니다.

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

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

1. 요약·해설

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

요약·해설

frontend_f_close.rst:1-46

close() 후 대응 하드웨어가 자동으로 꺼질 수 있습니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.fe
3
4 .. _frontend_f_close:
5
6 ***************************
7 Digital TV frontend close()
8 ***************************
9
10 Name
11 ====
12
13 fe-close - Close a frontend device
14
15 Synopsis
16 ========
17
18 .. code-block:: c
19
20 #include <unistd.h>
21
22 .. c:function:: int close( int fd )
23
24 Arguments
25 =========
26
27 ``fd``
28 File descriptor returned by :c:func:`open()`.
29
30 Description
31 ===========
32
33 This system call closes a previously opened front-end device. After
34 closing a front-end device, its corresponding hardware might be powered
35 down automatically.
36
37 Return Value
38 ============
39
40 On success 0 is returned.
41
42 On error -1 is returned, and the ``errno`` variable is set
43 appropriately.
44
45 Generic error codes are described at the
46 :ref:`Generic Error Codes <gen-errors>` chapter.
47

3. 한국어 전문 번역

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

close() 선언과 fd

1-29

Frontend 장치를 닫으려면 `<unistd.h>`를 포함하고 `int close(int fd)`를 호출합니다.

close() 인수
인수의미
fdopen()이 반환한 파일 descriptor

열려 있는 frontend file descriptor를 전달합니다.

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

.. _frontend_f_close:

***************************
Digital TV frontend close()
***************************

Name
====

fe-close - Close a frontend device

Synopsis
========

.. code-block:: c

    #include <unistd.h>

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

Arguments
=========

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

장치 종료와 전원 상태

30-46

이 system call은 이전에 연 frontend 장치를 닫습니다. 장치를 닫은 뒤 해당 하드웨어의 전원이 자동으로 꺼질 수 있습니다.

성공 시 0, 오류 시 -1을 반환하고 `errno`를 적절히 설정합니다. 일반 오류는 `Generic Error Codes <gen-errors>` 절에 설명되어 있습니다.

Frontend close
사용 중인 frontend 작업 종료close(fd) 호출File descriptor 해제필요하면 하드웨어 자동 power-down

File descriptor 종료가 하드웨어 전원 상태에 영향을 줄 수 있습니다.

Description
===========

This system call closes a previously opened front-end device. After
closing a front-end device, its corresponding hardware might be powered
down automatically.

Return Value
============

On success 0 is returned.

On error -1 is returned, and the ``errno`` variable is set
appropriately.

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