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.
5 .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
6 .\" reformatting and rewordings by mtk
8 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
9 .\" Translated 2006-07-29, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
11 .TH CREATE_MODULE 2 2007-06-03 "Linux" "Linux Programmer's Manual"
14 .\"O create_module \- create a loadable module entry
15 create_module \- ローダブルモジュールのエントリを作成する
19 .B #include <linux/module.h>
21 .BI "caddr_t create_module(const char *" name ", size_t " size );
25 .\"O .BR create_module ()
26 .\"O attempts to create a loadable module entry and reserve the kernel memory
27 .\"O that will be needed to hold the module.
28 .\"O This system call requires privilege.
30 は、ローダブルモジュールのエントリを作成し、そのモジュールの保持に必要な
32 このシステムコールを使うには特権が必要である。
33 .\"O .SH "RETURN VALUE"
35 .\"O On success, returns the kernel address at which the module will reside.
36 .\"O On error \-1 is returned and
38 .\"O is set appropriately.
39 成功すると、モジュールが配置されるカーネル空間のアドレスを返す。
47 .\"O A module by that name already exists.
52 .\"O is outside the program's accessible address space.
54 がプログラムがアクセスできるアドレス空間の外部にある。
57 .\"O The requested size is too small even for the module header information.
58 要求したサイズが小さすぎて、モジュールのヘッダ情報すら格納できない。
61 .\"O The kernel could not allocate a contiguous block of memory large
62 .\"O enough for the module.
63 モジュールを格納するのに必要な大きさの連続したメモリブロックを
67 .\"O .BR create_module ()
68 .\"O is not supported in this version of the kernel.
70 がこのバージョンのカーネルではサポートされていない。
73 .\"O The caller was not privileged
74 .\"O (did not have the
75 .\"O .B CAP_SYS_MODULE
82 .\"O This system call is only present on Linux up until kernel 2.4;
83 .\"O it was removed in Linux 2.6.
84 このシステムコールが存在するのはカーネル 2.4 までの Linux だけである。
86 .\" Removed in Linux 2.5.48
87 .\"O .SH "CONFORMING TO"
89 .\"O .BR create_module ()
90 .\"O is Linux-specific.
95 .BR delete_module (2),