linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udevinfo query
@ 2004-01-27  3:05 Jon Smirl
  2004-01-27  7:12 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Smirl @ 2004-01-27  3:05 UTC (permalink / raw)
  To: linux-hotplug

It would be nice to be able to query for the full path to the node. This would
make it easier to script things.  Instead of "udevinfo -r" and "udevinfo -p
/class/dri/card0 -q name", I could just do something like "udevinfo -p
/class/dri/card0 -q fullname" and get back /udev/dri/card0

I tried "udevinfo -p /class/dri/card0 -q name" without udev running. It gives
the error "device not found in database". udevinfo -r returns "/udev/".
Shouldn't these messages be changed to indicate that udev is not mounted and
running?


==Jon Smirl
jonsmirl@yahoo.com

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: udevinfo query
  2004-01-27  3:05 udevinfo query Jon Smirl
@ 2004-01-27  7:12 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2004-01-27  7:12 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Jan 26, 2004 at 07:05:11PM -0800, Jon Smirl wrote:
> It would be nice to be able to query for the full path to the node. This would
> make it easier to script things.  Instead of "udevinfo -r" and "udevinfo -p
> /class/dri/card0 -q name", I could just do something like "udevinfo -p
> /class/dri/card0 -q fullname" and get back /udev/dri/card0

You don't like man pages, or do you?

  -r     Print  the  the  udev_root  directory.  When  used
         in conjunction with a query for the node name, the
         udev_root will be prepended.

/sbin/udevinfo -r -p /sys/class/video4linux/video0 -q name
/udev/video/webcam0


> I tried "udevinfo -p /class/dri/card0 -q name" without udev running. It gives
> the error "device not found in database". udevinfo -r returns "/udev/".
> Shouldn't these messages be changed to indicate that udev is not mounted and
> running?

What do you mean with 'running'?
If you have a database we query it, if you don't have it, we will fail
with "unable to open udev database". That's perfectly ok, I think.

Kay


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-27  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-27  3:05 udevinfo query Jon Smirl
2004-01-27  7:12 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).