Re: rtc-cmos not supporting RTC_AIE?

David Brownell
2007-07-08T19:17:52Z

On Sunday 08 July 2007, Marcelo Tosatti wrote:

> My point is that RTC_ALM_SET after RTC_AIE_ON works with drivers/char/rtc.c
> but not rtc-cmos:
>
> ret = ioctl(fd, RTC_AIE_ON);
> if (ret) {
> perror("ioctl RTC_AIE_ON");
> exit(0);
> }
>
> ret = ioctl(fd, RTC_ALM_SET, &rtctime);
> if (ret) {
> perror("ioctl RTC_ALM_SET");
> exit(0);
> }
>
> I think its fine to consider such applications broken anyway?

I think so ... although that's unfortunately another difference
between the legacy x86-mostly code and the newer RTC framework.

Unless enough folk strongly disagree, I'd say this is just something
else to watch out for as part of converting. Not every quirk got
carried forward.

- Dave