[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unstable? nah. :-)

Anthony Towns <aj@azure.humbug.org.au> wrote:
> No it wouldn't; it'd just require you to have two extra ints, and something that
> ran every so often (and as part of any syscall that tells userspace the uptime),
> that does:
> 	static unsigned last_uptime = 0;
> 	static unsigned wraps = 0;
> 	if (uptime < last_uptime) wraps++;
> 	last_uptime = uptime;
> You could probably even do it in userspace, really, with some care.

	This is the most sensible answer I've heard about this (and I've
bitched about the limitation a lot). Maybe it's time for me to delve into
the kernel source for the first time in 10 years.

		- Tyler

Reply to: