OSDN Git Service

26446330b01e79e1b3e6242351472628dd6bdeb8
[linuxjm/LDP_man-pages.git] / draft / man2 / delete_module.2
1 .\" Copyright (C) 1996 Free Software Foundation, Inc.
2 .\" This file is distributed according to the GNU General Public License.
3 .\" See the file COPYING in the top level source directory for details.
4 .\"
5 .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
6 .\" reformatting and rewordings by mtk
7 .\"
8 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
9 .\" Translated 2006-07-29, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .\"
11 .TH DELETE_MODULE 2 2006-02-09 "Linux" "Linux Programmer's Manual"
12 .\"O .SH NAME
13 .SH 名前
14 .\"O delete_module \- delete a loadable module entry
15 delete_module \- ローダブルモジュールのエントリを削除する
16 .\"O .SH SYNOPSIS
17 .SH 書式
18 .nf
19 .B #include <linux/module.h>
20 .sp
21 .BI "int delete_module(const char *" name );
22 .fi
23 .\"O .SH DESCRIPTION
24 .SH 説明
25 .\"O .BR delete_module ()
26 .\"O attempts to remove an unused loadable module entry.
27 .\"O If
28 .\"O .I name
29 .\"O is NULL,
30 .\"O all unused modules marked auto-clean will be removed.
31 .\"O This system call requires privilege.
32 .BR delete_module ()
33 は、未使用のローダブルモジュールのエントリを削除しようとする。
34 .I name
35 が NULL の場合、未使用のモジュールのうち「自動削除 (auto-clean)」
36 マークがついたものを全て削除する。
37 このシステムコールを使うには特権が必要である。
38 .\"O .SH "RETURN VALUE"
39 .SH 返り値
40 .\"O On success, zero is returned.
41 .\"O On error, \-1 is returned and
42 .\"O .I errno
43 .\"O is set appropriately.
44 成功すると 0 を返す。エラーの場合 \-1 を返し、
45 .I errno
46 を適切に設定する。
47 .\"O .SH ERRORS
48 .SH エラー
49 .TP
50 .B EBUSY
51 .\"O The module is in use.
52 そのモジュールは使用中である。
53 .TP
54 .B EFAULT
55 .\"O .I name
56 .\"O is outside the program's accessible address space.
57 .I name
58 がプログラムがアクセスできるアドレス空間の外部にある。
59 .TP
60 .B EINVAL
61 .\"O .I name
62 .\"O was an empty string.
63 .I name
64 が空文字列である。
65 .TP
66 .B ENOENT
67 .\"O No module by that name exists.
68 その名前のモジュールが存在しない。
69 .TP
70 .B EPERM
71 .\"O The caller was not privileged
72 .\"O (did not have the
73 .\"O .B CAP_SYS_MODULE
74 .\"O capability).
75 呼び出し元が特権
76 .RB ( CAP_SYS_MODULE
77 ケーパビリティ) を持っていなかった。
78 .\"O .SH "CONFORMING TO"
79 .SH 準拠
80 .\"O .BR delete_module ()
81 .\"O is Linux-specific.
82 .BR delete_module ()
83 は Linux 固有である。
84 .\"O .SH "SEE ALSO"
85 .SH 関連項目
86 .BR create_module (2),
87 .BR init_module (2),
88 .BR query_module (2)