Structs



cdbParams

struct  cdbParams  {
  UInt32  cdbLength;
  UInt8  cdb[16];
  UInt32  senseLength;
  UInt32  actualSenseLength;
  IOMemoryDescriptor  *  senseBuffer;
  UInt32  timeoutSeconds;
  UInt32  dataLength;
  UInt32  actualDataLength;
  IOMemoryDescriptor  *  dataBuffer;
  UInt8  status;
};

Data provided by a client to an executeCDB operation.

Fields

NameDescription
cdbLengthThe length of the command bytes (cdb), in bytes.
cdbThe actual command bytes to be sent to the device. These are not checked by the driver.
senseLengthThe requested maximum sense length, in bytes.
actualSenseLengthThe actual number of sense bytes transferred. If the driver does not support autosense, this field will always return zero.
senseBufferThe buffer for the sense data. This buffer must have already been prepared for IO by the caller. The buffer must contain the data direction.
timeoutSecondsThe timeout for the command, in seconds.
dataLengthThe requested number of data bytes to transfer with the command, or zero if no data is to be transferred.
actualDataLengthThe actual number of data bytes transferred.
dataBufferThe buffer for the data. This buffer must have already been prepared for IO by the caller. The buffer must contain the data direction.
statusThe status reported by the device at command completion. The contents of thisfield will depend on the type of transport (e.g. SCSI, ATAPI, etc). Some drivers may not support the return of status information and will zero this field.

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)