Inserting Modules

The init_module system call is the interface between userspace and kernel and is used to load new modules.

kernel/module.c asmlinkage long sys_init_module(void _user *umod, unsigned long len, const char _user *uargs)

The call requires three parameters — a pointer to the area in user address space in which the binary code of the module is located (umod), its length (len), and a pointer to a string that specifies the module parameters. From the userspace viewpoint, inserting a module is very simple because all that need be done is to read in the module binary code and to issue a system call.

Continue reading here: System Call Implementation

Was this article helpful?

0 0