From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Hanson Date: Tue, 02 Jul 2002 02:32:50 +0000 Subject: Is there any docs or design guides for adding hotplugablity to drivers? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Date: 01 Jul 2002 14:00:19 -0700 From: Mark Atwood Other than just reading the source, of course. I'm working on a Linux appliance, and I feel that using hotplug events to signal things like moving in range of an 802.11 access point, getting carrier on an ethernet port, and someone plugging a cable into the serial port, would make a lot of stuff much much easier. I suspect that a lot of this would be useful out in the "regular linux" world as well. Especially the ethernet carrier detect. (Windows can do it, and will invoke DHCP when you plug in an ethernet cable, it would be nice if Linux can do the same.) I'm working on this. I've already implemented code to do carrier detect, although this only works on NICs that support MII. (Unfortunately the Lucent Prism II doesn't support MII; if anyone knows how to do carrier detect on non-MII NICs, I'd appreciate learning how.) See the Debian package "laptop-net" for details: http://packages.debian.org/unstable/admin/laptop-net.html This package also handles configuration and so forth. However, there are N such Debian packages, each with a different set of features and a different configuration interface. What I'm currently working on is an event daemon to allow the functionality in these packages to be modularized. I plan to use this to provide a uniform event-signalling mechanism for all sorts of things, including networking and APM. The immediate application is a project underway here at MIT to improve our laptop infrastructure. But the mechanism is general enough to handle any kind of event. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel