Allocates and deallocates a channel for the IBM® ARTIC960Hx PCI (PCI MPQP) device handler.
int tsmpx (devno, chanp, channame)
dev_t devno;
int *chanp;
char *channame;
int openflag;
The tsmpx entry point allocates and deallocates a channel. The tsmpx entry point is supported similar to the common ddmpx entry point.
Item | Description |
---|---|
devno | Specifies the major and minor device numbers. |
chanp | Identifies the channel ID passed as a reference parameter. Unless specified as null, the channame parameter is set to the allocated channel ID. If this parameter is null it is set as the ID of the channel to be deallocated. |
channame | Points to the remaining path name describing the channel
to be allocated. There are four possible values:
|
The common return codes for the tsmpx entry point are the following:
Item | Description |
---|---|
EINVAL | Indicates an invalid parameter. |
ENXIO | Indicates the device was open and the Diagnostic mode open request was denied. |
EBUSY | Indicates the device was open in Diagnostic mode and the open request was denied. |