From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Jansen Date: Sat, 07 Apr 2001 10:56:45 +0000 Subject: Re: [RFC/Patch] Device Registry 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 Sunday 01 April 2001 19:47, you wrote: > A one sentence summary: this registry is a text file in a new > format, presenting a logically flat namespace of devices each > with descriptive {attribute-name,value} pairs (X.500-ish). Thinking about this for the last few days, I think it was a mistake to use name/value pairs. One of the ideas of devreg was to replace all these files like /proc/pci, /proc/bus/usb/devices (or their binary, non-deprecated equivalents) with a single file, but it is not possible to make complex lists with name/value pairs. For example they cannot be used to list all endpoints of an USB interface. I need a more complex format for that, and the obvious choice would be XML. The idea of using XML in the kernel seems weird to me, but as long as you only write it there is no overhead compared to other solutions. Using tools like grep is a problem though. even they are still usable as long as the layout is grep-friendly (elements and their content on the same line and so on). I'd like to get some opinions about that and maybe alternatives... bye... _______________________________________________ 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