LSDEV(8)

NAME
lsdev - list configured devices

SYNOPSIS
lsdev [-t type] [-cv] [class[unit]]

DESCRIPTION
The lsdev utility lists devices configured in the current system, in a machine-dependent manner. The -t flag can be used to restrict the listing to a specific 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 -v flag requests more verbose output. The -c flag requests output in a format similar to the input of config(8). The optional class argument requests information on a particular class of devices (e.g., “wdc” or “ie”). If no unit is specified, all units of the specified class will be listed.

The sysctl(3) mechanism is used to retrieve information from the kernel about which devices are configured.

FILES

<sys/devconf.h>
    defines the structure examined by lsdev

<machine/devconf.h>
    defines the machine-dependent parts of the structure, including the supported device type names

SEE ALSO
sysctl(3)

BUGS
Not all devices have the proper support implemented yet.

HISTORY
An lsdev command appeared in FreeBSD 2.0.