load a file into the kernel
into the kernel using the kernel linker. Note that if multiple modules are
specified then an attempt will be made to load them all, even if some fail.
extension name is not mandatory
when loading a given module using
It does not hurt to specify it though.
If a bare filename is requested it will only be loaded if it is found within the
module path as defined by the sysctl
. To load a module from the
current directory it must be specified as a full or relative path. The
utility will warn if a module is
requested as a bare filename and is present in the current directory.
The following options are available:
- Do not try to load module if already loaded.
- Be more verbose.
- Silence any extraneous warnings.
The kernel security level settings may prevent a module from being loaded or
unloaded by giving Operation not permitted
- directory containing loadable modules. Modules must have an extension of
utility exits 0 on
success, and >0 if an error occurs.
To load by module name:
To load by file name within the module path:
To load by relative path:
To load by full path:
> kldload /boot/kernel/foo.ko
Some modules (pf, ipfw, ipf, etc.) may be automatically loaded at boot time when
statement is used. Modules may also be auto-loaded through their addition to
utility first appeared in
, replacing the