[  Previous  |
Next  |
Contents  |
Home  |
Search  ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 2
IOCINFO (Device Information) tmssa Device Driver ioctl Operation
Purpose
To return information about the device in a structure that is defined in
the /usr/include/sys/devinfo.h file.
Description
This operation allows you to supply a pointer to the address of an area of
type struct devinfo in the arg parameter to the
IOCINFO operation. This structure is defined in the
/usr/include/sys/devinfo.h file. The SCSI target-mode union is used
for this as follows:
Initiator-Device
- buf_size
 
- Size of transmit buffer.
 
- num_bufs
 
- Number of transmit buffers
 
- max_transfer
 
- Unused. Set to zero.
 
- adap_devno
 
- Major or Minor devno of SSA adapter to be used for the next transmit
operation.
 
Use TM_GetDevinfoNodeNum( ) to read the node number to which the
data is sent.
Target-Device
- buf_size
 
- Size of receive buffer.
 
- num_bufs
 
- Number of receive buffers
 
- max_transfer
 
- Unused. Set to zero.
 
- adap_devno
 
- Major or Minor devno of SSA adapter initially used by the paired
initiator-mode device.
 
Use TM_GetDevinfoNodeNum( ) to read the node number from which
the data is received.
The remainder of the structure is filled as follows:
- devtype
 
- DD_TMSCSI.
 
- flags
 
- Set to zero.
 
- devsubtype
 
- DS_TM.
 
[  Previous  |
Next  |
Contents  |
Home  |
Search  ]