Copyright (C) 2000-2012 |
Manpages INIT_MODULESection: Linux Module Support (2)Updated: 26 Dec 1996 Index Return to Main Contents NAMEinit_module - initialize a loadable module entrySYNOPSIS#include <linux/module.h> int init_module(const char *name, struct module *image); DESCRIPTIONinit_module loads the relocated module image into kernel space and runs the module's init function.The module image begins with a module structure and is followed by code and data as appropriate. The module structure is defined as follows:
All of the pointer fields, with the exception of next and refs, are expected to point within the module body and be initialized as appropriate for kernel space, i.e. relocated with the rest of the module. This system call is only open to the superuser. RETURN VALUEOn success, zero is returned. On error, -1 is returned and errno is set appropriately.ERRORS
SEE ALSOcreate_module(2), delete_module(2), query_module(2).
IndexThis document was created by man2html, using the manual pages. Time: 03:41:05 GMT, April 26, 2024 |