create_module - Online Linux Manual PageSection : 2
Updated : 2022-12-04
Source : Linux man-pages 6.03

NAMEcreate_module − create a loadable module entry

SYNOPSIS#include <linux/module.h>[[deprecated]] caddr_t create_module(const char *name, size_t size);

DESCRIPTIONNote: This system call is present only before Linux 2.6. create_module() attempts to create a loadable module entry and reserve the kernel memory that will be needed to hold the module. This system call requires privilege.

RETURN VALUEOn success, returns the kernel address at which the module will reside. On error, −1 is returned and errno is set to indicate the error.

ERRORSEEXIST  A module by that name already exists. EFAULT  name is outside the program's accessible address space. EINVAL  The requested size is too small even for the module header information. ENOMEM  The kernel could not allocate a contiguous block of memory large enough for the module. ENOSYS  create_module() is not supported in this version of the kernel (e.g., Linux 2.6 or later). EPERM  The caller was not privileged (did not have the CAP_SYS_MODULE capability).

VERSIONSThis system call is present only up until Linux 2.4; it was removed in Linux 2.6.

STANDARDScreate_module() is Linux-specific.

NOTESThis obsolete system call is not supported by glibc. No declaration is provided in glibc headers, but, through a quirk of history, glibc versions before glibc 2.23 did export an ABI for this system call. Therefore, in order to employ this system call, it was sufficient to manually declare the interface in your code; alternatively, you could invoke the system call using syscall(2).

SEE ALSOdelete_module(2), init_module(2), query_module(2)
0
Johanes Gumabo
Data Size   :   7,010 byte
man-create_module.2Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 181,953
Visitor ID   :     :  
Visitor IP   :   13.58.245.158   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.