All of lore.kernel.org
 help / color / mirror / Atom feed
* adjtime vs. adjtimex
@ 2013-10-05 19:43 Manuel Reimer
  0 siblings, 0 replies; only message in thread
From: Manuel Reimer @ 2013-10-05 19:43 UTC (permalink / raw)
  To: linux-api-u79uwXL29TY76Z2rM5mHXA

Hello,

I don't know if I'm on the right list. Please point me to a better list 
if I'm wrong.

What I want to do is to adjust time *once a day* only, but I would 
prefer to not let the system time jump.

So I have the choice between adjtime and adjtimex.

I would prefer adjtimex, as it enables "11 minute mode" for the hardware 
clock.

I tried to set an offset with adjtimex and set the clock to status 
"TIME_OK". My problem is, that this status seems to get lost as soon as 
my program exits.

If I use "adjtime", then my offset is stored but I can't set the clock 
to "TIME_OK", so I have to handle hwclock on my own.

Is it possible to use "adjtimex" in a "fire and forget" manner? Is it 
possible to set an offset and time status to "OK" and keep this status 
even if my process exits?

Thanks in advance.

Greetings,

Manuel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-10-05 19:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-05 19:43 adjtime vs. adjtimex Manuel Reimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.