diff options
Diffstat (limited to 'man2/init_module.2')
| -rw-r--r-- | man2/init_module.2 | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/man2/init_module.2 b/man2/init_module.2 index 0e00c04a5a..a0f175eb3c 100644 --- a/man2/init_module.2 +++ b/man2/init_module.2 @@ -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 suported 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 |
