|
Following is the original interface structure of the sg driver that dates back to 1991. Those field elements with a "[o]+" are added by the sg version 2 driver which was first placed in lk 2.2.6 in April 1999.
struct sg_header { int pack_len; /* [o] */ int reply_len; /* [i] */ int pack_id; /* [i->o] */ int result; /* [o] */ unsigned int twelve_byte:1; /* [i] */ unsigned int target_status:5; /* [o]+ */ unsigned int host_status:8; /* [o]+ */ unsigned int driver_status:8; /* [o]+ */ unsigned int other_flags:10; /* unused */ unsigned char sense_buffer[SG_MAX_SENSE]; /* [o] */ }; /* This structure is 36 bytes long on i386 */ |
This interface is fully described in the www.torque.net/sg/p/scsi-generic.txt file which documents the sg version 2 driver.
Since many Linux applications use this interface, it is still supported in this version (i.e. version 3) of the driver. Only its most perverse idiosyncrasies have been modified and no major applications have reported any problems running old applications atop this newer driver.
Hosting by: Hurra Communications Ltd.
Generated: 2007-01-26 17:58:35