site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcjGX4bzd/KDzneCT+y/ETpVrM3PEw== 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com