X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=original%2Fman2%2Finit_module.2;h=be2a29067f0960c59984ebb8c70c88de44ef00d9;hp=0e00c04a5afbfb31b6b22bf03c2d08c94be4e49a;hb=4ea6bb24817f6f049d6bbc90ecd77a869876f9b0;hpb=71bb2920a65c5c30552c13bc5bf95fa86af82a56 diff --git a/original/man2/init_module.2 b/original/man2/init_module.2 index 0e00c04a..be2a2906 100644 --- a/original/man2/init_module.2 +++ b/original/man2/init_module.2 @@ -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 @@ -340,3 +356,12 @@ the rest of the module. .BR query_module (2), .BR lsmod (8), .BR modprobe (8) +.SH COLOPHON +This page is part of release 3.79 of the Linux +.I man-pages +project. +A description of the project, +information about reporting bugs, +and the latest version of this page, +can be found at +\%http://www.kernel.org/doc/man\-pages/.