summaryrefslogtreecommitdiffstats
path: root/sbin/kldload/kldload.8
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2009-06-04 23:43:08 +0000
committerbenno <benno@FreeBSD.org>2009-06-04 23:43:08 +0000
commit28587fcf3e0073570f917daefd7694959312588e (patch)
tree7d291573a05841213b9ee67e4747dace0876b2be /sbin/kldload/kldload.8
parentf858e8ac93d114435dbf49aa7a97705ae340af06 (diff)
downloadFreeBSD-src-28587fcf3e0073570f917daefd7694959312588e.zip
FreeBSD-src-28587fcf3e0073570f917daefd7694959312588e.tar.gz
Perform some checking on the requested list of modules to warn people if they
try to load modules by filename out of the current directory where the module in question may be further up the module path or not in the module path at all. Also add some text to the man page to help explain what's going on. Sponsored by: Redacted Consulting
Diffstat (limited to 'sbin/kldload/kldload.8')
-rw-r--r--sbin/kldload/kldload.832
1 files changed, 32 insertions, 0 deletions
diff --git a/sbin/kldload/kldload.8 b/sbin/kldload/kldload.8
index 474404f..e1f6757 100644
--- a/sbin/kldload/kldload.8
+++ b/sbin/kldload/kldload.8
@@ -50,10 +50,22 @@ using
.Nm .
It does not hurt to specify it though.
.Pp
+If a bare filename is requested it will only be loaded if it is found within
+the module path as defined by the sysctl
+.Va kern.module_path .
+To load a module from the current directory it must be specified as a full or
+relative path.
+The
+.Nm
+utility will warn if a module is requested as a bare filename and is present
+in the current directory.
+.Pp
The following option is available:
.Bl -tag -width indent
.It Fl v
Be more verbose.
+.It Fl q
+Silence any extraneous warnings.
.El
.Sh FILES
.Bl -tag -width /boot/kernel -compact
@@ -64,6 +76,26 @@ Modules must have an extension of
.El
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+To load by module name:
+.Bd -literal -offset indent
+\*[Gt] kldload foo
+.Ed
+.Pp
+To load by file name within the module path:
+.Bd -literal -offset indent
+\*[Gt] kldload foo.ko
+.Ed
+.Pp
+To load by relative path:
+.Bd -literal -offset indent
+\*[Gt] kldload ./foo.ko
+.Ed
+.Pp
+To load by full path:
+.Bd -literal -offset indent
+\*[Gt] kldload /boot/kernel/foo.ko
+.Ed
.Sh AUTOMATICALLY LOADING MODULES
Some modules (pf, ipfw, ipf, etc.) may be automatically loaded at boot
time when the corresponding
OpenPOWER on IntegriCloud