From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 10 Aug 2006 13:49:08 +0000 Subject: Re: What does 'udevtrigger' & 'udevsettle' stand for?! Message-Id: <1155217748.2856.16.camel@pim.off.vrfy.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 2006-08-10 at 17:03 +0400, xandrous@gmail.com wrote: > > If you assume that udevd starts up every time the uevent files need to > > be poked, that'd be true. But I don't believe that's the case: I've > > poked all the uevent files many times, while doing testing of various > > udev versions and rule packages. udevd was already running; restarting > > it would be a pain. (Especially if I'm currently inside a chroot, though > > that doesn't usually happen.) > > Whenever 'udevtrigger' is run it do the same things - request kernel > to resend devices events. The recipient is 'udevd'. In words of one > syllable it means 'udevtrigger' just notifies (over kernel) 'udevd'. > Signals! Why don't put 'udevtrigger' into 'udevd' as a signal handler > (for example, SIGHUP) and call it once at the end of startup of > 'udevd' and whenever user (process) asks. > > It'll get less code (the same initialization code will be called only > once) and more usability (send a signal is much easier that call any > program). > > > I'd agree that most people don't find much use in having udevtrigger be > > separate, but some do. And udevsettle is used in some cases without > > udevtrigger but while udevd is up (for instance, after repartitioning, > > to wait for the new hdXY or sdXY devices to show up). > > As for 'udevsettle', it's waste! Its functionality could be done by > one-string shell- command: > > while ! cmp /dev/.udev/uevent_seqnum /sys/kernel/uevent_seqnum; do > sleep .1; done Please stop immediately posting such nonsense, you are just wasting other people time. Kay ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ 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