1 .\" Copyright (C) 1996 Free Software Foundation, Inc.
2 .\" This file is distributed accroding to the GNU General Public License.
3 .\" See the file COPYING in the top level source directory for details.
5 .\" Japanese Version Copyright (c) 1997,1999 HANATAKA Shinya and FUJIWARA Teruyoshi
6 .\" all rights reserved.
7 .\" Translated Sat Aug 30 13:53:25 JST 1997
8 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
9 .\" Merged with another translation Sun Aug 15 10:39:49 JST 1999
10 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
12 .\"WORD: loadable module ¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë
14 .TH INIT_MODULE 2 "26 Dec 1996" "Linux 2.1.17" "Linux Module Support"
16 init_module \- ¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë¤Î¥¨¥ó¥È¥ê¤ò½é´ü²½¤¹¤ë
19 .B #include <linux/module.h>
21 .BI "int init_module(const char *" name ", struct module *" image );
25 ¤ÏºÆÇÛÃÖ¤µ¤ì¤¿¥â¥¸¥å¡¼¥ë¥¤¥á¡¼¥¸¤ò¥«¡¼¥Í¥ë¶õ´Ö¤Ë¥í¡¼¥É¤·¡¢¤½¤Î
26 ¥â¥¸¥å¡¼¥ë¤Î \fIinit\fP ´Ø¿ô¤ò¼Â¹Ô¤¹¤ë¡£
28 ¥â¥¸¥å¡¼¥ë¥¤¥á¡¼¥¸¤Ï¡¢ÀèƬÉôʬ¤Ë¥â¥¸¥å¡¼¥ë¹½Â¤ÂΤ¬ÃÖ¤«¤ì¡¢¤½¤Î¸å¤ËŬÀÚ
29 ¤Ê¥³¡¼¥É¤È¥Ç¡¼¥¿¤¬ÇÛÃÖ¤µ¤ì¤ë¡£¥â¥¸¥å¡¼¥ë¹½Â¤ÂΤÎÄêµÁ¤ò°Ê²¼¤Ë¼¨¤¹:
35 unsigned long size_of_struct;
43 struct module_symbol *syms;
44 struct module_ref *deps;
45 struct module_ref *refs;
47 void (*cleanup)(void);
48 const struct exception_table_entry *ex_table_start;
49 const struct exception_table_entry *ex_table_end;
57 \fInext\fP ¤È \fIrefs\fP °Ê³°¤ÎÁ´¤Æ¤Î¥Ý¥¤¥ó¥¿Í×ÁǤϡ¢
58 ¥â¥¸¥å¡¼¥ë¤ÎËÜÂÎÆâÉô¤ò»Ø¤·¡¢¥«¡¼¥Í¥ë¶õ´Ö¤Ç¤ÎŬÀÚ¤ÊÃͤǽé´ü²½¤µ¤ì¤ë
59 (¤Ä¤Þ¤ê¥â¥¸¥å¡¼¥ë¤Î»Ä¤ê¤ÎÉôʬ¤È¶¦¤ËºÆÇÛÃÖ¤µ¤ì¤ë)¤³¤È¤¬´üÂÔ¤µ¤ì¤ë¡£
61 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤¨¤ë¤Î¤Ï¥æ¡¼¥Ñ¡¼¥æ¡¼¥¶¤À¤±¤Ç¤¢¤ë¡£
63 À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢\fIerrno\fP
64 ¤ËŬÀÚ¤ÊÃͤ¬ÀßÄꤵ¤ì¤ë¡£
68 ¸Æ¤Ó½Ð¤·¤ò¹Ô¤Ã¤¿¥æ¡¼¥¶¤¬¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ç¤Ê¤¤¡£
71 ¤½¤Î̾Á°¤ò»ý¤Ä¥â¥¸¥å¡¼¥ë¤¬Â¸ºß¤·¤Ê¤¤¡£
74 \fIimage\fP ¥¹¥í¥Ã¥È¤Î°ìÉô¤Ë¸í¤Ã¤¿Ãͤ¬Æþ¤Ã¤Æ¤¤¤ë¤«¡¢
75 \fIimage->name\fP ¤¬¸µ¤Î¥â¥¸¥å¡¼¥ë¤Î̾Á°¤Ë°ìÃפ·¤Æ¤¤¤Ê¤¤¤«¡¢
76 \fIimage->deps\fP ¥¨¥ó¥È¥ê¤Î°ìÉô¤¬¥í¡¼¥É¤µ¤ì¤¿¥â¥¸¥å¡¼¥ë¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¡£
77 ¤¢¤ë¤¤¤ÏƱÍͤÎÊ̤ÎÌ·½â¤¬µ¯¤¤Æ¤¤¤ë¡£
80 ¥â¥¸¥å¡¼¥ë¤Î½é´ü²½¥ë¡¼¥Á¥ó¤¬¼ºÇÔ¤·¤¿¡£
83 \fIname\fP ¤¢¤ë¤¤¤Ï \fIimage\fP ¤¬¡¢¥×¥í¥°¥é¥à¤¬¥¢¥¯¥»¥¹¤Ç¤¤ë
84 ¥¢¥É¥ì¥¹¶õ´Ö¤Î³°Éô¤Ç¤¢¤ë¡£
86 .BR create_module "(2), " delete_module "(2), " query_module "(2)"