[klibc] [PATCH] sysinfo() support
rddunlap at osdl.org
Mon Apr 5 16:17:29 PDT 2004
On Tue, 6 Apr 2004 00:19:06 +0200 Kay Sievers wrote:
| On Mon, Apr 05, 2004 at 12:36:37PM -0700, H. Peter Anvin wrote:
| > Kay Sievers wrote:
| > > Here is what we need for udev to get the seconds since uptime.
| > > It implements the linux sysinfo system call.
| > >
| > Why does udev need this info?
| We need a monotonically increasing time source independent from the
| system time. The hotplug events are tagged with a timestamp to
| determine its age for timeout handling. If we use time() or similar and
| the init scripts are running ntpdate or changing the timezone from a
| localtime BIOS clock, set by some other stupid OS, udev gets confused.
| So I use the uptime seconds now, any better idea?
Uh, does that prevent (restrict) more than 1 hotplug event per second?
"We have met the enemy and he is us." -- Pogo (by Walt Kelly)
More information about the klibc