man pages section 9: DDI and DKI Kernel Functions

Exit Print View

Updated: July 2014
 
 

ddi_get_time(9F)

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

Solaris DDI specific (Solaris DDI).

Description

ddi_get_time() returns the current time in seconds since 00:00:00 UTC, January 1, 1970. This value can be used to set of wait or expiration intervals.

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)

Writing Device Drivers for Oracle Solaris 11.2

STREAMS Programming Guide