chk.devlink(1M) DG/UX R4.11MU05 chk.devlink(1M)
NAME
chk.devlink - check device link table and create links
SYNOPSIS
/usr/sbin/init.d/chk.devlink [-q] [-v] [ -f table-file ]
DESCRIPTION
The chk.devlink command is run early in the process of entering any
init run level other than S. It uses its associated table-file
database to perform two tasks: adding new entries for devices that
aren't already listed; and creating device node symbolic links as
specified by the file's entries. These additional links have shorter
and more convenient pathnames than the standard device nodes that are
created by device drivers at device configuration time.
Options are:
-q Use quiet mode. A single dot (.) is displayed for each device
node which is linked. This mode is enabled by default
-v Use verbose mode. The full path of each short and long device
node pathname is displayed as each device link is created.
-f table-file
Use table-file as the system device link table. The default
value of table-file is /etc/devlinktab.
Before creating any links, chk.devlink first searches several
standard /dev subdirectories for device nodes which do not yet appear
in table-file. Each such device is automatically added to the file
so that a link can be created to it in the next phase of the command.
The classes of devices that receive this treatment are described
below.
Physical Disks
The /dev/pdsk directory is searched for physical disk device nodes.
An entry of the form /dev/pdsk/disk-number is added to the device
link table, where disk-number is a small decimal integer that is not
already in use in that directory. A corresponding entry of the form
/dev/rpdsk/disk-number is also created for the device node's
counterpart in that directory.
Tape Drives
The /dev/rmt directory is searched for tape drive device nodes with
filenames ending in the ")" character. An entry of the form
/dev/rmt/tape-number is added to the device link table, where tape-
number is a small decimal integer that is not already in use in that
directory. That table entry will also ensure the creation of links
for all the suffixed variants of the base device node. For example,
if /dev/rmt/st(insc(0),4,0) will be served by a link named
/dev/rmt/0, then /dev/rmt/st(insc(0),4,0)n will be served by a link
named /dev/rmt/0n, and likewise for any other related device nodes.
Media Changers
The /dev/mc directory is searched for media changer device nodes. An
entry of the form /dev/mc/mc-number is added to the device link
table, where mc-number is a small decimal integer that is not already
in use in that directory.
Network Interfaces
The /dev/net directory is searched for network interface device
nodes. An entry of the form /dev/net/interface-name is added to the
device link table, and an additional entry of the form
/dev/interface-name is added for backwards compatibility with
previous releases of the DG/UX System. The interface-name is formed
by concatentating two fields: mnemonic and interface-number. The
mnemonic field is just the first part of the filename of the device
node in question. For example, the mnemonic for
/dev/net/hken(vme(0),0) is hken. The interface-number is a small
decimal integer that is not already in use for that mnemonic in that
directory.
Terminal Lines
The /dev/async/line directory is searched for asynchronous terminal
line device nodes. An entry of the form /dev/ttytty-number is added
to the device link table, where tty-number is a small decimal integer
of at least two digits that is not already in use in that directory.
Synchronous Communication Controllers
The /dev/sync/ctrl directory is searched for intelligent synchronous
communcation controller device nodes. An entry of the form
/dev/controller-name is added to the device link table for backwards
compatibility with previous releases of the DG/UX System. The
controller-name is formed by concatentating two fields: mnemonic and
controller-number. The mnemonic field is just the first part of the
filename of the device node in question. For example, the mnemonic
for /dev/sync/ctrl/vsxb(vme(0),0) is vsxb. The controller-number is
a two-digit decimal integer that is not already in use for that
mnemonic in that directory.
Synchronous Communication Streams Interfaces
The /dev/sync/stat directory is searched for synchronous communcation
controller Streams interface device nodes. An entry of the form
/dev/stat-name is added to the device link table for backwards
compatibility with previous releases of the DG/UX System. The stat-
name is formed by concatentating three fields: mnemonic, the letter
s, and controller-number. The mnemonic field is just the first part
of the filename of the device node in question. For example, the
mnemonic for /dev/sync/stat/vsxb(vme(0),0) is vsxb. The controller-
number is a two-digit decimal integer that is not already in use for
that mnemonic in that directory.
Synchronous Communication Lines
The /dev/sync/line directory is searched for synchronous communcation
line device nodes. An entry of the form /dev/line-name is added to
the device link table for backwards compatibility with previous
releases of the DG/UX System. The line-name is formed by
concatentating three fields: mnemonic, controller-number, and line-
number. The mnemonic field is just the first part of the filename of
the device node in question. For example, the mnemonic for
/dev/sync/line/vsxb(vme(0),0,1) is vsxb. The controller-number is
two-digit decimal integer that is not already in use for that
mnemonic in that directory. The line-number is a one-digit decimal
integer identifying the particular communication line on the
controller.
FILES
/etc/devlinktab Default device link table
SEE ALSO
devlinktab(4M), init(1M).
Licensed material--property of copyright holder(s)