User Guide

Ampex 1308904-X4 Preliminary Draft 4-7
ACL Application Programmer’s Guide aclGeneric
4.3 aclGeneric
NAME
aclGeneric() - generic SCSI command interface.
SYNOPSIS
#include <acl.h>
int aclGeneric(char *device, ptBlk_t *cmd, int cmdLen, int flags, char *buf, int size);
DESCRIPTION
aclGeneric() issues a SCSI command to a supported SCSI target. It is typically used when the
libacl API does not provide an equivalent function for the desired SCSI command. If desired,
you can also use aclGeneric() to issue SCSI commands to a non-Ampex SCSI device.
aclGeneric() is available to all users.
PARAMETERS
*device Pointer or string specifying the device special file associated with the
ACL.
*cmd Pointer to a structure of type
ptBlk_t.
cmdLen Integer value (6, 10, or 12) specifying the length in bytes of the SCSI
command descriptor block (CDB).
Writer_Note: Get new flags description from header file. (Vaughn is currently updating the file).
flags ?_Better Description Needed_? Contains information about the
direction of SCSI I/O.
*buf Pointer to a data buffer large enough to store the SCSI data to be sent or
received; null if no data.
Writer_Note: What is the significance of “(to the interface)”.
size Integer specifying the size of the buffer (to the interface).
USAGE
Before calling aclGeneric(), initialize the *cmd structure with the SCSI CDB data.