Next | Prev | Up | Top | Contents | Index

dslib Routines Description

Table 5-1 and the following section describe the dslib routines. You can use these routines to set the values of a dsreq type structure and make a request of the SCSI bus that uses the information contained in it.

dslib Routines
RoutineDescription
dsopenAllocate a dsreq type structure and open a device.
dscloseFree the dsreq structure for the SCSI device and close the device.
doscsireqSend a command to the SCSI device or to make another request.
filldsreqSet members of a dsreq type structure.
fillg0cmdSet up the dsreq structure to send a group 0 SCSI command.
fillg1cmdSet up the dsreq structure to send a group 1 SCSI command.
inquiry12Issue an inquiry command and retrieve information from the device concerning such things as its type.
modeselect15Issue a group 0 mode select command to a SCSI device.
modesense1aSend a group 0 "mode sense" command to a SCSI device to retrieve the page information from the device.
readcapacity25Issue a read capacity command to a SCSI device.
readextended28Issue a read extended command to a SCSI device.
requestsense03Issue a request sense command and test or probe for the device.
senddiagnostic1dIssue a send diagnostic command and test whether the device or the SCSI bus is online or offline, or run a self-test on the device.
testunitready00Issue a test unit ready command to the SCSI device.
vtostrReturn a pointer to a string describing a table entry value.
write0aIssue a group 0 write command to the SCSI device.
writeextended2aIssue a write extended command to the SCSI device.

Note: Many of the following routines take the parameter vu. This parameter is not yet implemented. Consequently, its value must always be zero.


Next | Prev | Up | Top | Contents | Index