[1804] in linux-scsi channel archive
Re: kerneld
daemon@ATHENA.MIT.EDU (Eric Youngdale)
Sat May 3 19:24:25 1997
Date: Sat, 3 May 1997 19:23:23 -0400
From: Eric Youngdale <eric@andante.jic.com>
To: richard@stommel.tamu.edu
CC: tmw20@cam.ac.uk, linux-scsi@vger.rutgers.edu
In-reply-to: <199705021821.NAA20108@stommel.tamu.edu> (message from Richard
Henderson on Fri, 2 May 1997 13:21:27 -0500 (CDT))
>Not at present. The scsi subsystem will only probe for a host adaptor
>if there are none present. Furthermore, it is sd.o that is associated
>with block-major-8, so there's not really any place to hook on.
>
>Perhaps one of the scsi folk can comment on the advisability of probing
>for additional host adaptors if a device beyond the number currently
>detected is opened. And if it is not evil, whereabouts would be a good
>place to hook on.
Ooops, I was answering the wrong question....
No, there is no way to currently have a pseudo device to tell the
thing to autoprobe if you open up some pseudo-device. Technically I guess
you could check for opening N+1, but the user would need to know what N is
to do this.
You can ask the scsi system to probe for devices that weren't there
when the bus was scanned automatically - you just send a special text string
to the proc filesystem. Something like:
$echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
to specify the host, channel, id and lun to check.
-Eric