Naive question: 2.2.x or 2.4.x drvconfig equivalent in the works?

Douglas Gilbert dougg at torque.net
Tue Jul 17 17:24:40 PDT 2001


Mike Brown wrote:
> 
> > Is there a device-specific (perhaps?) way to force a bus reset?
> 
> Take a look at <linux>/include/scsi/sg.h
> 
> One of the ioctl()'s is defined as:
> 
> #define SG_SCSI_RESET 0x2284
> 
> with subcommands:
> 
> #define         SG_SCSI_RESET_NOTHING   0
> #define         SG_SCSI_RESET_DEVICE    1
> #define         SG_SCSI_RESET_BUS       2
> #define         SG_SCSI_RESET_HOST      3
> 
> I gather you could get the job done via something like:
> 
> #define MY_SG_DEV "/dev/sg0"
> 
> int fd = open (MY_SG_DEV, O_RDWR);
> 
> ioctl (fd, SG_SCSI_RESET, SG_SCSI_RESET_BUS);
> 
> -Michael F. Brown, UMass Lowell Computer Science

Mike,
In the interests of accuracy, this code has never worked
in any standard linux kernel. Most recent Linux distributions
(e.g. RH 7.0 and 7.1) include the patch to the SCSI mid level
that activate it.

Doug Gilbert

To Unsubscribe: send mail to majordomo at FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message




More information about the aic7xxx mailing list