Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / ddi_get_lbolt.9f
blob50b149ed0ad6e433f335aaff138a142860c4f0dc
1 '\" te
2 .\" Copyright (c) 2000, Sun Microsystems, Inc.
3 .\"  All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH DDI_GET_LBOLT 9F "Feb 18, 1998"
8 .SH NAME
9 ddi_get_lbolt, ddi_get_lbolt64 \- returns the value of lbolt
10 .SH SYNOPSIS
11 .LP
12 .nf
13 #include <sys/types.h>
14 #include <sys/ddi.h>
15 #include <sys/sunddi.h>
19 \fBclock_t\fR \fBddi_get_lbolt\fR(\fBvoid\fR);
20 .fi
22 .SH INTERFACE LEVEL
23 .sp
24 .LP
25 Solaris DDI specific (Solaris DDI).
26 .SH DESCRIPTION
27 .sp
28 .LP
29 \fBddi_get_lbolt()\fR returns the value of \fBlbolt\fR where \fBlbolt\fR is an
30 integer that represents the number of clock ticks since the last system reboot.
31 This value is used as a counter or timer inside the system kernel. The tick
32 frequency can be determined by using \fBdrv_usectohz\fR(9F) which converts
33 microseconds into clock ticks.
34 .SH RETURN VALUES
35 .sp
36 .LP
37 \fBddi_get_lbolt()\fR returns the value of \fBlbolt\fR.
38 .SH CONTEXT
39 .sp
40 .LP
41  This routine can be called from any context.
42 .SH SEE ALSO
43 .sp
44 .LP
45 \fBddi_get_time\fR(9F), \fBdrv_getparm\fR(9F), \fBdrv_usectohz\fR(9F)
46 .sp
47 .LP
48 \fIWriting Device Drivers\fR
49 .sp
50 .LP
51  \fISTREAMS Programming Guide\fR