SCSI Pass-Through Programmer's Guide
Contents
Document Summary ................................................................................................................. 3
What is “SCSI Pass Through”? ................................................................................................ 4
Why and when one might use SPT?..................................................................................... 4
History and some caveats...................................................................................................... 5
Program Setup for SPT I/O....................................................................................................... 6
Overview............................................................................................................................... 6
Input parameter validation.................................................................................................... 6
SPT Device File Creation ..................................................................................................... 6
Deriving the mknod() “minor number” using io_query ................................................... 7
Opening the SPT device file ................................................................................................. 8
Issuing SCSI commands ....................................................................................................... 8
Interpreting results ................................................................................................................ 9
Device Configuration using SYSGEN ................................................................................... 11
Recent Enhancements............................................................................................................. 13
1. User notification of Bus Resets....................................................................................... 13
2. LDEV number to I/O path Conversion........................................................................... 14
3. Dup capability on SPT device files................................................................................. 15
4. Using SPT Device files across system boots.................................................................. 15
LIBIO.H.................................................................................................................................. 16
Bug fixed in /usr/include/sys/libIO.H................................................................................. 16
Appendix A............................................................................................................................. 17
Appendix B............................................................................................................................. 23
Appendix C............................................................................................................................. 27
- 2 -