old-www/HOWTO/SCSI-Generic-HOWTO/intro.html

237 lines
4.5 KiB
HTML

<HTML
><HEAD
><TITLE
>Introduction</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="The Linux SCSI Generic (sg) HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="The Linux SCSI Generic (sg) HOWTO"
HREF="index.html"><LINK
REL="NEXT"
TITLE="What the sg driver does"
HREF="what.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Linux SCSI Generic (sg) HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="index.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="what.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="INTRO">Chapter 1. Introduction</H1
><P
>This document outlines the Linux SCSI Generic (<SPAN
CLASS="ABBREV"
>sg</SPAN
>) driver
interface as found in the 2.4 series kernels. The driver's purpose is to
allow SCSI commands to be sent directly to SCSI devices. The responses of
those commands can then be obtained. This type of driver is sometimes termed
as a "pass through".
In the case of SCSI disks, the block subsystem which is normally used to
mount and access a disk, is bypassed permitting low level operations such as
formatting to be performed. Various specialized applications for writing
CD-Rs and document scanning use the sg driver.</P
><P
>Many devices that use other physical buses (e.g. ATAPI cdroms, USB
mass storage devices and IEEE 1394 sbp2 devices) utilize the SCSI command
set. By using Linux pseudo SCSI device drivers which bridge between
the native protocol stack and the SCSI subsystem, the upper level
SCSI device drivers, including sg, can be used to control "non-SCSI"
devices.</P
><P
>This is the third major version of the sg driver.
A summary of the sg driver history is as follows:
<P
></P
><UL
><LI
><P
>sg version 1 (original) from 1992 to early 1999
(lk 2.2.5) . A copy of the original HOWTO (in plain text) is at
<A
HREF="http://www.torque.net/sg/p/original/SCSI-Programming-HOWTO.txt"
TARGET="_top"
><TT
CLASS="LITERAL"
>www.torque.net/sg/p/original/SCSI-Programming-HOWTO.txt</TT
></A
></P
></LI
><LI
><P
>sg version 2 from lk 2.2.6 in the 2.2 series. Its
documentation is available in abridged form
[<A
HREF="http://www.torque.net/sg/p/scsi-generic.txt"
TARGET="_top"
><TT
CLASS="LITERAL"
>www.torque.net/sg/p/scsi-generic.txt</TT
></A
>]
and a longer form
[<A
HREF="http://www.torque.net/sg/p/scsi-generic_long.txt"
TARGET="_top"
><TT
CLASS="LITERAL"
>www.torque.net/sg/p/scsi-generic_long.txt</TT
></A
>].</P
></LI
><LI
><P
>sg version 3 in the linux kernel 2.4 series. </P
></LI
></UL
>
This document can be found at the Linux Documentation Project's site at
<A
HREF="http://www.linuxdoc.org/HOWTO/SCSI-Generic-HOWTO/"
TARGET="_top"
><TT
CLASS="LITERAL"
>www.linuxdoc.org/HOWTO/SCSI-Generic-HOWTO/</TT
></A
> .
It is available in plain text and pdf renderings at that site.
A (possibly later) version of this document can be found at
<A
HREF="http://www.torque.net/sg/p/sg_v3_ho.html"
TARGET="_top"
><TT
CLASS="LITERAL"
>www.torque.net/sg/p/sg_v3_ho.html</TT
></A
>.
That is a single html page; drop the ".html" extension for multi-page
html. There are also postscript, pdf and rtf renderings from the original
SGML (docbook) file at the same location.</P
><P
>A more general description of the Linux SCSI subsystem of which sg is a
part can be found in the
<A
HREF="http://www.linuxdoc.org/HOWTO/SCSI-2.4-HOWTO"
TARGET="_top"
>
<TT
CLASS="LITERAL"
>SCSI-2.4-HOWTO</TT
></A
>.</P
><P
>This document was last modified on 3rd May 2002.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="what.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The Linux SCSI Generic (sg) HOWTO</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>What the sg driver does</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>