Commit d4d79340 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Martin K. Petersen
parent fedd7a4d
...@@ -34,5 +34,6 @@ Linux SCSI Subsystem ...@@ -34,5 +34,6 @@ Linux SCSI Subsystem
scsi-changer scsi-changer
scsi_eh scsi_eh
scsi_fc_transport scsi_fc_transport
scsi-generic
scsi_transport_srp/figures scsi_transport_srp/figures
Notes on Linux SCSI Generic (sg) driver .. SPDX-License-Identifier: GPL-2.0
---------------------------------------
=======================================
Notes on Linux SCSI Generic (sg) driver
=======================================
20020126 20020126
Introduction Introduction
============ ============
The SCSI Generic driver (sg) is one of the four "high level" SCSI device The SCSI Generic driver (sg) is one of the four "high level" SCSI device
...@@ -30,11 +35,15 @@ Sg driver documentation ...@@ -30,11 +35,15 @@ Sg driver documentation
======================= =======================
The most recent documentation of the sg driver is kept at the Linux The most recent documentation of the sg driver is kept at the Linux
Documentation Project's (LDP) site: Documentation Project's (LDP) site:
http://www.tldp.org/HOWTO/SCSI-Generic-HOWTO
- http://www.tldp.org/HOWTO/SCSI-Generic-HOWTO
This describes the sg version 3 driver found in the lk 2.4 series. This describes the sg version 3 driver found in the lk 2.4 series.
The LDP renders documents in single and multiple page HTML, postscript The LDP renders documents in single and multiple page HTML, postscript
and pdf. This document can also be found at: and pdf. This document can also be found at:
http://sg.danny.cz/sg/p/sg_v3_ho.html
- http://sg.danny.cz/sg/p/sg_v3_ho.html
Documentation for the version 2 sg driver found in the lk 2.2 series can Documentation for the version 2 sg driver found in the lk 2.2 series can
be found at http://sg.danny.cz/sg/. A larger version be found at http://sg.danny.cz/sg/. A larger version
...@@ -57,9 +66,13 @@ part can be found at http://www.tldp.org/HOWTO/SCSI-2.4-HOWTO . ...@@ -57,9 +66,13 @@ part can be found at http://www.tldp.org/HOWTO/SCSI-2.4-HOWTO .
Example code and utilities Example code and utilities
========================== ==========================
There are two packages of sg utilities: There are two packages of sg utilities:
- sg3_utils for the sg version 3 driver found in lk 2.4
- sg_utils for the sg version 2 (and original) driver found in lk 2.2 ========= ==========================================================
sg3_utils for the sg version 3 driver found in lk 2.4
sg_utils for the sg version 2 (and original) driver found in lk 2.2
and earlier and earlier
========= ==========================================================
Both packages will work in the lk 2.4 series however sg3_utils offers more Both packages will work in the lk 2.4 series however sg3_utils offers more
capabilities. They can be found at: http://sg.danny.cz/sg/sg3_utils.html and capabilities. They can be found at: http://sg.danny.cz/sg/sg3_utils.html and
freecode.com freecode.com
...@@ -72,30 +85,34 @@ Mapping of Linux kernel versions to sg driver versions ...@@ -72,30 +85,34 @@ Mapping of Linux kernel versions to sg driver versions
====================================================== ======================================================
Here is a list of linux kernels in the 2.4 series that had new version Here is a list of linux kernels in the 2.4 series that had new version
of the sg driver: of the sg driver:
lk 2.4.0 : sg version 3.1.17
lk 2.4.7 : sg version 3.1.19
lk 2.4.10 : sg version 3.1.20 **
lk 2.4.17 : sg version 3.1.22
** There were 3 changes to sg version 3.1.20 by third parties in the - lk 2.4.0 : sg version 3.1.17
- lk 2.4.7 : sg version 3.1.19
- lk 2.4.10 : sg version 3.1.20 [#]_
- lk 2.4.17 : sg version 3.1.22
.. [#] There were 3 changes to sg version 3.1.20 by third parties in the
next six linux kernel versions. next six linux kernel versions.
For reference here is a list of linux kernels in the 2.2 series that had For reference here is a list of linux kernels in the 2.2 series that had
new version of the sg driver: new version of the sg driver:
lk 2.2.0 : original sg version [with no version number]
lk 2.2.6 : sg version 2.1.31 - lk 2.2.0 : original sg version [with no version number]
lk 2.2.8 : sg version 2.1.32 - lk 2.2.6 : sg version 2.1.31
lk 2.2.10 : sg version 2.1.34 [SG_GET_VERSION_NUM ioctl first appeared] - lk 2.2.8 : sg version 2.1.32
lk 2.2.14 : sg version 2.1.36 - lk 2.2.10 : sg version 2.1.34 [SG_GET_VERSION_NUM ioctl first appeared]
lk 2.2.16 : sg version 2.1.38 - lk 2.2.14 : sg version 2.1.36
lk 2.2.17 : sg version 2.1.39 - lk 2.2.16 : sg version 2.1.38
lk 2.2.20 : sg version 2.1.40 - lk 2.2.17 : sg version 2.1.39
- lk 2.2.20 : sg version 2.1.40
The lk 2.5 development series has recently commenced and it currently The lk 2.5 development series has recently commenced and it currently
contains sg version 3.5.23 which is functionally equivalent to sg contains sg version 3.5.23 which is functionally equivalent to sg
version 3.1.22 found in lk 2.4.17 . version 3.1.22 found in lk 2.4.17.
Douglas Gilbert Douglas Gilbert
26th January 2002 26th January 2002
dgilbert@interlog.com dgilbert@interlog.com
...@@ -14797,7 +14797,7 @@ M: Doug Gilbert <dgilbert@interlog.com> ...@@ -14797,7 +14797,7 @@ M: Doug Gilbert <dgilbert@interlog.com>
L: linux-scsi@vger.kernel.org L: linux-scsi@vger.kernel.org
W: http://sg.danny.cz/sg W: http://sg.danny.cz/sg
S: Maintained S: Maintained
F: Documentation/scsi/scsi-generic.txt F: Documentation/scsi/scsi-generic.rst
F: drivers/scsi/sg.c F: drivers/scsi/sg.c
F: include/scsi/sg.h F: include/scsi/sg.h
......
...@@ -133,7 +133,7 @@ config CHR_DEV_SG ...@@ -133,7 +133,7 @@ config CHR_DEV_SG
quality digital reader of audio CDs (<http://www.xiph.org/paranoia/>). quality digital reader of audio CDs (<http://www.xiph.org/paranoia/>).
For other devices, it's possible that you'll have to write the For other devices, it's possible that you'll have to write the
driver software yourself. Please read the file driver software yourself. Please read the file
<file:Documentation/scsi/scsi-generic.txt> for more information. <file:Documentation/scsi/scsi-generic.rst> for more information.
To compile this driver as a module, choose M here and read To compile this driver as a module, choose M here and read
<file:Documentation/scsi/scsi.txt>. The module will be called sg. <file:Documentation/scsi/scsi.txt>. The module will be called sg.
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
* http://sg.danny.cz/sg [alternatively check the MAINTAINERS file] * http://sg.danny.cz/sg [alternatively check the MAINTAINERS file]
* The documentation for the sg version 3 driver can be found at: * The documentation for the sg version 3 driver can be found at:
* http://sg.danny.cz/sg/p/sg_v3_ho.html * http://sg.danny.cz/sg/p/sg_v3_ho.html
* Also see: <kernel_source>/Documentation/scsi/scsi-generic.txt * Also see: <kernel_source>/Documentation/scsi/scsi-generic.rst
* *
* For utility and test programs see: http://sg.danny.cz/sg/sg3_utils.html * For utility and test programs see: http://sg.danny.cz/sg/sg3_utils.html
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment