OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / init_module.2
index 52f093e..be2a290 100644 (file)
@@ -24,7 +24,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH INIT_MODULE 2 2013-01-07 "Linux" "Linux Programmer's Manual"
+.TH INIT_MODULE 2 2014-05-10 "Linux" "Linux Programmer's Manual"
 .SH NAME
 init_module, finit_module \- load a kernel module
 .SH SYNOPSIS
@@ -37,7 +37,11 @@ init_module, finit_module \- load a kernel module
 .fi
 
 .IR Note :
-There are no glibc wrappers for these system calls; see NOTES.
+glibc provides no header file declaration of
+.BR init_module ()
+and no wrapper function for
+.BR finit_module ();
+see NOTES.
 .SH DESCRIPTION
 .BR init_module ()
 loads an ELF image into kernel space,
@@ -258,7 +262,19 @@ and
 .BR finit_module ()
 are Linux-specific.
 .SH NOTES
-Glibc does not provide a wrapper for these system calls; call them using
+The
+.BR init_module ()
+system call is not supported by glibc.
+No declaration is provided in glibc headers, but,
+through a quirk of history, glibc does export an ABI for this system call.
+Therefore, in order to employ this system call,
+it is sufficient to manually declare the interface in your code;
+alternatively, you can invoke the system call using
+.BR syscall (2).
+
+Glibc does not provide a wrapper for
+.BR finit_module ();
+call it using
 .BR syscall (2).
 
 Information about currently loaded modules can be found in
@@ -341,10 +357,11 @@ the rest of the module.
 .BR lsmod (8),
 .BR modprobe (8)
 .SH COLOPHON
-This page is part of release 3.64 of the Linux
+This page is part of release 3.79 of the Linux
 .I man-pages
 project.
 A description of the project,
-and information about reporting bugs,
+information about reporting bugs,
+and the latest version of this page,
 can be found at
 \%http://www.kernel.org/doc/man\-pages/.