Re: [rtc-linux] [PATCH 04/10] RTC: Cleanuprtc_class_ops->read_alarm()

From: Mark Brown
Date: Tue Feb 22 2011 - 18:07:29 EST


On Tue, Feb 22, 2011 at 02:10:34PM -0800, john stultz wrote:

> Although For me, I see multiplexing events becoming too useful a bit of
> functionality to offload to a userland API. Especially since there might
> be conflicting approaches to the userland coordination (Want to open a
> file? There's one call you have to make. Want to draw a on the screen?
> Well, there's X or fb or maybe wayland, etc).

Of course one can equally make the argument that this sort of
multiplexing decision is policy and the multiple independant
ideas for how it should work suggests we shouldn't be picking something
for them. I don't feel *that* strongly about it, though.

> Now, your observation about the behavior of persistence over reboots is
> a interesting corner-case that I overlooked. And I do want to address
> that as best we can, but I think it is an unreasonable expectation for
> applications to have, given that much common hardware doesn't support
> it.

What would probably help here if we're going to keep this support in
would be to make the current state and perhaps also the underlying
hardware features more discoverable. That way userspace can preserve
the state when shutting down if it wants to.
--
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/