From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 15 Dec 2004 23:36:53 +0000 Subject: Re: determining udev running Message-Id: <1103153813.14134.119.camel@localhost.localdomain> List-Id: References: <1103138473.4055.28.camel@rich> In-Reply-To: <1103138473.4055.28.camel@rich> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, 2004-12-15 at 15:21 -0800, rich turner wrote: > can someone shoot any holes in my logic here. how about this: > > we used udev to populate /dev if: > 1. /dev is a mounted filesystem as determined by /proc/mounts No, udev will work perfectly on any filesystem, including the root filesystem. > 2. there is a file /dev/.udev.tdb You need to get the filename from /etc/udev/udev.conf. But if /dev is on a persistent filesystem, yo can't know if its from the current system, or an earlier run. As said in the earlier mail: If /dev is on tmpfs and you find a udevdb at the configured location, there is a high probability that udev is manging the /dev directory. > is there any importance for checking for udevd? doesnt it just listen > for new devices detected by the kernel and create the nodes if they dont > already exist? udevd is just an event serializer. It collect events from the kernel and forks the udev binary in the right order. So, there in no distribution independent way to know if udev has created the device nodes. There is no single state, where you can get that information. What exact problem you need to address? Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ 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