Lines Matching defs:moduleName
452 bool IOCatalogue::isModuleLoaded(OSString * moduleName) const
454 return isModuleLoaded(moduleName->getCStringNoCopy());
457 bool IOCatalogue::isModuleLoaded(const char * moduleName) const
460 ret = OSKext::loadKextWithIdentifier(moduleName);
473 OSString * moduleName = NULL;
489 moduleName = OSDynamicCast(OSString, driver->getObject(gIOModuleIdentifierKey));
490 if ( moduleName )
491 return isModuleLoaded(moduleName);
503 void IOCatalogue::moduleHasLoaded(OSString * moduleName)
508 dict->setObject(gIOModuleIdentifierKey, moduleName);
516 void IOCatalogue::moduleHasLoaded(const char * moduleName)
520 name = OSString::withCString(moduleName);
526 IOReturn IOCatalogue::unloadModule(OSString * moduleName) const
528 return OSKext::removeKextWithIdentifier(moduleName->getCStringNoCopy());
627 OSString * moduleName,
644 if (OSKext::isKextWithIdentifierLoaded(moduleName->getCStringNoCopy())) {
648 if (!OSKext::canUnloadKextWithIdentifier(moduleName,
660 dict->setObject(gIOModuleIdentifierKey, moduleName);
673 ret = unloadModule(moduleName);
685 const char * moduleName,
691 name = OSString::withCString(moduleName);