요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
.. c:namespace:: DTV.fe
4
.. _frontend_f_close:
6
***************************
7
Digital TV frontend close()
8
***************************
10
Name
11
====
13
fe-close - Close a frontend device
15
Synopsis
16
========
18
.. code-block:: c
20
#include <unistd.h>
22
.. c:function:: int close( int fd )
24
Arguments
25
=========
27
``fd``
28
File descriptor returned by :c:func:`open()`.
30
Description
31
===========
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.
37
Return Value
38
============
40
On success 0 is returned.
42
On error -1 is returned, and the ``errno`` variable is set
43
appropriately.
45
Generic error codes are described at the
46
:ref:`Generic Error Codes <gen-errors>` chapter.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
close() 선언과 fd
1-29Frontend 장치를 닫으려면 `<unistd.h>`를 포함하고 `int close(int fd)`를 호출합니다.
인수의미
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(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.
요약·해설
frontend_f_close.rst:1-46close() 후 대응 하드웨어가 자동으로 꺼질 수 있습니다.