1 .\" Copyright (C) 1996 Free Software Foundation, Inc.
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" This file is distributed according to the GNU General Public License.
7 .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
8 .\" reformatting and rewordings by mtk
10 .TH CREATE_MODULE 2 2012-10-18 "Linux" "Linux Programmer's Manual"
12 create_module \- create a loadable module entry
15 .B #include <linux/module.h>
17 .BI "caddr_t create_module(const char *" name ", size_t " size );
21 This system call is present only in kernels before Linux 2.6.
24 attempts to create a loadable module entry and reserve the kernel memory
25 that will be needed to hold the module.
26 This system call requires privilege.
28 On success, returns the kernel address at which the module will reside.
29 On error, \-1 is returned and
35 A module by that name already exists.
39 is outside the program's accessible address space.
42 The requested size is too small even for the module header information.
45 The kernel could not allocate a contiguous block of memory large
46 enough for the module.
50 is not supported in this version of the kernel
51 (e.g., the kernel is version 2.6 or later).
54 The caller was not privileged
59 This system call is present on Linux only up until kernel 2.4;
60 it was removed in Linux 2.6.
61 .\" Removed in Linux 2.5.48
66 .BR delete_module (2),
70 This page is part of release 3.64 of the Linux
73 A description of the project,
74 and information about reporting bugs,
76 \%http://www.kernel.org/doc/man\-pages/.