beautypg.com

Purpose, Description – Compex Systems Advanced SerialRAID Adapters SA33-3285-02 User Manual

Page 325

background image

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.

Chapter 13. Using the Programming Interface

305