I'm writting a unix driver for a network card.
How can i get current system tickcount(or current system time) in
kernel drivers? My OS is Banyan Unix 7.0 -- based on SysV/386 kernel.
Thanks in advance!
regards,
Joss
Joss Shen (s...@activetouch.com) wrote:
: Hi there,
: Thanks in advance!
: regards,
: Joss
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= "To disarm the people is the best and most effectual way to enslave them" =-
-= (George Mason, 1788) =-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= Thomas Fritz -=*=- Simi Ewing =-
-= Sr. UNIX System Admin. | =-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I don't know your unix, but I suspect it will have a kernel
symbol time_t lbolt, which is incremented every clock tick.
--
Andrew Gabriel
Consultant Software Engineer
No, the orignal poster is writing a driver.
On solaris, you can use drv_getparm (9F), check
if there is a similiar call to help you.
Y. Zhang
> Joss Shen (s...@activetouch.com) wrote:
> : Hi there,
>
> : I'm writting a unix driver for a network card.
>
> : How can i get current system tickcount(or current system time) in
> : kernel drivers? My OS is Banyan Unix 7.0 -- based on SysV/386 kernel.
>
> : Thanks in advance!
>
> : regards,
> : Joss
>
> --
>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -= "To disarm the people is the best and most effectual way to enslave them"
=-
> -= (George Mason, 1788)
=-
>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -= Thomas Fritz -=*=- Simi Ewing
=-
> -= Sr. UNIX System Admin. |
=-
>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet