File: init_module.2

package info (click to toggle)
manpages-hu 20010119-7
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,264 kB
  • sloc: makefile: 56; lisp: 56
file content (80 lines) | stat: -rw-r--r-- 2,307 bytes parent folder | download | duplicates (5)
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
.\" 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.
.\" $Id: init_module.2 1.2 Thu, 13 Apr 2000 18:17:59 +1000 kaos $
.\"
.TH INIT_MODULE 2 "1996. december 26" "Linux 2.1.17" "Linux Modul Tmogats"
.SH NV
init_module \- inicializl egy betlthet modul terletet.
.SH TTEKINTS
.nf
.B #include <linux/module.h>
.sp
.BI "int init_module(const char *" name ", struct module *" image );
.fi
.SH LERS
.B init_module
betlti a reloklt modul image-et a kernel terletre, s futtatja a modul
\fIinit\fP fggvnyt.
.PP
A modul image egy modul struktrval kezddik s rendszerint a kd
s adat rszekkel folytatdik. A modul struktra a kvetkez:
.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
Minden pointer mez, kivve a \fInext\fP s \fIrefs\fP mezket,
a modul terletn bellre kell hogy mutassanak, s a kernel terletnek
megfelelen inicializldnak, pl. thelyezdnek a modul tbbi rszvel
egytt.
.PP
Ezt a rendszerhvst csak a superuser hasznlhatja.
.SH "VISSZATRSI RTK"
Siker esetn zr. Hiba esetn az rtk \-1, s az \fIerrno\fP rtke
megfelelen lesz belltva.
.SH HIBK
.TP
.B EPERM
A felhasznl nem a superuser.
.TP
.B ENOENT
Nincs ilyen nev modul.
.TP
.B EINVAL
Nhny \fIimage\fP mutat helytelen, \fIimage->name\fP nem felel meg
az eredeti modul nevnek, nhny \fIimage->deps\fP hivatkozs nem felel
meg a betlttt modulnak, vagy hasonl inkonzisztencia trtnt.
.TP
.B EBUSY
A modul inicializl rutinja sikertelen volt.
.TP
.B EFAULT
\fIname\fP vagy \fIimage\fP kvl esik a program ltal elrhet
cimtartomnyon.
.SH "LSD MG"
.BR create_module "(2), " delete_module "(2), " query_module "(2)."
.SH MAGYAR FORDTS
Bszrmnyi Zoltn <zboszor@mail.externet.hu>