Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q: How to get curr sys tickcount in kernel driver?

4 views
Skip to first unread message

Joss Shen

unread,
Dec 15, 1997, 3:00:00 AM12/15/97
to

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

Tom Fritz

unread,
Dec 15, 1997, 3:00:00 AM12/15/97
to

I think you want ctime(2)


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

Andrew Gabriel

unread,
Dec 15, 1997, 3:00:00 AM12/15/97
to

In article <349589D3...@activetouch.com>,

Joss Shen <s...@activetouch.com> writes:
>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.

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


yzh...@integrix.com

unread,
Dec 16, 1997, 3:00:00 AM12/16/97
to

In article <abuseEL...@netcom.com>,

postm...@127.0.0.1 wrote:
>
> I think you want ctime(2)
>

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

0 new messages