'\"macro stdmacro
.if n .pH g1a.getmajor @(#)getmajor	40.6 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} getmajor 1M "Essential Utilities" "\&"
.if \nX=1 .ds x} getmajor 1M "Essential Utilities"
.if \nX=2 .ds x} getmajor 1M "" "\&"
.if \nX=3 .ds x} getmajor "" "" "\&"
.TH \*(x}
.SH NAME
\f4getmajor\f1 \- print major number(s) of hardware devices
.SH SYNOPSIS
\f4/usr/sbin/getmajor\f1
\f2name\f1
|
\f2ID_code\f1
.SH DESCRIPTION
The
\f4getmajor\fP
command
prints all major numbers
for the requested device
found in the system Equipped Device Table (\s-1EDT\s0).
Slot and major numbers are the same for boards that are installed
directly into the backplane slots of the computer. 
\f2ID_code\f1 is a
number between 0x0 and 0xffff that a device uses to identify itself.
.PP
Devices that are on extended buses (e.g., Small Computer
System Interface (\s-1SCSI\s0) target
controllers) do not
have board \s-1ID\s0 codes.
The proper way to use \f4getmajor\fP
with these devices is \f4/usr/sbin/getmajor\f1 \f2name\f1.
.DE
.SH DIAGNOSTICS
If successful, a zero is returned.
If
\f2name\f1 or \f2ID_code\f1
is not found, a blank line is printed and the return code is nonzero.
.SH SEE ALSO
\f4editttbl\fP(1M), \f4prtconf\fP(1M).
.Ee
