tail head cat sleep
QR code linking to this page

Manual Pages  — HARDCLOCK

NAME

hardclock – real-time timer

CONTENTS

SYNOPSIS


void
hardclock(int cnt, int usermode);

DESCRIPTION

The hardclock() function is called periodically based on pending work. The rate ranges from hz times per second on a very busy system, to twice a second on an idle system. The cnt argument reports an estimate of the number of ticks since the last call. Over long timescales, the average sum of cnt over one second is hz. See hz(9) for important details over shorter time scales. The usermode argument is non-zero when hardclock() is called from an context that interrupted usermode execution.

hardclock() may perform different tasks such as:

SEE ALSO

adjtime(2), ntp_adjtime(2), signal(3), hwpmc(4), polling(4), ntpd(8), epoch(9), eventtimers(9), hz(9), swi(9), watchdog(9)

HARDCLOCK (9) February 27, 2023

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Ken Thompson was once asked by a reporter what he would have changed about Unix if he had it all to do over again. His answer: “I would spell creat with an ‘e.'”