Real-Time Clocks and POSIX

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

 



Hi,
 
I'm looking into real-time clocks.  I'm wondering why the POSIX
clock_* and timer_* APIs are not used for RTCs.  E.g., I expected
that you would be able to just use:

  struct timespec now;
  clock_gettime (MY_RTC_DEVICE, &now);

to read the time from a RTC device.  There even appears to be an easy
way to register auxiliary clocks in kernel/posix-timers.c.

Instead, Documentation/rtc.txt describes the "ioctl" API that is to
be used instead.

Is there a motivation for not using the POSIX functions for RTCs?
Or is there a code path between the two that I did not see?

Thank you,
Frank
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux