Index Index for
Section 9
Index Alphabetical
listing for D
Bottom of page Bottom of
page

device(9s)

NAME

device - General: Contains information that identifies the device. One device data structure exists for each device connected to the controller.

SYNOPSIS

_________________________________ Member Name Data Type _________________________________ nxt_dev struct device * ctlr_hd struct controller * dev_type char * dev_name char * logunit int unit int ctlr_name char * ctlr_num int alive int private void * [8] conn_priv void * [8] rsvd void * [8] _________________________________

MEMBERS

nxt_dev Specifies a pointer to the next device at this level. ctlr_hd Specifies a pointer to the controller structure to which this device is connected. dev_type Specifies the device type (for example, disk or tape). dev_name This member is set to the device name type, which is a string of up to 8 characters. For example, Compaq defines the strings rz and tz to represent disk and tape devices, respectively. logunit Specifies the device logical unit number. unit Specifies the device physical unit number. ctlr_name Specifies the name of the controller to which this device is connected. ctlr_num Specifies the number of the controller to which this device is connected. alive Specifies a flag word to indicate the current status of the device. private Specifies private storage for use by this device or device class. conn_priv Specifies private storage for use by the controller to which this device is connected. rsvd This member is reserved for future expansion of the data structure.

DESCRIPTION

The device data structure represents an instance of a device entity. A device is an entity that connects to and is controlled by a controller. A device does not connect directly to a bus. The device and the driver determine the contents of this structure. That is, the driver can store any information that it needs for accessing the device.

FILES

<io/common/devdriver.h>

SEE ALSO

Data Structures: bus(9s), controller(9s), driver(9s)

Index Index for
Section 9
Index Alphabetical
listing for D
Top of page Top of
page