OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / release / man2 / create_module.2
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.
4 .\"
5 .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
6 .\" reformatting and rewordings by mtk
7 .\"
8 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
9 .\" Translated 2006-07-29, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .\"
11 .TH CREATE_MODULE 2 2007-06-03 "Linux" "Linux Programmer's Manual"
12 .SH Ì¾Á°
13 create_module \- ¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë¤Î¥¨¥ó¥È¥ê¤òºîÀ®¤¹¤ë
14 .SH ½ñ¼°
15 .nf
16 .B #include <linux/module.h>
17 .sp
18 .BI "caddr_t create_module(const char *" name ", size_t " size );
19 .fi
20 .SH ÀâÌÀ
21 .BR create_module ()
22 ¤Ï¡¢¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë¤Î¥¨¥ó¥È¥ê¤òºîÀ®¤·¡¢¤½¤Î¥â¥¸¥å¡¼¥ë¤ÎÊÝ»ý¤ËɬÍפÊ
23 ¥«¡¼¥Í¥ë¥á¥â¥ê¤òͽÌ󤷤褦¤È¤¹¤ë¡£
24 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤¦¤Ë¤ÏÆø¢¤¬É¬ÍפǤ¢¤ë¡£
25 .SH ÊÖ¤êÃÍ
26 À®¸ù¤¹¤ë¤È¡¢¥â¥¸¥å¡¼¥ë¤¬ÇÛÃÖ¤µ¤ì¤ë¥«¡¼¥Í¥ë¶õ´Ö¤Î¥¢¥É¥ì¥¹¤òÊÖ¤¹¡£
27 ¥¨¥é¡¼¤Î¾ì¹ç \-1 ¤òÊÖ¤·¡¢
28 .I errno
29 ¤òŬÀÚ¤ËÀßÄꤹ¤ë¡£
30 .SH ¥¨¥é¡¼
31 .TP
32 .B EEXIST
33 ¤½¤Î̾Á°¤Î¥â¥¸¥å¡¼¥ë¤¬¤¹¤Ç¤Ë¸ºß¤¹¤ë¡£
34 .TP
35 .B EFAULT
36 .I name
37 ¤¬¥×¥í¥°¥é¥à¤¬¥¢¥¯¥»¥¹¤Ç¤­¤ë¥¢¥É¥ì¥¹¶õ´Ö¤Î³°Éô¤Ë¤¢¤ë¡£
38 .TP
39 .B EINVAL
40 Í׵ᤷ¤¿¥µ¥¤¥º¤¬¾®¤µ¤¹¤®¤Æ¡¢¥â¥¸¥å¡¼¥ë¤Î¥Ø¥Ã¥À¾ðÊ󤹤é³ÊǼ¤Ç¤­¤Ê¤¤¡£
41 .TP
42 .B ENOMEM
43 ¥â¥¸¥å¡¼¥ë¤ò³ÊǼ¤¹¤ë¤Î¤ËɬÍפÊÂ礭¤µ¤ÎϢ³¤·¤¿¥á¥â¥ê¥Ö¥í¥Ã¥¯¤ò
44 ¥«¡¼¥Í¥ë¤¬³ÎÊݤǤ­¤Ê¤«¤Ã¤¿¡£
45 .TP
46 .B ENOSYS
47 .BR create_module ()
48 ¤¬¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
49 .TP
50 .B EPERM
51 ¸Æ¤Ó½Ð¤·¸µ¤¬Æø¢
52 .RB ( CAP_SYS_MODULE
53 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£) ¤ò»ý¤Ã¤Æ¤¤¤Ê¤«¤Ã¤¿¡£
54 .SH ¥Ð¡¼¥¸¥ç¥ó
55 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬Â¸ºß¤¹¤ë¤Î¤Ï¥«¡¼¥Í¥ë 2.4 ¤Þ¤Ç¤Î Linux ¤À¤±¤Ç¤¢¤ë¡£
56 Linux 2.6 ¤Ç¤Ïºï½ü¤µ¤ì¤¿¡£
57 .\" Removed in Linux 2.5.48
58 .SH ½àµò
59 .BR create_module ()
60 ¤Ï Linux ¸ÇÍ­¤Ç¤¢¤ë¡£
61 .SH ´ØÏ¢¹àÌÜ
62 .BR delete_module (2),
63 .BR init_module (2),
64 .BR query_module (2)