요약·해설과 원문, 전문 번역을 서로 분리했습니다. 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.net
4
.. _NET_REMOVE_IF:
6
*******************
7
ioctl NET_REMOVE_IF
8
*******************
10
Name
11
====
13
NET_REMOVE_IF - Removes a network interface.
15
Synopsis
16
========
18
.. c:macro:: NET_REMOVE_IF
20
``int ioctl(int fd, NET_REMOVE_IF, int ifnum)``
22
Arguments
23
=========
25
``fd``
26
File descriptor returned by :c:func:`open()`.
28
``net_if``
29
number of the interface to be removed
31
Description
32
===========
34
The NET_REMOVE_IF ioctl deletes an interface previously created via
35
:ref:`NET_ADD_IF <net>`.
37
Return Value
38
============
40
On success 0 is returned, and :c:type:`ca_slot_info` is filled.
42
On error -1 is returned, and the ``errno`` variable is set
43
appropriately.
45
The generic error codes are described at the
46
:ref:`Generic Error Codes <gen-errors>` chapter.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
virtual interface 제거
1-46`NET_REMOVE_IF`는 앞서 `NET_ADD_IF`로 만든 virtual DVB network interface를 interface 번호로 제거합니다.
인자의미
int fdnet device를 `open()`해 얻은 file descriptor
int ifnum제거할 interface 번호
세 번째 인자는 제거할 interface 번호입니다.
원문 synopsis는 인자를 `ifnum`이라고 올바르게 적지만 Arguments 절에서는 `net_if`라고 부릅니다. 또한 성공 반환 설명의 `ca_slot_info`는 이 ioctl과 무관합니다. 두 원문 표기는 그대로 보존하고 번역 해설에서만 차이를 알립니다.
성공하면 0, 오류이면 -1을 반환하고 `errno`를 설정합니다.
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.net
.. _NET_REMOVE_IF:
*******************
ioctl NET_REMOVE_IF
*******************
Name
====
NET_REMOVE_IF - Removes a network interface.
Synopsis
========
.. c:macro:: NET_REMOVE_IF
``int ioctl(int fd, NET_REMOVE_IF, int ifnum)``
Arguments
=========
``fd``
File descriptor returned by :c:func:`open()`.
``net_if``
number of the interface to be removed
Description
===========
The NET_REMOVE_IF ioctl deletes an interface previously created via
:ref:`NET_ADD_IF <net>`.
Return Value
============
On success 0 is returned, and :c:type:`ca_slot_info` is filled.
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.
요약·해설
net-remove-if.rst:1-46Synopsis의 `ifnum`과 Arguments의 `net_if` 표기 차이를 원문 그대로 보존해 검수 지점으로 표시했습니다.