DDI_GET_TIME(9F) Kernel Functions for Drivers DDI_GET_TIME(9F)

ddi_get_time - returns the current time in seconds

#include <sys/types.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
time_t ddi_get_time(void);

illumos DDI specific (illumos DDI).

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).

ddi_get_time() returns the time in seconds.


This routine can be called from any context.

ddi_get_lbolt(9F), drv_getparm(9F), drv_usectohz(9F), gethrtime(9F)

Writing Device Drivers


STREAMS Programming Guide

April 15, 2014 OmniOS