[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
>Hi, I am looking for a kernel level function to get the current system time.
>I tried both clock_gettime() and time(2). But, both of these do not seem to
>work in my STREAMS module. In the first case, the module started behaving
>weirdly after the call to clock_gettime()[ioctl failed etc], in the second
>case the machine rebooted, when the call to time(2) happened. I assume that
>this means that these functions are not available at the kernel level. I will
>be a lot helped, if anybody can point me in the right direction.
Try ddi_get_time() or ddi_get_lbolt()
(Only stuff in section 9 can be used inside kenrel modules)
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.