File: init_module.2

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (87 lines) | stat: -rw-r--r-- 2,600 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.\" Copyright (C) 1996 Free Software Foundation, Inc.
.\" This file is distributed accroding to the GNU General Public License.
.\" See the file COPYING in the top level source directory for details.
.\"
.\" Japanese Version Copyright (c) 1997,1999 HANATAKA Shinya and FUJIWARA Teruyoshi
.\"         all rights reserved.
.\" Translated Sat Aug 30 13:53:25 JST 1997
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Merged with another translation Sun Aug 15 10:39:49 JST 1999
.\"         by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
.\"
.\"WORD:        loadable module         ֥⥸塼
.\"
.TH INIT_MODULE 2 "26 Dec 1996" "Linux 2.1.17" "Linux Module Support"
.SH ̾
init_module \- ֥⥸塼Υȥ
.SH 
.nf
.B #include <linux/module.h>
.sp
.BI "int init_module(const char *" name ", struct module *" image );
.fi
.SH 
.B init_module
Ϻ֤줿⥸塼륤᡼򥫡֤ͥ˥ɤ
⥸塼 \fIinit\fP ؿ¹Ԥ롣
.PP
⥸塼륤᡼ϡƬʬ˥⥸塼빽¤Τ֤졢θŬ
ʥɤȥǡ֤롣⥸塼빽¤Τʲ˼:
.PP
.RS
.nf
struct module
{
  unsigned long size_of_struct;
  struct module *next;
  const char *name;
  unsigned long size;
  long usecount;
  unsigned long flags;
  unsigned int nsyms;
  unsigned int ndeps;
  struct module_symbol *syms;
  struct module_ref *deps;
  struct module_ref *refs;
  int (*init)(void);
  void (*cleanup)(void);
  const struct exception_table_entry *ex_table_start;
  const struct exception_table_entry *ex_table_end;
#ifdef __alpha__
  unsigned long gp;
#endif
};
.fi
.RE
.PP
\fInext\fP  \fIrefs\fP ʳƤΥݥǤϡ
⥸塼ؤ֤ͥǤŬڤͤǽ
(Ĥޤ⥸塼λĤʬȶ˺֤)ȤԤ롣
.PP
ΥƥॳȤΤϥ桼ѡ桼Ǥ롣
.SH ֤
 0 ֤롣顼ξ \-1 ֤졢\fIerrno\fP 
Ŭڤͤꤵ롣
.SH 顼
.TP
.B EPERM
ƤӽФԤä桼ѡ桼Ǥʤ
.TP
.B ENOENT
̾ĥ⥸塼뤬¸ߤʤ
.TP
.B EINVAL
\fIimage\fP åȤΰ˸äͤäƤ뤫
\fIimage->name\fP Υ⥸塼̾˰פƤʤ
\fIimage->deps\fP ȥΰɤ줿⥸塼бƤʤ
뤤Ʊ̷̤ͤ⤬Ƥ롣
.TP
.B EBUSY
⥸塼ν롼󤬼Ԥ
.TP
.B EFAULT
\fIname\fP 뤤 \fIimage\fP ץबǤ
ɥ쥹֤γǤ롣
.SH Ϣ
.BR create_module "(2), " delete_module "(2), " query_module "(2)"