summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lsdev/lsdev.8
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-10-17 23:26:10 +0000
committerwollman <wollman@FreeBSD.org>1994-10-17 23:26:10 +0000
commit8f8aac0e4e1336af9c997acc4598309c12e5532d (patch)
treef35adf0851636ef6631861b56e1ea142284c0ca6 /usr.sbin/lsdev/lsdev.8
downloadFreeBSD-src-8f8aac0e4e1336af9c997acc4598309c12e5532d.zip
FreeBSD-src-8f8aac0e4e1336af9c997acc4598309c12e5532d.tar.gz
lsdev(8), a user-land utility to query the device configuration database
managed by kern_devconf.c. A useful feature is that the following script generates almost well-formed config-file lines for all ISA devices in the system: lsdev -t isa | awk '{ print "device $0" }' lsdev -t disk | awk '{ print "disk $0" }'
Diffstat (limited to 'usr.sbin/lsdev/lsdev.8')
-rw-r--r--usr.sbin/lsdev/lsdev.861
1 files changed, 61 insertions, 0 deletions
diff --git a/usr.sbin/lsdev/lsdev.8 b/usr.sbin/lsdev/lsdev.8
new file mode 100644
index 0000000..bafbddf
--- /dev/null
+++ b/usr.sbin/lsdev/lsdev.8
@@ -0,0 +1,61 @@
+.\" $Id: lsvfs.1,v 1.1 1994/09/22 01:25:56 wollman Exp $
+.\" Garrett A. Wollman, October 1994
+.\" This file is in the public domain.
+.\"
+.Dd October 17, 1994
+.Dt LSDEV 1
+.Os
+.Sh NAME
+.Nm lsdev
+.Nd list configured devices
+.Sh SYNOPSIS
+.Nm lsdev
+.Op Fl t Ar type
+.Op Fl v
+.Op Ar class Ns Op unit
+.Sh DESCRIPTION
+The
+.Nm lsdev
+utility lists devices configured in the current system, in a
+machine-dependent manner. The
+.Fl t
+flag can be used to restrict the listing to a specific
+.Ar type
+of device;
+the types available vary from machine to machine. (Specifying an
+invalid type will cause a list of valid types to be printed.) The
+.Fl v
+flag requests more verbose output. The optional
+.Ar class
+argument requests information on a particular class of devices (e.g.,
+.Dq Li wdc
+or
+.No Do Li ie Dc Ns ).
+If no
+.Ar unit
+is specified, all units of the specified class will be listed.
+.Pp
+The
+.Xr sysctl 3
+mechanism is used to retrieve information from the kernel about which
+devices are configured.
+.Sh FILES
+.Bl -tag -width <machine/devconf.h>
+.It Aq sys/devconf.h
+defines the structure examined by
+.Nm
+.It Aq machine/devconf.h
+defines the machine-dependent parts of the structure, including the
+supported device type names
+.El
+.Sh SEE ALSO
+.\" .Xr chdev 8
+.Xr sysctl 3
+.Sh BUGS
+Not all devices have the proper support implmented yet.
+.Sh HISTORY
+An
+.Nm
+comand appeared in
+.Tn FreeBSD
+2.0.
OpenPOWER on IntegriCloud