[LWN Logo]
[LWN.net]
Date: Mon, 26 Feb 2001 23:21:42 -0500
From: Douglas Gilbert <dougg@torque.net>
To: linux-scsi@vger.kernel.org
Subject: [experimental] scsiinfo driver

Last month there were some discussions on this list about hotplugging
(and unplugging) SCSI devices. That was mainly in the context of various
pseudo drivers such as sbp2_1394, usb/mass_storage and usb/microtek.

As was pointed out at the time, various changes would probably be
required to the SCSI subsystem. As an incremental approach to the
problem an experimental upper level driver is available for lk 2.4.2:
http://www.torque.net/scsi/scsiinfo.html

Essentially this driver monitors device attaches and detaches. If
CONFIG_HOTPLUG has been set then the /sbin/hotplug mechanism is
invoked. In any case lists of attached and detached devices plus a
host list are available via ioctls.

At this stage there is very little documentation. Look at the ioctl
test program (si_test.c), the header file (include/scsi/scsiinfo.h)
and the si_call_policy() function in the driver to see the names of
the provided environment variables.

I look forward to suggestions :-)

Doug Gilbert

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel