Re: IOKit kext Dependencies
Re: IOKit kext Dependencies
- Subject: Re: IOKit kext Dependencies
- From: Garth Cummings <email@hidden>
- Date: Tue, 21 Oct 2008 11:07:23 -0700
Hi Duane,
From: Duane Murphy <email@hidden>
Date: Mon, 20 Oct 2008 15:56:17 -0700
Is there a way of expressing dependencies on classes other than the
classes that a kext is a subclass of?
The kext dependency and loading machinery only knows about kexts; it knows nothing about individual classes. That's handled by the kernel linker.
If both classes are in the same kext, they will be available at the same time. If not, you can use the OSBundleLibraries mechanism to get the dependency to load first. See the sample code IOKitWithLibrary < http://developer.apple.com/sample.code/IOKitWithLibrary> for an example.
If you actually need to wait for an instance of the class to be created, waitForService should do the trick.
--gc
____________________________________________________________________ Sr. Software Engineer Apple Developer Technical Support
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden