OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / release / 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 .SH 名前
13 delete_module \- ローダブルモジュールのエントリを削除する
14 .SH 書式
15 .nf
16 .B #include <linux/module.h>
17 .sp
18 .BI "int delete_module(const char *" name );
19 .fi
20 .SH 説明
21 .BR delete_module ()
22 は、未使用のローダブルモジュールのエントリを削除しようとする。
23 .I name
24 が NULL の場合、未使用のモジュールのうち「自動削除 (auto-clean)」
25 マークがついたものを全て削除する。
26 このシステムコールを使うには特権が必要である。
27 .SH 返り値
28 成功すると 0 を返す。エラーの場合 \-1 を返し、
29 .I errno
30 を適切に設定する。
31 .SH エラー
32 .TP
33 .B EBUSY
34 そのモジュールは使用中である。
35 .TP
36 .B EFAULT
37 .I name
38 がプログラムがアクセスできるアドレス空間の外部にある。
39 .TP
40 .B EINVAL
41 .I name
42 が空文字列である。
43 .TP
44 .B ENOENT
45 その名前のモジュールが存在しない。
46 .TP
47 .B EPERM
48 呼び出し元が特権
49 .RB ( CAP_SYS_MODULE
50 ケーパビリティ) を持っていなかった。
51 .SH 準拠
52 .BR delete_module ()
53 は Linux 固有である。
54 .SH 関連項目
55 .BR create_module (2),
56 .BR init_module (2),
57 .BR query_module (2)