OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / modutils / release / man2 / init_module.2
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.
4 .\"
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>
11 .\"
12 .\"WORD:        loadable module         ¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë
13 .\"
14 .TH INIT_MODULE 2 "26 Dec 1996" "Linux 2.1.17" "Linux Module Support"
15 .SH Ì¾Á°
16 init_module \- ¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë¤Î¥¨¥ó¥È¥ê¤ò½é´ü²½¤¹¤ë
17 .SH ½ñ¼°
18 .nf
19 .B #include <linux/module.h>
20 .sp
21 .BI "int init_module(const char *" name ", struct module *" image );
22 .fi
23 .SH ÀâÌÀ
24 .B init_module
25 ¤ÏºÆÇÛÃÖ¤µ¤ì¤¿¥â¥¸¥å¡¼¥ë¥¤¥á¡¼¥¸¤ò¥«¡¼¥Í¥ë¶õ´Ö¤Ë¥í¡¼¥É¤·¡¢¤½¤Î
26 ¥â¥¸¥å¡¼¥ë¤Î \fIinit\fP ´Ø¿ô¤ò¼Â¹Ô¤¹¤ë¡£
27 .PP
28 ¥â¥¸¥å¡¼¥ë¥¤¥á¡¼¥¸¤Ï¡¢ÀèƬÉôʬ¤Ë¥â¥¸¥å¡¼¥ë¹½Â¤ÂΤ¬ÃÖ¤«¤ì¡¢¤½¤Î¸å¤ËŬÀÚ
29 ¤Ê¥³¡¼¥É¤È¥Ç¡¼¥¿¤¬ÇÛÃÖ¤µ¤ì¤ë¡£¥â¥¸¥å¡¼¥ë¹½Â¤ÂΤÎÄêµÁ¤ò°Ê²¼¤Ë¼¨¤¹:
30 .PP
31 .RS
32 .nf
33 struct module
34 {
35   unsigned long size_of_struct;
36   struct module *next;
37   const char *name;
38   unsigned long size;
39   long usecount;
40   unsigned long flags;
41   unsigned int nsyms;
42   unsigned int ndeps;
43   struct module_symbol *syms;
44   struct module_ref *deps;
45   struct module_ref *refs;
46   int (*init)(void);
47   void (*cleanup)(void);
48   const struct exception_table_entry *ex_table_start;
49   const struct exception_table_entry *ex_table_end;
50 #ifdef __alpha__
51   unsigned long gp;
52 #endif
53 };
54 .fi
55 .RE
56 .PP
57 \fInext\fP ¤È \fIrefs\fP °Ê³°¤ÎÁ´¤Æ¤Î¥Ý¥¤¥ó¥¿Í×ÁǤϡ¢
58 ¥â¥¸¥å¡¼¥ë¤ÎËÜÂÎÆâÉô¤ò»Ø¤·¡¢¥«¡¼¥Í¥ë¶õ´Ö¤Ç¤ÎŬÀÚ¤ÊÃͤǽé´ü²½¤µ¤ì¤ë
59 (¤Ä¤Þ¤ê¥â¥¸¥å¡¼¥ë¤Î»Ä¤ê¤ÎÉôʬ¤È¶¦¤ËºÆÇÛÃÖ¤µ¤ì¤ë)¤³¤È¤¬´üÂÔ¤µ¤ì¤ë¡£
60 .PP
61 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤¨¤ë¤Î¤Ï¥æ¡¼¥Ñ¡¼¥æ¡¼¥¶¤À¤±¤Ç¤¢¤ë¡£
62 .SH ÊÖ¤êÃÍ
63 À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢\fIerrno\fP 
64 ¤ËŬÀÚ¤ÊÃͤ¬ÀßÄꤵ¤ì¤ë¡£
65 .SH ¥¨¥é¡¼
66 .TP
67 .B EPERM
68 ¸Æ¤Ó½Ð¤·¤ò¹Ô¤Ã¤¿¥æ¡¼¥¶¤¬¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ç¤Ê¤¤¡£
69 .TP
70 .B ENOENT
71 ¤½¤Î̾Á°¤ò»ý¤Ä¥â¥¸¥å¡¼¥ë¤¬Â¸ºß¤·¤Ê¤¤¡£
72 .TP
73 .B EINVAL
74 \fIimage\fP ¥¹¥í¥Ã¥È¤Î°ìÉô¤Ë¸í¤Ã¤¿Ãͤ¬Æþ¤Ã¤Æ¤¤¤ë¤«¡¢
75 \fIimage->name\fP ¤¬¸µ¤Î¥â¥¸¥å¡¼¥ë¤Î̾Á°¤Ë°ìÃפ·¤Æ¤¤¤Ê¤¤¤«¡¢
76 \fIimage->deps\fP ¥¨¥ó¥È¥ê¤Î°ìÉô¤¬¥í¡¼¥É¤µ¤ì¤¿¥â¥¸¥å¡¼¥ë¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¡£
77 ¤¢¤ë¤¤¤ÏƱÍͤÎÊ̤ÎÌ·½â¤¬µ¯¤­¤Æ¤¤¤ë¡£
78 .TP
79 .B EBUSY
80 ¥â¥¸¥å¡¼¥ë¤Î½é´ü²½¥ë¡¼¥Á¥ó¤¬¼ºÇÔ¤·¤¿¡£
81 .TP
82 .B EFAULT
83 \fIname\fP ¤¢¤ë¤¤¤Ï \fIimage\fP ¤¬¡¢¥×¥í¥°¥é¥à¤¬¥¢¥¯¥»¥¹¤Ç¤­¤ë
84 ¥¢¥É¥ì¥¹¶õ´Ö¤Î³°Éô¤Ç¤¢¤ë¡£
85 .SH ´ØÏ¢¹àÌÜ
86 .BR create_module "(2), " delete_module "(2), " query_module "(2)"
87