Hi, all. Let me start by asking that any replies to this be CC'ed to me,
as I'm not on the linux-scsi mailing list.
I'm working on the USB Mass Storage driver, which appears to be a SCSI
host controller to the kernel. The question I have is this: how do I
inform the higher SCSI layers that a device has appeared and disappeared?
Mostly, I'm concerned with when devices appear. I can trace the code flow
when a user does an "echo 'scsi add-single-device 0 0 0 0' >
/proc/scsi/scsi, but is that safe to call at all times? Are there any
restrictions on it's use?
As for removal, I'm creating a false sense of persistance in this virtual
host driver to allow people to remove and reattach devices, so the SCSI
higher layer never notices that the device is gone. However, I might want
the driver to 'forget' about a device, and thus I need a way to ask the
SCSI layer to do the equivalent of a "echo 'scsi remove-single-device'..."
also. Again, I can trace the code flow, but is it safe at all times?
What are the warnings/caveats that come with these functions?
Matt Dharm
--
Matthew Dharm InterNIC: MDD94
Engineer, Qualcomm, Inc. Cell: (619) 890-6943
Home: [EMAIL PROTECTED] Home: (858) 689-1908
Work: [EMAIL PROTECTED] Work: (858) 651-7649
Beep: [EMAIL PROTECTED] Beep: (858) 621-8155
E: You run this ship with Windows?! YOU IDIOT!
L: Give me a break, it came bundled with the computer!
-- ESR and Lan Solaris
User Friendly, 12/8/1998
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]