summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lsdev/lsdev.8
blob: 43e78d61fb273003ac681f529f79018f1c649d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.\" $Id: lsdev.8,v 1.2 1994/10/23 21:33:55 wollman Exp $
.\" Garrett A. Wollman, October 1994
.\" This file is in the public domain.
.\"
.Dd October 17, 1994
.Dt LSDEV 8
.Os
.Sh NAME
.Nm lsdev
.Nd list configured devices
.Sh SYNOPSIS
.Nm lsdev
.Op Fl t Ar type
.Op Fl cv
.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
.Fl c
flag requests output in a format similar to the input of
.Xr config 8 .
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