getmajor(1M) MISC. REFERENCE MANUAL PAGES getmajor(1M)
NAME
getmajor - print major number(s) of hardware devices
SYNOPSIS
/usr/sbin/getmajor name | ID_code
DESCRIPTION
The getmajor command prints all major numbers for the
requested device found in the system Equipped Device Table
(EDT). Slot and major numbers are the same for boards that
are installed directly into the backplane slots of the com-
puter. ID_code is a number between 0x0 and 0xffff that a
device uses to identify itself.
Devices that are on extended buses (e.g., Small Computer
System Interface (SCSI) target controllers) do not have
board ID codes. The proper way to use getmajor with these
devices is /usr/sbin/getmajor name.
DIAGNOSTICS
If successful, a zero is returned. If name or ID_code is
not found, a blank line is printed and the return code is
nonzero.
SEE ALSO
editttbl(1M), prtconf(1M).
Last change: Essential Utilities 1