filename.devs

Definition/Access: General, Releases: AP 6.1

Device file.

Description

defines the various devices in the system.
This file, located on the 'dm' account, has two data levels:

init This data level contains static information, which can be changed by the System Administrator, to set up the various entities in the system. For example, the initial baud rate of the serial ports, whether 'tandem' is allowed on the Pick ports or not, can be specified in this data level. It contains an item for all possible elements in the system, even if they are not physically present.

devs This data level contains dynamic information. The TCL command ':reset-async', normally run at boot time in the 'system-coldstart' macro, clears the file 'devs,devs', and copies the information from 'devs,init' into 'devs,devs'. Only the physically present system elements are represented in this file. The fact or writing an item into this data level actually programs the device. Items in this file may be added or removed by the 'dev-make' or 'dev-remov' TCL commands (AP/Unix only).


The item-id's in this file are the entity ids, which are composed of a one letter code ('p' for Pick ports, 's' for serial device, 'e' for Ethernet, etc...), followed by the entity number in decimal (the Pick port number, the serial device number, the TCP/IP connection id, etc...). See the section 'entity' in this document for more information.
Both data levels can be examined using Access or the Update processor.
The structure of an item in these files is described in the include 'dm,bp,includes qcb.inc'.

Example

u devs,init s12
Examine the characteristics of serial device 12. This brings up the Update
processor, and allows changing the serial device initial setting. Filing this
item does not actually change the setting. It will be changed the next time the
command ':reset-async' is run (normally at boot time) or by running
the command ':reset-async s12'

u devs p0
Examine the characteristics of Pick port 0. The only element than can be
changed is the 'tandem' flag, which controls whether tandem is allow
or not on port 0, and whether the target process should be notified about the
tandem on/off. See 'tandem' in this document.

sort devs = 's]'
Show the current status of all serial ports.

See Also

Command Name Type Description
tcl.tandem Verb: Access Logically link two devices to the same process.
tcl.converse Verb: Access Connects current process to given device.
tcl.mirror Verb: Access Directs output from 'master' to one or more 'slave' terminals.
general.entity Definition
tcl.:reset-async Verb: Access Resets current or all ports.
tcl.system-coldstart Verb: Access Performs startup commands after booting Pick.
tcl.dev-make Verb: Access Create an entity
tcl.dev-remov Verb: Access Remove an entity from the system
tcl.:ent-list Verb: Access List system entities

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.