Deletes a loadable kernel module.
Arguments
eax |
129 |
ebx |
Pointer to a null-terminated string that specifies the name of a module. |
ecx |
Action to take upon module use. It may be one of the following values:
O_TRUNC |
If ebx is set to this and CONFIG_MODULE_FORCE_UNLOAD is turned on, deletion can take place. Otherwise, the function returns -EBUSY. |
O_NONBLOCK |
If the module is in use, CONFIG_MODULE_FORCE_UNLOAD is turned on, the module refcount is non-zero, and O_TRUNC is also defined for the flag, then deletion can take place. Otherwise, the function returns -EWOULDBLOCK. |
|
|
Return values
If the system call succeeds the return value is 0
If the system call fails the return value is one of the following errno values:
-EPERM |
The current user does not have administrator capabilities to modify the modules. |
-EFAULT |
An invalid user_name value was specified. |
-EINTR |
A signal interrupt occurred. |
-ENOENT |
An invalid module name was specified. |
-EWOULDBLOCK |
Other running modules are dependent on the specified module. |
-EBUSY |
The module is already being removed or cannot be removed. |
|
Remarks
n/a
Compatibility
n/a |