⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scsilib.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
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>(&nbsp;)</b><hr><a name="scsiBusReset"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>scsiBusReset(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiBusReset(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiIoctl(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiFormatUnit(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiModeSelect(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiModeSense(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiReadCapacity(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiRdSecs(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiWrtSecs(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiTestUnitRdy(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiInquiry(&nbsp;)</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(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>scsiReqSense(&nbsp;)</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 + -