Update RTC automatically

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

 



Dear List!

I'd like to set up the system to update the RTC based on the system clock 
(set by an external source) automatically. I found that with the do_adjtimex 
function this can be done. I have to clear the STA_UNSYNC bit in the .status 
filed of the timex structure. It seems that the .maxerror field also has to 
be set to 0 also, because if I don't set it to 0 the STA_UNSYNC bit will be 
set by the system automatically.

Can anyone help me how this should be implemented?

TIA && Good byte!
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux