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 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
9 .\" Translated 2006-07-29, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
11 .TH INIT_MODULE 2 2006-02-09 "Linux" "Linux Programmer's Manual"
13 init_module \- ローダブルモジュールのエントリを初期化する
16 .B #include <linux/module.h>
18 .BI "int init_module(const char *" name ", struct module *" image );
22 は再配置されたモジュールイメージをカーネル空間にロードし、
27 モジュールイメージは先頭部分に module 構造体があり、その後ろに
29 この module 構造体は以下のように定義されている:
34 unsigned long size_of_struct;
42 struct module_symbol *syms;
43 struct module_ref *deps;
44 struct module_ref *refs;
46 void (*cleanup)(void);
47 const struct exception_table_entry *ex_table_start;
48 const struct exception_table_entry *ex_table_end;
59 以外の全てのポインタ要素はモジュール本体内部を指し、
60 カーネル空間での適切な値で初期化される (つまり、モジュールの残りの
63 このシステムコールを使うには特権が必要である。
65 成功すると 0 を返す。エラーの場合 \-1 を返し、
77 がプログラムがアクセスできるアドレス空間の外部にある。
84 が元のモジュール名と一致していない。または、一部の
86 エントリがロードされたモジュールに対応していない。
100 .BR create_module (2),
101 .BR delete_module (2),