Subject: Re: When will the system time be written into the CMOS clock?
To: Matthias Scheler <tron@lyssa.owl.de>
From: Perry E. Metzger <perry@piermont.com>
List: port-i386
Date: 01/04/1998 13:34:08
Matthias Scheler writes:
> when will the system time be written into the CMOS clock? Only if I halt
> or reboot the system?

Use The Source, Luke!

kern_time.c defines the settimeofday() syscall (and related
friends). These all (indirectly) call resettodr(), which sets the
hardware clock on those machines that possess one.

Thus, simply calling settimeofday from userland will call resettodr().

Perry