hz - Global Variable: Stores the number of clock ticks per
second
extern int hz;
The hz global variable is set to the number of clock ticks
per second. The value is useful for timing purposes. For
example, if a kernel module wants to schedule a routine to
be run in 2 seconds, you could use the following call:
.
.
. timeout(lptout, (caddr_t)dev, 2*hz);
.
.
.
hz(9v)
[ Back ] |