• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IOKit kext Dependencies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
____________________________________________________________________
Garth Cummings  email@hidden
Sr. Software Engineer
Apple Developer Technical Support

<http://developer.apple.com/technicalsupport>


 _______________________________________________
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

  • Follow-Ups:
    • Re: IOKit kext Dependencies
      • From: Duane Murphy <email@hidden>
  • Prev by Date: Re: IOKit Kext Dependencies
  • Next by Date: Re: IOKit kext Dependencies
  • Previous by thread: Re: IOKit Kext Dependencies
  • Next by thread: Re: IOKit kext Dependencies
  • Index(es):
    • Date
    • Thread