GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HARDCLOCK(9) FreeBSD Kernel Developer's Manual HARDCLOCK(9)

hardclockreal-time timer

void
hardclock(int cnt, int usermode);

The () 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.

() may perform different tasks such as:

  • Run the current process's virtual and profile time (decrease the corresponding timers, if they are activated, and generate SIGVTALRM or SIGPROF, respectively).
  • Increment the time-of-day, taking care of any ntpd(8) or adjtime(2) induced changes and leap seconds, as well as any necessary compensations to keep in sync with PPS signals or external clocks, if supported by the kernel.
  • Schedule softclock interrupts (swi(9)) processing.
  • Collect hwpmc(4) statistics.
  • Do device polling, when enabled (see polling(4)).
  • Implement software watchdog(9) processing.
  • Enqueue epoch(9) processing.

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

February 27, 2023 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.