From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vojtech Pavlik Date: Wed, 07 Feb 2001 17:48:52 +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 On Wed, Feb 07, 2001 at 11:29:42AM +0100, Oliver Neukum wrote: > > > Again removal is not the problem, replacement is. > > > And yes, while a configuration script is running the kernel should queue > > > device addition events. > > > And to be absolutely correct you need to check the queue for obsolete > > > events before you play it to user space. > > > > IMO it needs not to be a true queue, but rather than a list of present > > devices which is then checked against a list that the daemon knows about > > already and the events would be then made to synchronize them. > > I am afraid that order is important unless the scripts are given a stable > name. Yes. Relying on detection order for device naming in a hotplugging system is a nightmare, anyway. > printer 1 addition -> edit printcap > printer 2 addition -> edit printcap > printer 1 removal -> edit printcap > > will leave you with lp1 as your printer name > If you reverse steps 2 and 3 you get lp0 as printer name. So you have to give them some other names, not based on addition/removal order. Userspace (printcap in this case) will never be happy with names changing no matter how much we serialize. -- Vojtech Pavlik SuSE Labs _______________________________________________ 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