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: clock_delay_for_interval



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.
References: 
 >clock_delay_for_interval (From: Eric Long <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.