aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2000-07-01 07:37:50 +0000
committerPaul Saab <ps@FreeBSD.org>2000-07-01 07:37:50 +0000
commit2a1d44f62298243b39dff49b0adcd115d64ee3ea (patch)
tree1fa6950a1b1870f131018270a167c039188a0a18 /sbin
parent9d67f7c498b974065b915924404d5d495d2b3a4f (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/kldstat/kldstat.85
-rw-r--r--sbin/kldstat/kldstat.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/kldstat/kldstat.8 b/sbin/kldstat/kldstat.8
index f12d5039d8cb..80c52d734b6c 100644
--- a/sbin/kldstat/kldstat.8
+++ b/sbin/kldstat/kldstat.8
@@ -39,13 +39,12 @@
.Sh DESCRIPTION
The
.Nm
-utility displays the status of any files dynamically linked into the
-kernel.
+utility displays information about files dynamically linked into the kernel.
.Pp
The following options are available:
.Bl -tag -width indentXX
.It Fl v
-Be more verbose.
+Display information about each module in each file.
.It Fl i Ar id
Display the status of only the file with this ID.
.It Fl n Ar name
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c
index 58c5388e5312..cc3508fc0d60 100644
--- a/sbin/kldstat/kldstat.c
+++ b/sbin/kldstat/kldstat.c
@@ -53,7 +53,8 @@ printmod(int modid)
if (modstat(modid, &stat) < 0)
warn("can't stat module id %d", modid);
else
- printf("\t\t%2d %s\n", stat.id, stat.name);
+ printf("\t\t%2d %2d 0x%-8x %s\n",
+ stat.id, stat.refs, stat.version, stat.name);
}
static void printfile(int fileid, int verbose)
@@ -70,7 +71,7 @@ static void printfile(int fileid, int verbose)
if (verbose) {
printf("\tContains modules:\n");
- printf("\t\tId Name\n");
+ printf("\t\tId Refs Version%*c Name\n", POINTER_WIDTH - 7, ' ');
for (modid = kldfirstmod(fileid); modid > 0;
modid = modfnext(modid))
printmod(modid);