Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dtab(5) [bsd man page]

DTAB(5) 							File Formats Manual							   DTAB(5)

dtab - automatic system configuration device table (2BSD) DESCRIPTION
The dtab file contains a list of the devices that the autoconfig(8) program will attempt to attach to the system. Each line describes one device which may be present on the system; additional devices of the same type require additional lines. The line contains at least six fields separated by white space. Blank lines and comments can appear anywhere in the file except between fields; comments are delimited by `#' and new line. The fields are (in order): dev The device name, usually two characters unit Either a unit number or a `?' indicating automatic selection of unit numbers. addr The address of the device's first register, as a 16-bit octal number. vector The interrupt vector, in octal. BR The priority at which the device interrupts. handler(s) One or more routine names with which the interrupt vector is filled. EXAMPLE
# Device Configuration Table # Clock and console are pre-configured and should not be listed here # # Dev# Addr Vector Br Handler(s) # Comment lp ? 177514 200 4 lpio # lp-11 line printer ht 0 172440 224 5 htintr # tu 16 massbus tape xp ? 176700 254 5 xpio # xp driver dm ? 170500 310 4 dmin # dm11 dh modem control dh ? 160020 320 5 dhin dhou # dh11 terminal mux dz ? 160110 330 5 dzin dzdma # dz11 terminal mux FILES
/etc/dtab device table SEE ALSO
autoconfig(8) BUGS
/Etc/dtab is unique to the PDP-11 and 2BSD. 3rd Berkeley Distribution January 22, 1987 DTAB(5)

Check Out this Related Man Page

AUTOCONFIG(8)						      System Manager's Manual						     AUTOCONFIG(8)

autoconfig - configure the running system to the hardware SYNOPSIS
autoconfig [-i ifile] [-n nfile] [-k kfile] [-v] [-d] [-c] DESCRIPTION
Autoconfig is called by init(8) to configure the currently running system. Init checks the exit status of autoconfig to determine if the configuration was successful. Autoconfig reads the device table /etc/dtab for a list of devices which may be on the system. It first ver- ifies that the kernel has an attach routine for each device (and therefore has a device handler) and that the kernel has a probe routine. It then checks each of these devices to see if it is present, and if it is, attempts to make it interrupt (if possible) to verify that the interrupt vector is correct. The interrupt vector is checked to see that it has not previously been used. An interrupt through any of the device's consecutive vectors is sufficient. Devices which use programmable vectors (MSCP and TMSCP) are permitted to have a value of 0 in the dtab vector field. This special value tells autoconfig to call the kernel's get next available vector routine and assign that to the device. For programmable vector devices if the dtab vector field is non 0 then the value specified in the dtab file is used. In both cases the driver is called at its xxVec() rou- tine with the vector being assigned to the device. If the address and vector are correct, it then attaches the device by passing the address and unit number to the kernel's attach routine and setting up the interrupt vector according to the interrupt handlers and priority listed in the device table. If the unit number is given as a '?' in the device table, it will be assigned the next available unit number if the device exists. If the device is not present or the vector is incorrect, and if the unit number was specified (not a '?'), then the kernel is notified that that unit is not present, preventing accesses to a nonexistent device address. There are only a few flags which are mostly useful for debugging but for completeness, here they are. -i ifile Use ifile instead of /etc/dtab as the device table. -n nfile Use nfile instead of /unix for finding the namelist of the currently running kernel. -k kfile The file kfile should be used instead of /dev/kmem to alter and read kernel memory. -v Verbose output, indicates reason for rejecting any device in the device table. Normally only attached devices are reported. -c Report error messages for devices skipped because of problems with their interrupt vectors. -d Turn on debugging mode. Shows many gory details of autoconfig's internal processing. BUGS
Devices of the same type must be listed with ascending unit numbers or with wildcards. Disks that could be root devices must have their addresses and vectors initialized in the kernel; the kernel uses a root attach entry in the block device switch to allow disk drivers to do any probes necessary before autoconfiguration. Must be run only by init(8). There is a flag set in the kernel that autoconfig has already run, running autoconfig a second time results in the error: "namelist doesn't match running kernel." Autoconfig attempts to open /dev/kmem for write. If the kernel is in securelevel 1 or higher the open of /dev/kmem will fail. FILES
/etc/dtab device table /unix /dev/kmem SEE ALSO
ucall(2), nlist(3), dtab(5) 3rd Berkeley Distribution December 30, 1992 AUTOCONFIG(8)
Man Page