DDI_GET_LBOLT(9F)DDI_GET_LBOLT(9F)NAME
ddi_get_lbolt - returns the value of lbolt
SYNOPSIS
#include <sys/types.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
clock_t ddi_get_lbolt(void);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
DESCRIPTIONddi_get_lbolt() returns the value of lbolt where lbolt is an integer
that represents the number of clock ticks since the last system reboot.
This value is used as a counter or timer inside the system kernel. The
tick frequency can be determined by using drv_usectohz(9F) which con‐
verts microseconds into clock ticks.
RETURN VALUESddi_get_lbolt() returns the value of lbolt.
CONTEXT
This routine can be called from any context.
SEE ALSOddi_get_time(9F), drv_getparm(9F), drv_usectohz(9F)
Writing Device Drivers
STREAMS Programming Guide
Feb 18, 1998 DDI_GET_LBOLT(9F)