MODUNLOAD(8) | Maintenance Commands and Procedures | MODUNLOAD(8) |
modunload
— Unload
a module
modunload |
[-e exec_file]
module_name | -i
module_id |
The modunload
utility unloads a loadable
module from the running system. The module_name or
module_id are the name or ID, respectively, of the
module as shown by modinfo(8).
If 0 is specified for module_id, an unload of any autoloaded modules will be attempted. Modules loaded by modload(8) are not affected.
Either module_name or
-i
module_id must specified in
the arguments.
The following options are supported:
-e
exec_file-i
module_idThe following operands are supported:
Example 1 Unloading a module of ID 123
# modunload -i 123
Example 2 Unloading a module with name some_driver
# modunload some_driver
The modunload
command is often used on
driver modules to force the system to reread the associated driver
configuration file. While this works in the current illumos release, it is
not the supported way to reread the configuration file and is not guaranteed
to work in future releases. The supported way for rereading driver
configuration file is through the
update_drv(8) command.
February 10, 2025 | OmniOS |