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 2014-05-10 "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 No declaration of this function is provided in glibc headers; see NOTES.
24 This system call is present only in kernels before Linux 2.6.
27 attempts to create a loadable module entry and reserve the kernel memory
28 that will be needed to hold the module.
29 This system call requires privilege.
31 On success, returns the kernel address at which the module will reside.
32 On error, \-1 is returned and
38 A module by that name already exists.
42 is outside the program's accessible address space.
45 The requested size is too small even for the module header information.
48 The kernel could not allocate a contiguous block of memory large
49 enough for the module.
53 is not supported in this version of the kernel
54 (e.g., the kernel is version 2.6 or later).
57 The caller was not privileged
62 This system call is present on Linux only up until kernel 2.4;
63 it was removed in Linux 2.6.
64 .\" Removed in Linux 2.5.48
71 system call is not supported by glibc.
72 No declaration is provided in glibc headers, but,
73 through a quirk of history, glibc does export an ABI for this system call.
74 Therefore, in order to employ this system call,
75 it is sufficient to manually declare the interface in your code;
76 alternatively, you can invoke the system call using
79 .BR delete_module (2),