site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Organization: MusicLab, inc. Hi Niklas, YourPolledInterfaceClassName.h: class YourPolledInterfaceClassName : public IOPolledInterface { OSDeclareDefaultStructors(YourPolledInterfaceClassName) ... // all pure virtual functions should be overrided }; YourPolledInterfaceClassName.cpp: Generally that's it. Regards, - Alexander -- Niklas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/klax%40musiclab.com This email sent to klax@musiclab.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I'm trying to implement a block driver that supports storing the hibernation file onto it. To do this, I need to subclass IOPolledInterface, as described in IOHibernateIO.cpp in the kernel, but I get unresolved references to its metaclass if I do. (__ZN17IOPolledInterface9metaClassE). I'm guessing this is because the symbol is in the _HIB section in the kernel. Any ideas? Actually I didn't have problems like yours. You're likely missing something. IOPolledInterface class is fully exported by com.apple.kpi.iokit. Your class declaration/definition (if it's not intended to be abstract like IOPolledInterface) should look as follows: OSDefineMetaClassAndStructors(YourPolledInterfaceClassName, IOPolledInterface) ... // virtual functions implementation... // they will do whatever you want This email sent to site_archiver@lists.apple.com