From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 16 Jan 2004 22:02:41 +0000 Subject: Re: [PATCH] udev - reverse user query options Message-Id: <20040116220241.GA3028@kroah.com> List-Id: References: <20040116095433.GA17756@vrfy.org> In-Reply-To: <20040116095433.GA17756@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Jan 16, 2004 at 10:54:33AM +0100, Kay Sievers wrote: > Here we get the ability to query with the name of the node instead of > the device path. It uses a linear search over the whole database. > > kay@pim:~/src/udev.kay$ ./udev -q path -n video/webcam0 > /class/video4linux/video0 Nice, but I think it still needs some tweaking: $ ./udev -q path -n tty42 /class/tty/tty53 $ ./udev -q path -n tty53 /class/tty/tty53 $ ./udev -q path -n tty40 /class/tty/tty53 $ ./udev -q path -n ttyS1 /class/tty/tty53 $ ./udev -q path -n tty /class/tty/tty53 $ ./udev -q path -n tt /class/tty/tty53 $ ./udev -q path -n t /class/tty/tty53 $ ./udev -q path -n foo /block/fd0 $ ./udev -q path -n fd0 /block/fd0 I'll hold off applying this one for now :) thanks, greg k-h ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ 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