1modunload(1M)           System Administration Commands           modunload(1M)
2
3
4

NAME

6       modunload - unload a module
7

SYNOPSIS

9       modunload -i module_id [-e exec_file]
10
11

DESCRIPTION

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

OPTIONS

19       The following options are supported:
20
21       -e exec_file    Specify the name of a shell script or executable  image
22                       file  to be executed before the module is unloaded. The
23                       first argument passed is the module  id  (in  decimal).
24                       There are two additional arguments that are module spe‐
25                       cific. For loadable drivers, the second argument is the
26                       driver  major  number.  For  loadable system calls, the
27                       second argument is the system call number. For loadable
28                       exec classes, the second argument is the index into the
29                       execsw table.  For  loadable  filesystems,  the  second
30                       argument  is  the index into the vfssw table. For load‐
31                       able streams modules, the second argument is the  index
32                       into the fmodsw table. For loadable scheduling classes,
33                       the second argument is the index into the class  array.
34                       Minus  one  is  passed  for  an  argument that does not
35                       apply.
36
37
38       -i module_id    Specify the module to be unloaded.
39
40

ATTRIBUTES

42       See attributes(5) for descriptions of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
49       ├─────────────────────────────┼─────────────────────────────┤
50       │Availability                 │SUNWcsu                      │
51       └─────────────────────────────┴─────────────────────────────┘
52

SEE ALSO

54       modinfo(1M), modload(1M), update_drv(1M), attributes(5)
55

NOTES

57       The modunload command is often used on driver modules to force the sys‐
58       tem  to  reread  the  associated  driver configuration file. While this
59       works in the current Solaris release, it is not the  supported  way  to
60       reread  the  configuration file and is not guaranteed to work in future
61       releases. The supported way for rereading driver configuration file  is
62       through the update_drv(1M) command.
63
64
65
66SunOS 5.11                        19 Nov 2001                    modunload(1M)
Impressum