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 .TH CREATE_MODULE 2 2007-06-03 "Linux" "Linux Programmer's Manual"
10 create_module \- create a loadable module entry
13 .B #include <linux/module.h>
15 .BI "caddr_t create_module(const char *" name ", size_t " size );
19 attempts to create a loadable module entry and reserve the kernel memory
20 that will be needed to hold the module.
21 This system call requires privilege.
23 On success, returns the kernel address at which the module will reside.
24 On error \-1 is returned and
30 A module by that name already exists.
34 is outside the program's accessible address space.
37 The requested size is too small even for the module header information.
40 The kernel could not allocate a contiguous block of memory large
41 enough for the module.
45 is not supported in this version of the kernel.
48 The caller was not privileged
53 This system call is only present on Linux up until kernel 2.4;
54 it was removed in Linux 2.6.
55 .\" Removed in Linux 2.5.48
60 .BR delete_module (2),