Amiga Unix — 68040 · 68060

Manual pages › System administration commands (1M)

getmajor(1M)

print major number(s) of hardware devices

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

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 computer. 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).