te
Copyright (c) 2000, Sun Microsystems, Inc.
Copyright (c) 2014, Nexenta Systems, 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]
Copyright (c) 2000, Sun Microsystems, Inc.
Copyright (c) 2014, Nexenta Systems, 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_TIME 9F "Apr 15, 2014"
NAME
ddi_get_time - returns the current time in seconds
SYNOPSIS
#include <sys/types.h> #include <sys/ddi.h> #include <sys/sunddi.h> time_t ddi_get_time(void);
INTERFACE LEVEL
illumos DDI specific (illumos DDI).
DESCRIPTION
ddi_get_time() returns the current time in seconds since 00:00:00 UTC,
January 1, 1970. Changes in time of day clock may result in this value
changing. In other words, the value is not monotonically increasing and
therefore it must not be used to set wait or expiration intervals. For that,
instead use ddi_get_lbolt(9F) or gethrtime(9F).
RETURN VALUES
ddi_get_time() returns the time in seconds.
CONTEXT
This routine can be called from any context.
SEE ALSO
ddi_get_lbolt(9F), drv_getparm(9F), drv_usectohz(9F),
gethrtime(9F)
Writing Device Drivers
STREAMS Programming Guide