xref: /titanic_51/usr/src/man/man9f/ddi_get_lbolt.9f (revision 2b6389efff8da018d426952e20428e7e60d568a3)
te
Copyright (c) 2000, Sun Microsystems, Inc.
All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
ddi_get_lbolt 9F "18 Feb 1998" "SunOS 5.11" "Kernel Functions for Drivers"
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).

DESCRIPTION

ddi_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 converts microseconds into clock ticks.

RETURN VALUES

ddi_get_lbolt() returns the value of lbolt.

CONTEXT

This routine can be called from any context.

SEE ALSO

ddi_get_time(9F), drv_getparm(9F), drv_usectohz(9F)

Writing Device Drivers

STREAMS Programming Guide