lsdev(1M)lsdev(1M)NAMElsdev - list device drivers in the system
SYNOPSIS
driver | class] block_major] char_major] major] [major ...]
DESCRIPTION
The command lists, one pair per line, the major device numbers and
driver names of device drivers configured into the system and available
for invocation via special files. A in either the block or character
column means that a major number does not exist for that type.
If no arguments are specified, lists all drivers configured into the
system.
If the option is specified, will not print a heading. This option may
be useful when the output of will be used by another program.
The and options are used to select specific device drivers for output.
If more than one option is specified, all drivers that match the crite‐
ria specified by those options will be listed. These search options
are divided into two types: name search keys (the and options) and
major number search keys (the and options). If both types of options
are present, only entries that match both types are printed. The same
type of option may appear more than once on the command line with each
occurrence providing an ORing effect of that search type. The and
options may not be specified at the same time.
The ability to process major arguments is provided for compatibility
and functions like the option.
Options
List device drivers that match
class.
List device drivers with the name
driver.
List device drivers with a block major number of
block_major.
List device drivers with a character major number of
char_major.
List device drivers with either a character
major number or block major equal to major.
DIAGNOSTICS
The and options may not be specified at the same time.
A major number is malformed or out of range.
EXAMPLES
To output entries for all drivers in the class:
To output entries that are in the class that have either a block or
character major number of
To get the character major number of into a shell environment variable:
WARNINGS
Some device drivers available from the system may be intended for use
by other drivers. Attempting to use them directly from a special file
may produce unexpected results.
A driver may be listed even when the hardware requiring the driver is
not present. Attempts to access a driver without the corresponding
hardware will fail.
only lists drivers that are configured into the currently executing
kernel. For a complete list of available drivers, please run (see
sam(1M).
DEPENDENCIES
Since relies on the device driver information provided in a routine,
may not list drivers installed by other means.
AUTHOR
was developed by HP.
SEE ALSOsam(1M).
Section 7 entries related to specific device drivers.
lsdev(1M)