Re: Hibernation
Re: Hibernation
- Subject: Re: Hibernation
- From: "Alexander Klyuev" <email@hidden>
- Date: Thu, 17 Sep 2009 23:57:05 -0400
- Organization: MusicLab, inc.
Hi Niklas,
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:
YourPolledInterfaceClassName.h:
class YourPolledInterfaceClassName : public IOPolledInterface
{
OSDeclareDefaultStructors(YourPolledInterfaceClassName)
...
// all pure virtual functions should be overrided
};
YourPolledInterfaceClassName.cpp:
OSDefineMetaClassAndStructors(YourPolledInterfaceClassName,
IOPolledInterface)
...
// virtual functions implementation...
// they will do whatever you want
Generally that's it.
Regards,
- Alexander
--
Niklas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Hibernation (From: Niklas Hoglund <email@hidden>) |