Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UpTime() in IOKit ?



Hello everybody!

For replacing the UpTime:
I use now following code (in kern/clock.h) now :

//////////////////////////////////////////////////////////////////////
clock_get_time(&abstime);
absoluteTime_to_nanoseconds(abstime, &ns);
//////////////////////////////////////////////////////////////////////

When I said re-write our drivers I meant the heart of our drivers, the
protocol we use to communicate with the DSP.
the rest will be re-written.

Thanks,
Markus.


----- Original Message -----
From: "Wayne Flansburg" <email@hidden>
To: "Markus Bollinger" <email@hidden>
Cc: <email@hidden>
Sent: Thursday, February 14, 2002 3:55 PM
Subject: Re: UpTime() in IOKit ?


> Hi Markus, Dan Markarian hit it on the head. Use IOTimerEventSource.
>
> There is an example in IOKitFundamentals at this URL.
>
> http://developer.apple.com/techpubs/macosx/Kernel/kernel.html
>
> You also said:
> > We were not intended to completely re-write our drivers (using
> > callbacks).
>
> Markus unless your device is a ndrv driver from OS 9 you must rewrite
> your driver.
>
>
> On Monday, February 11, 2002, at 09:03 AM, Markus Bollinger wrote:
>
> > Hello!
> >
> > In Mac OS 9 we use UpTime() to have a timeout in some polling routines
> > at
> > driver/hardware init.
> >
> > What should we use for OS X' IOKit ??
> >
> > Thanks,
> > Markus.
> > _______________________________________________
> > darwin-drivers mailing list | email@hidden
> > Help/Unsubscribe/Archives:
> > http://www.lists.apple.com/mailman/listinfo/darwin-drivers
> > Do not post admin requests to the list. They will be ignored.
> >
> ************************************
> Wayne Flansburg, Worldwide Technical Support
> Visit our PCI web page at:
> http://developer.apple.com/hardware/pci/
> ************************************
> _______________________________________________
> darwin-drivers mailing list | email@hidden
> Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-drivers
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: UpTime() in IOKit ? (From: Wayne Flansburg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.