📄 scsilib.html
字号:
invoked directly, usually from the shell.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b>, <b><a href="./scsiLib.html#scsiShow">scsiShow</a>( )</b><hr><a name="scsiBusReset"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiBusReset( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiBusReset( )</strong> - pulse the reset signal on the SCSI bus</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiBusReset ( SCSI_CTRL * pScsiCtrl /* ptr to SCSI controller info */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine calls a controller-specific routine to reset a specifiedcontroller's SCSI bus. If no controller is specified (<i>pScsiCtrl</i> is 0),the value in the global variable <b>pSysScsiCtrl</b> is used.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if there is no controller or controller-specificroutine.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiIoctl"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiIoctl( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiIoctl( )</strong> - perform a device-specific I/O control function</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiIoctl ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI block device info */ int function, /* function code */ int arg /* argument to pass called function */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine performs a specified <b>ioctl</b> function using a specified SCSI block device.<p></blockquote><h4>RETURNS</h4><blockquote><p>The status of the request, or ERROR if the request is unsupported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiFormatUnit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiFormatUnit( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiFormatUnit( )</strong> - issue a <b>FORMAT_UNIT</b> command to a SCSI device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiFormatUnit ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */ BOOL cmpDefectList, /* whether defect list is complete */ int defListFormat, /* defect list format */ int vendorUnique, /* vendor unique byte */ int interleave, /* interleave factor */ char * buffer, /* ptr to input data buffer */ int bufLength /* length of buffer in bytes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine issues a <b>FORMAT_UNIT</b> command to a specified SCSI device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the command fails.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiModeSelect"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiModeSelect( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiModeSelect( )</strong> - issue a <b>MODE_SELECT</b> command to a SCSI device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiModeSelect ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */ int pageFormat, /* value of the page format bit (0-1) */ int saveParams, /* value of the save parameters bit (0-1) */ char * buffer, /* ptr to output data buffer */ int bufLength /* length of buffer in bytes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine issues a <b>MODE_SELECT</b> command to a specified SCSI device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the command fails.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiModeSense"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiModeSense( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiModeSense( )</strong> - issue a <b>MODE_SENSE</b> command to a SCSI device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiModeSense ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */ int pageControl, /* value of the page control field (0-3) */ int pageCode, /* value of the page code field (0-0x3f) */ char * buffer, /* ptr to input data buffer */ int bufLength /* length of buffer in bytes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine issues a <b>MODE_SENSE</b> command to a specified SCSI device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the command fails.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiReadCapacity"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiReadCapacity( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiReadCapacity( )</strong> - issue a <b>READ_CAPACITY</b> command to a SCSI device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiReadCapacity ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */ int * pLastLBA, /* where to return last logical block */ /* address */ int * pBlkLength /* where to return block length */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine issues a <b>READ_CAPACITY</b> command to a specified SCSI device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the command fails.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiRdSecs"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiRdSecs( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiRdSecs( )</strong> - read sector(s) from a SCSI block device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiRdSecs ( SCSI_BLK_DEV * pScsiBlkDev, /* ptr to SCSI block device info */ int sector, /* sector number to be read */ int numSecs, /* total sectors to be read */ char * buffer /* ptr to input data buffer */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine reads the specified physical sector(s) from a specifiedphysical device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the sector(s) cannot be read.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiWrtSecs"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiWrtSecs( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiWrtSecs( )</strong> - write sector(s) to a SCSI block device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiWrtSecs ( SCSI_BLK_DEV * pScsiBlkDev, /* ptr to SCSI block device info */ int sector, /* sector number to be written */ int numSecs, /* total sectors to be written */ char * buffer /* ptr to input data buffer */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine writes the specified physical sector(s) to a specified physicaldevice.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the sector(s) cannot be written.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiTestUnitRdy"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiTestUnitRdy( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiTestUnitRdy( )</strong> - issue a <b>TEST_UNIT_READY</b> command to a SCSI device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiTestUnitRdy ( SCSI_PHYS_DEV * pScsiPhysDev /* ptr to SCSI physical device */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine issues a <b>TEST_UNIT_READY</b> command to a specified SCSI device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the command fails.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiInquiry"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiInquiry( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiInquiry( )</strong> - issue an INQUIRY command to a SCSI device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiInquiry ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */ char * buffer, /* ptr to input data buffer */ int bufLength /* length of buffer in bytes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine issues an INQUIRY command to a specified SCSI device.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the command fails.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b><hr><a name="scsiReqSense"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>scsiReqSense( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>scsiReqSense( )</strong> - issue a <b>REQUEST_SENSE</b> command to a SCSI device and read results</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS scsiReqSense ( SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */ char * buffer, /* ptr to input data buffer */ int bufLength /* length of buffer in bytes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine issues a <b>REQUEST_SENSE</b> command to a specified SCSI device andreads the results.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the command fails.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -