Retrieves the current status of the systemwide time-of-day timer-adjustment values.
#include <sys/types.h>
int kgettickd (timed, tickd, time_adjusted)
int *timed;
int *tickd;
int *time_adjusted;
Item | Description |
---|---|
timed | Specifies the current amount of time adjustment in microseconds remaining to be applied to the systemwide timer. |
tickd | Specifies the time-adjustment rate in microseconds. |
time_adjusted | Indicates if the systemwide timer has been adjusted. A value of True indicates that the timer has been adjusted by a call to the adjtime or settimer subroutine. A value of False indicates that it has not. The use of the ksettimer kernel service has no effect on this flag. This flag can be changed by the ksettickd kernel service. |
The kgettickd kernel service provides kernel extensions with the capability to determine if the adjtime or settimer subroutine has adjusted or changed the systemwide timer.
The kgettickd kernel service is typically used only by kernel extensions providing time synchronization functions. This includes coordinated network time (which is the periodic synchronization of all system clocks to a common time by a time server or set of time servers on a network), where use of the adjtime subroutine is insufficient.
The kgettickd kernel service can be called from either the process or interrupt environment.
The kgettickd service always returns a value of 0.