Re: [PATCH] [RFC] notify userspace about time changes
From: H. Peter Anvin
Date: Thu Aug 05 2010 - 18:44:28 EST
On 08/05/2010 03:39 PM, Kay Sievers wrote:
>> Okay, what's wrong with having a file descriptor that gets *written to*
>> on a notification?
> Because it needs documentation, and is just not needed for such a
> simple thing, I think. Why would you want to write a fd number to a
> magic file, which can be your fd right away, even passing you the data
> on read().
I didn't mean that, I meant a note that you open and get a pipe/socket/*.
>> Why POLL_ERR?
> Because normal files can not be poll()ed, and it's not that new data
> has arrived, it just tells you to rewind and read it again. It's
> commonly used:
It makes sense there, I guess, as some kind of sideband notification is
highly useful. Too bad we don't have a generic mechanism on files other
than inotify... a lot of things could use it (including tail, which I
think uses inotify now.)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/