p The options are as follows: l -tag -width indent t Fl A Tells you whether or not modules can be autoloaded at the moment. This option .Em does take into consideration the sysctl .Li kern.module.autoload . t Fl a Tells you whether or not modules can be autoloaded at the moment. This option .Em does not take into consideration the sysctl .Li kern.module.autoload . t Fl e Tells you whether or not you may load a module at the moment. t Fl k Display the kernel address of the module's text segment (disabled by default). t Fl n Ar name Display the status of only the module with this name. Please note that .Fl n is optional. .El
p In addition to listing the currently loaded modules' name, the information reported by .Nm includes: l -tag -width Loadaddr t Li CLASS Module class, such as "vfs", "driver", "exec", "misc" or "secmodel". t Li SOURCE Where the module was loaded from. .Qq Dv builtin indicates that the module was built into the running kernel. .Qq Dv boot indicates that the module was loaded during system bootstrap. .Qq Dv filesys indicates that the module was loaded from the file system. t Li SIZE Size of the module's text section, in bytes. t Li FLAG The module flags: l -tag -width a -offset indent -compact t Dv a Module is auto-loaded. t Dv f Requires the .Xr modload 8 flag .Fl f (force) to be loaded. .El t Li REFS Number of references held on the module. Disabled builtin modules will show a count of -1 here. t Li ADDRESS The kernel address at which the module's text segment is loaded. Builtin modules will show 0 here. This field is only displayed if the .Fl k option is specified. t Li REQUIRES Additional modules that must be present. .El .Sh EXIT STATUS The .Nm utility exits with a status of 0 on success and with a nonzero status if an error occurs. .Sh SEE ALSO .Xr module 7 , .Xr sysctl 7 , .Xr modload 8 , .Xr modunload 8 .Sh HISTORY A .Nm utility appeared in .Nx 0.9 . The .Nm command was designed to be similar in functionality to the corresponding command in .Tn "SunOS 4.1.3" . .Nm was switched to the module framework for .Nx 5.0 . .Sh AUTHORS .An -nosplit The original .Nx implementation was written by .An Terrence R. Lambert Aq Mt terry (at] cs.weber.edu . The switch to the module framework was by .An Andrew Doran Aq Mt ad (at] NetBSD.org .