tsmpx Multiprotocol (PCI MPQP) Device Handler Entry Point

Purpose

Allocates and deallocates a channel for the IBM® ARTIC960Hx PCI (PCI MPQP) device handler.

Syntax

int tsmpx (devno, chanp, channame)
dev_t devno;
int *chanp;
char *channame;
int openflag;

Description

The tsmpx entry point allocates and deallocates a channel. The tsmpx entry point is supported similar to the common ddmpx entry point.

Parameters

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:
Equal to NULL
Deallocates the channel.
A pointer to a NULL string
Allows a normal open sequence of the device on the channel ID generated by the tsmpx entry point.

Return 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.