modunload man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

MODUNLOAD(1M)							 MODUNLOAD(1M)

NAME
       modunload - unload a module

SYNOPSIS
       modunload -i module_id [-e exec_file]

DESCRIPTION
       modunload  unloads  a loadable module from the running system. The mod‐
       ule_id is the ID of the module as shown by modinfo(1M). If ID is 0, all
       modules	that  were autoloaded which are unloadable, are unloaded. Mod‐
       ules loaded by modload(1M) are not affected.

OPTIONS
       The following options are supported:

       -e exec_file
		       Specify the name of a shell script or executable	 image
		       file  to be executed before the module is unloaded. The
		       first argument passed is the module  id	(in  decimal).
		       There are two additional arguments that are module spe‐
		       cific. For loadable drivers, the second argument is the
		       driver  major  number.  For  loadable system calls, the
		       second argument is the system call number. For loadable
		       exec classes, the second argument is the index into the
		       execsw table.  For  loadable  filesystems,  the	second
		       argument	 is  the index into the vfssw table. For load‐
		       able streams modules, the second argument is the	 index
		       into the fmodsw table. For loadable scheduling classes,
		       the second argument is the index into the class	array.
		       Minus  one  is  passed  for  an	argument that does not
		       apply.

       -i module_id
		       Specify the module to be unloaded.

SEE ALSO
       modinfo(1M), modload(1M), update_drv(1M), attributes(5)

NOTES
       The modunload command is often used on driver modules to force the sys‐
       tem  to	reread	the  associated	 driver configuration file. While this
       works in the current Solaris 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(1M) command.

				 Nov 19, 2001			 MODUNLOAD(1M)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net