# The Linux SCSI Generic (sg) HOWTO

### Douglas Gilbert

dgilbert@interlog.com

Copyright © 2001, 2002 by Douglas Gilbert

2002-05-03

Revision History
Revision 1.2 | 2002-05-03 | Revised by: dpg
ENOMEM, EPERM; DRIVER_SENSE->CHECK_CONDITION
Revision 1.1 | 2002-01-26 | Revised by: dpg
corrections, host_status, odd dxfer_len
Revision 1.0 | 2001-12-21 | Revised by: dpg
original, displace SCSI-PROGRAMMING-HOWTO

This HOWTO describes the SCSI Generic driver (sg) found in the Linux 2.4 production series of kernels. It focuses on the the interface and characteristics of the driver that application writers may need to know. The driver's theory of operations is covered and some brief examples are included.

|  | Next
|  | Introduction