ioctl(D2I) ioctl(D2I)
NAME
ioctl - send Host Bus Adapter pass-through commands
SYNOPSIS
int prefixioctl(dev_t dev, int cmd, caddr_t arg, int mode,
cred_t *cred_p, int *rval_p);
Arguments
dev Device number.
cmd Type of pass-through command.
arg Data for pass-through command.
cred_p
Credential pointer of the calling process.
DESCRIPTION
This entry point is for Host Bus Adapter (HBA) drivers.
ioctl(D2I) is used for pass-through access with (HBAs). After
pass-through access has been established with the HBA device
through open(D2I), the HBA pass-through ioctl(D2I) routine is
used to send commands to the device.
Return Values
On success, ioctl returns 0. On failure, it returns the
appropriate error number corresponding to the failure. (See
errno.h.)
USAGE
At minimum, ioctl should understand the following command
types:
B_GETTYPE
Get the HBA driver type information.
HA_VER
Get the HBA driver version number.
SDI_BRESET
Reset the SCSI bus or the controller.
SDI_SEND
Send the SCSI command, supplied in arg, to the requested
device.
Copyright 1994 Novell, Inc. Page 1
ioctl(D2I) ioctl(D2I)
Level
Base only.
REFERENCES
close(D2I), ioctl(D2), open(D2I)
NOTICES
Applicability
sdi: 1, 2
Copyright 1994 Novell, Inc. Page 2