2 .\" Copyright (c) 2000, Sun Microsystems, Inc.
3 .\" Copyright (c) 2014, Nexenta Systems, Inc.
4 .\" All Rights Reserved
5 .\" 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.
6 .\" 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.
7 .\" 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]
8 .TH DDI_GET_TIME 9F "Apr 15, 2014"
10 ddi_get_time \- returns the current time in seconds
14 #include <sys/types.h>
16 #include <sys/sunddi.h>
20 \fBtime_t\fR \fBddi_get_time\fR(\fBvoid\fR);
26 Solaris DDI specific (Solaris DDI).
30 \fBddi_get_time()\fR returns the current time in seconds since 00:00:00 UTC,
31 January 1, 1970. Changes in time of day clock may result in this value
32 changing. In other words, the value is not monotonically increasing and
33 therefore it must not be used to set wait or expiration intervals. For that,
34 instead use \fBddi_get_lbolt\fR(9F) or \fBgethrtime\fR(9F).
38 \fBddi_get_time()\fR returns the time in seconds.
42 This routine can be called from any context.
46 \fBddi_get_lbolt\fR(9F), \fBdrv_getparm\fR(9F), \fBdrv_usectohz\fR(9F),
50 \fIWriting Device Drivers\fR
53 \fISTREAMS Programming Guide\fR