From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 05 Feb 2004 00:47:50 +0000 Subject: Re: getting node from path Message-Id: <20040205004750.GA5925@kroah.com> List-Id: References: <20040204014005.30339.qmail@web14912.mail.yahoo.com> In-Reply-To: <20040204014005.30339.qmail@web14912.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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