AppleRAIDController.cpp [plain text]
#include <IOKit/IOMessage.h>
#include "AppleRAID.h"
#include "AppleRAIDGlobals.h"
#include "AppleRAIDController.h"
#define super IOService
OSDefineMetaClassAndStructors(AppleRAIDController, IOService);
AppleRAIDController *AppleRAIDController::createAppleRAIDController(void)
{
AppleRAIDController *raidController;
raidController = new AppleRAIDController;
if ((raidController != 0) && raidController->init()) {
raidController->attach(getResourceService());
raidController->registerService();
}
return raidController;
}
bool AppleRAIDController::attachToChild(IORegistryEntry *child, const IORegistryPlane *plane)
{
bool ok = super::attachToChild(child, plane);
if (ok) messageClients(kIOMessageServiceIsSuspended);
return ok;
}
void AppleRAIDController::detachFromChild(IORegistryEntry *child, const IORegistryPlane *plane)
{
super::detachFromChild(child, plane);
messageClients(kIOMessageServiceIsSuspended);
}
void AppleRAIDController::statusChanged(IORegistryEntry *child)
{
messageClients(kIOMessageServiceIsSuspended);
}