• 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
Kext dependent on another kext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kext dependent on another kext


  • Subject: Kext dependent on another kext
  • From: "Andy Green" <email@hidden>
  • Date: Wed, 4 Jun 2008 17:24:56 +0100
  • Thread-topic: Kext dependent on another kext

Hi,

I have a working kext which contains a filter scheme (subclass of
IOStorage).

I would like to create another kext with a subclass of my filter scheme.

I have managed to sort out the plists in both, declaring the
dependencies so that both kexts will load, but when my second kext tries
to allocate an object, the syslog reports "Couldn't alloc class
MySubSubClass"

As I said, the first kext loads and works fine, and contains a class
MySubClass (the names have been changed to protect the innocent)

To create the second, dependent, kext, I have
1) Created a new IOKit driver project
2) included MySubClass.h from the first
3) created the plist (I think it's correct: after a lot of debugging,
the second kext does at least load)
4) Added a new class MySubSubClass, inheriting publicly from MySubClass
5) Done the OSDeclareDefaultStructors and OSDefineMetaClassAndStructors,
and checked they're OK

Do I need to link the second kext against an object file from the first,
or something like that?

Thanks in advance,
Andy

 _______________________________________________
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

  • Prev by Date: Re: Problems with linker (ld)
  • Next by Date: Re: Problems with linker (ld)
  • Previous by thread: Re: Problems with linker (ld)
  • Next by thread: RE: Kext dependent on another kext
  • Index(es):
    • Date
    • Thread