Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

ADC Home > Reference Library > Technical Q&As > Darwin > Hardware & Drivers >

Adding dependencies with kmodload


Q: When using kmodload, why do I get a "Can't find superclass" error?

A: You may see an error similar to Listing 1 if your KEXT uses classes from other I/O Kit families.

kmodload: Can't find superclass for _13AppleUSBMouse : _12IOHIPointing

Listing 1. kmodload error



This error can be eliminated by specifying your dependencies using the -d option. For example...

kmodload -o AppleUSBMouse.sym -d IOHIDSystem.kext/Contents/MacOS/IOHIDSystem


If you depend on more than one I/O Kit family, use multiple -d arguments, one for each family. Remember, you should only use kmodload when creating symbol files for use with 2-machine debugging. Otherwise, use kextload.


[Dec 05 2001]




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.