From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] udev - reverse user query options
Date: Fri, 16 Jan 2004 22:02:41 +0000 [thread overview]
Message-ID: <20040116220241.GA3028@kroah.com> (raw)
In-Reply-To: <20040116095433.GA17756@vrfy.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
next prev parent reply other threads:[~2004-01-16 22:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 9:54 [PATCH] udev - reverse user query options Kay Sievers
2004-01-16 22:02 ` Greg KH [this message]
2004-01-17 11:49 ` Kay Sievers
2004-01-17 13:51 ` Kay Sievers
2004-01-19 19:41 ` Greg KH
2004-01-19 19:42 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040116220241.GA3028@kroah.com \
--to=greg@kroah.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.