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.
5 .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
6 .\" reformatting and rewordings by mtk
8 .\"*******************************************************************
10 .\" This file was generated with po4a. Translate the source file.
12 .\"*******************************************************************
13 .TH INIT_MODULE 2 2006\-02\-09 Linux "Linux Programmer's Manual"
15 init_module \- ローダブルモジュールのエントリを初期化する
18 \fB#include <linux/module.h>\fP
20 \fBint init_module(const char *\fP\fIname\fP\fB, struct module *\fP\fIimage\fP\fB);\fP
23 \fBinit_module\fP() は再配置されたモジュールイメージをカーネル空間にロードし、 そのモジュールの \fIinit\fP 関数を実行する。
25 モジュールイメージは先頭部分に module 構造体があり、その後ろに 適切なコードとデータが続く。 この module
31 unsigned long size_of_struct;
39 struct module_symbol *syms;
40 struct module_ref *deps;
41 struct module_ref *refs;
43 void (*cleanup)(void);
44 const struct exception_table_entry *ex_table_start;
45 const struct exception_table_entry *ex_table_end;
53 \fInext\fP と \fIrefs\fP 以外の全てのポインタ要素はモジュール本体内部を指し、 カーネル空間での適切な値で初期化される
54 (つまり、モジュールの残りの 部分で再配置される) ことが期待される。
56 このシステムコールを使うには特権が必要である。
58 成功の場合 0 が返される。エラーの場合 \-1 が返され、 \fIerrno\fP に適切な値が設定される。
65 \fIname\fP や \fIimage\fP がプログラムがアクセスできるアドレス空間の外部にある。
68 一部の \fIimage\fP スロットにおかしな値が入っている。または \fIimage\->name\fP
69 が元のモジュール名と一致していない。または、一部の \fIimage\->deps\fP エントリがロードされたモジュールに対応していない。
76 呼び出し元が特権 (\fBCAP_SYS_MODULE\fP ケーパビリティ) を持っていなかった。
78 \fBinit_module\fP() は Linux 固有である。
80 \fBcreate_module\fP(2), \fBdelete_module\fP(2), \fBquery_module\fP(2)
82 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
83 である。プロジェクトの説明とバグ報告に関する情報は
84 http://www.kernel.org/doc/man\-pages/ に書かれている。