From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Woodhouse Date: Wed, 07 Feb 2001 09:10:29 +0000 Subject: Re: Adding PCMCIA support to the kernel tree -- developers needed. 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 Oliver.Neukum@lrz.uni-muenchen.de said: > The problem is that may try to configure a device that's no longer > there, or worse a device that is being replaced this way. That can always happen; synchronous or not. User waits till the hotplug script/daemon is just about to configure the device and viciously removes it. Oliver.Neukum@lrz.uni-muenchen.de said: > You need to tell the kernel that it must cease processing events on a > bus that you are scanning. You mean ignoring the 'device removed' interrupt and allowing the user to configure the absent device just because we told them it was there? I'm not utterly convinced by that. How about assigning a unique ID to each _instance_ of each device (i.e. each time it's inserted it gets a new ID. We create a device with a name like eth-hotplug-3452 and then tell the usermodehelper about it. The usermodehelper can do whatever it needs to do to find out which socket it's plugged into, what its MAC address is, or whatever else it needs to decide whether it should be eth0 or eth1, and then renames it. And if the device goes away in the meantime, that's trivially handled. -- dwmw2 _______________________________________________ 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