From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Date: Thu, 08 Feb 2001 13:22:46 +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 > > There's the little issue of a very limited device node space. > > You don't necessarily have to expand it, you just need to use it with > care. If you want stable names based on bus position then you absolutely need to expand it. For USB at least you have no other way to get a stable name. > > That doesn't mean that I don't agree with the diagnosis. > > I just don't see a way to implement the remedy cleanly. > > Well, I think letting the hotplug program decide what the device will > appear as (the name or possibly also major/minor numbers) could work? I believe it could work, but at the same time I think it is a very bad idea. a) How do you operate during system start ? b) How do you do the transition ? c) How do you handle locking ? You need total mutual exclusion. d) How do you handle an error in the hotplug agent ? e) What other algorithmus that couldn't be trivially implemented in kernel do you want to use ? Either you use stable names, or you let the kernel decide the name and give it to the hotplug agent. The first approach isn't all that good because it ruins things like /dev/videoX or /dev/audioX. The second requires hotplug notification on device registration. Regards Oliver _______________________________________________ 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