linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* getting node from path
@ 2004-02-04  1:40 Jon Smirl
  2004-02-05  0:47 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Smirl @ 2004-02-04  1:40 UTC (permalink / raw)
  To: linux-hotplug

My program needs to convert the device path into a node name. What's the best
way to do this?

The program resets the video hardware so it will run at early boot time. Is
there a static udev library I can link to? Or should I exec this:  udevinfo -r
-q name -p /class/dri/card0. Will the exec work during early boot?

How do I make sure that udev has had a chance to create the node before I try
using it? My driver will probably be compiled in so I will get my hotplug event
very early.



==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: getting node from path
  2004-02-04  1:40 getting node from path Jon Smirl
@ 2004-02-05  0:47 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-02-05  0:47 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Feb 03, 2004 at 05:40:05PM -0800, Jon Smirl wrote:
> My program needs to convert the device path into a node name. What's the best
> way to do this?
> 
> The program resets the video hardware so it will run at early boot time. Is
> there a static udev library I can link to? Or should I exec this:  udevinfo -r
> -q name -p /class/dri/card0. Will the exec work during early boot?

There is no static udev library right now.  exec should work just fine
during early boot.

> How do I make sure that udev has had a chance to create the node before I try
> using it? My driver will probably be compiled in so I will get my hotplug event
> very early.

Look to see if it is there?  Sleep until it shows up?

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

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

end of thread, other threads:[~2004-02-05  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-04  1:40 getting node from path Jon Smirl
2004-02-05  0:47 ` Greg KH

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