Re: clock_delay_for_interval
Re: clock_delay_for_interval
- Subject: Re: clock_delay_for_interval
- From: Jim Magee <email@hidden>
- Date: Wed, 18 Jun 2003 13:44:48 -0700
On Tuesday, June 17, 2003, at 11:55 AM, Eric Long wrote:
The kext links against the kernel framework, yet when I try to load
the kext
I get this message:
kld(): Undefined symbols:
_clock_delay_for_interval
I'm running on 10.2.6. The kext loaded fine before I added this call.
Anyone know why this symbol is missing?
For some reason, the actual implementation of this routine (on PowerPC
- it doesn't exist on Darwin/x86) is called "delay_for_interval()"
(without the "clock" prefix). I'm not sure whether this was
intentional for some reason, or just an error. But I think that
exposing this routine in the header at all was a mistake. There are
other, more supported ways, of doing this that a preferable.
What kind of KEXT is this? If it's an IOKit KEXT, you should be using
IODelay(). If it is a non-IOKit KEXT, you are probably already
knee-deep in "no-compatibility-guarantees" code. But the routine
delay() is much more likely to be supported long term than the
implementation routine you found and tried.
--Jim
PS: Kernel documentation is coming. But only for KEXTs that fit into
nice, neat, categories (IOKit, Filesystem, Network, etc..). Anything
outside of these categories will, to some extent, still be playing with
fire.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.