MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


System Administration Commands                      modunload(1M)



NAME
     modunload - unload a module

SYNOPSIS
     modunload -i moduleid [-e execfile]


DESCRIPTION
     modunload unloads a loadable module from the running system.
     The   moduleid  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.  Modules  loaded  by
     modload(1M) are not affected.

OPTIONS
     The following options are supported:

     -e execfile    Specify the name of a shell script  or  exe-
                     cutable 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
                     specific.  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 filesys-
                     tems,  the second argument is the index into
                     the  vfssw  table.  For   loadable   streams
                     modules,  the  second  argument is the index
                     into the fmodsw table. For loadable schedul-
                     ing  classes,  the  second  argument  is the
                     index into the class  array.  Minus  one  is
                     passed for an argument that does not apply.


     -i moduleid    Specify the module to be unloaded.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:












SunOS 5.11          Last change: 19 Nov 2001                    1






System Administration Commands                      modunload(1M)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Availability                 SUNWcsu                     
    


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

NOTES
     The modunload command is often used  on  driver  modules  to
     force  the system to reread the associated driver configura-
     tion 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  sup-
     ported  way  for  rereading  driver  configuration  file  is
     through the updatedrv(1M) command.





































SunOS 5.11          Last change: 19 Nov 2001                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™