Re: re-detect SCSi bus?

Lech Szychowski (lech7@lech.pse.pl)
Wed, 18 Mar 1998 17:26:49 +0100 (MET)


> SCSI module is just not an option. If anyone knows where to grab docs on
> doing a rescan (even a hacked one) I'd appreciate it (I'm hoping to get as

Well, feel free to correct me if I'm wrong, but drivers/scsi/scsi.c
already specifies/supports such functionality:

/*
* Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
* with "0 1 2 3" replaced by your "Host Channel Id Lun".
* Consider this feature BETA.
* CAUTION: This is not for hotplugging your peripherals. As
* SCSI was not designed for this you could damage your
* hardware !
* However perhaps it is legal to switch on an
* already connected device. It is perhaps not
* guaranteed this device doesn't corrupt an ongoing data transfer.
*/

/*
* Usage: echo "scsi remove-single-device 0 1 2 3" >/proc/scsi/scsi
* with "0 1 2 3" replaced by your "Host Channel Id Lun".
*
* Consider this feature pre-BETA.
*
* CAUTION: This is not for hotplugging your peripherals. As
* SCSI was not designed for this you could damage your
* hardware and thoroughly confuse the SCSI subsystem.
*
*/

At least it works for me (53c810).

-- 

Leszek.

+==========================================================================+ | lech7@pse.pl 2:480/33.7 - REAL programmers use INTEGERS - | | Speaking just for myself... | +==========================================================================+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu