tcl.dev-make

Verb: Access/TCL, Releases: AP 6.1 and AP/Unix

Create an entity

Syntax

dev-make -t type {-n number} {-a arg{,arg} {-a arg{,arg} ... }}

Description

adds an entity to the system.
This command is normally used to add devices to the system. The most common usage is to create a serial device to be used with the Pick/BASIC GET and SEND statements, even if there is no Pick process connected to the device.

type Entity type: 'pib', 'serial', 'tcp', 'udp', 'telnet', 'queue'.

number Entity number. If not specified, the system allocates a number.

arg Optional arguments. There may be more than one '-a' option, or several arguments can be specified within one '-a' clause, separated by commas. The arguments depend on the type (see below).

Arguments:
serial: Unix device name, between quotes.

When the entity is successfully created, an entry is added to the 'devs' file, but NOT to the 'devs,init' file. See the description of the file 'devs' for more details.

Example

dev-make -t serial -n 100 -a '/dev/tty32'
Create the serial device 's100' associated to the Unix device
'/dev/tty32'. The device is reprogrammed 'Pick way', i.e.,
in raw mode, no echo. The hardware characteristics (baud rate, etc...) are
unchanged. When the device is successfully created, the newly created device
can be attached and used with Pick/BASIC SEND and GET statements. The hardware
characteristics can be changed with the Pick 'set-port' command,
using the full entity ID 's100', only once the device has been
attached, because the device is not actually opened when the Pick entity is
created, but only at attach time.

See Also

Command Name Type Description
general.entity Definition
filename.devs Definition Device file.
tcl.dev-remov Verb: Access Remove an entity from the system

User Comments

What do you think?

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

Login to leave your comments.