Mailing Lists: Apple Mailing Lists

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

clock_delay_for_interval



In <kern/clock.h> it lists a prototype for this function:

extern void clock_delay_for_interval(
uint32_t interval,
uint32_t scale_factor);

I am attempting to use it in a kext like this:

clock_delay_for_interval(200, NSEC_PER_USEC);

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?

I also noticed these functions:

> /*
> * Configure the clock system.
> */
> extern void clock_config(void);
> /*
> * Initialize the clock system.
> */
> extern void clock_init(void);
>
> /*
> * Initialize the clock ipc service facility.
> */
> extern void clock_service_create(void);
>

Do I need to do anything with these before I call
clock_delay_for_interval()?

Is there documentation around to explain kernel APIs? I looked in the
Kernel Programming docs, but they're pretty sparse. Other than poking
around in the sources to figure out these things, it seems like there's very
little information around. Maybe I just don't know where to look.


Thanks for any input,


Eric
_______________________________________________
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.



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.