[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C5B3C65.8060703@zytor.com>
Date: Thu, 05 Aug 2010 15:34:13 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Kay Sievers <kay.sievers@...y.org>
CC: Greg KH <gregkh@...e.de>, john stultz <johnstul@...ibm.com>,
Alexander Shishkin <virtuoso@...nd.org>, lkml@...r.kernel.org,
"Kirill A. Shutemov" <kirill@...temov.name>,
Thomas Gleixner <tglx@...utronix.de>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Jon Hunter <jon-hunter@...com>, Ingo Molnar <mingo@...e.hu>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
David Howells <dhowells@...hat.com>,
Avi Kivity <avi@...hat.com>, John Kacur <jkacur@...hat.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [RFC] notify userspace about time changes
On 08/05/2010 03:22 PM, Kay Sievers wrote:
>
> I think that's really awkward interface, to pass file descriptor
> numbers around and write them to magic sysfs files.
>
> I would very much prefer a file that contains the current time, and
> wakes up possible users with a POLL_ERR on changes caused by some
> other process. That works very well for things like /proc/mounts, is
> easy to get, and does not need a full page of weird instructions to
> get stuff done. :)
>
Okay, what's wrong with having a file descriptor that gets *written to*
on a notification? Why POLL_ERR?
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists