VxWorks Reference Manual : Libraries
scsiDirectLib - SCSI library for direct access devices (SCSI-2)
scsiStartStopUnit( ) - issue a START_STOP_UNIT command to a SCSI device
scsiReserve( ) - issue a RESERVE command to a SCSI device
scsiRelease( ) - issue a RELEASE command to a SCSI device
This library contains commands common to all direct-access SCSI devices. These routines are separated from scsi2Lib in order to create an additional layer for better support of all SCSI direct-access devices.
Commands in this library include:
Command Op Code FORMAT UNIT (0x04) READ (6) (0x08) READ (10) (0x28) READ CAPACITY (0x25) RELEASE (0x17) RESERVE (0x16) MODE SELECT (6) (0x15) MODE SELECT (10) (0x55) MODE SENSE (6) (0x1a) MODE SENSE (10) (0x5a) START STOP UNIT (0x1b) WRITE (6) (0x0a) WRITE (10) (0x2a)
scsiLib.h, scsi2Lib.h
scsiDirectLib, dosFsLib, rt11FsLib, rawFsLib, scsi2Lib, VxWorks Programmer's Guide: I/O System, Local File Systems
scsiStartStopUnit( ) - issue a START_STOP_UNIT command to a SCSI device
STATUS scsiStartStopUnit ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */ BOOL start /* TRUE == start, FALSE == stop */ )
This routine issues a START_STOP_UNIT command to a specified SCSI device.
OK, or ERROR if the command fails.
scsiReserve( ) - issue a RESERVE command to a SCSI device
STATUS scsiReserve ( SCSI_PHYS_DEV * pScsiPhysDev /* ptr to SCSI physical device */ )
This routine issues a RESERVE command to a specified SCSI device.
OK, or ERROR if the command fails.
scsiRelease( ) - issue a RELEASE command to a SCSI device
STATUS scsiRelease ( SCSI_PHYS_DEV * pScsiPhysDev /* ptr to SCSI physical device */ )
This routine issues a RELEASE command to a specified SCSI device.
OK, or ERROR if the command fails.