Lines Matching defs:moduleName
456 bool IOCatalogue::isModuleLoaded(OSString * moduleName) const
458 return isModuleLoaded(moduleName->getCStringNoCopy());
461 bool IOCatalogue::isModuleLoaded(const char * moduleName) const
464 ret = OSKext::loadKextWithIdentifier(moduleName);
477 OSString * moduleName = NULL;
493 moduleName = OSDynamicCast(OSString, driver->getObject(gIOModuleIdentifierKey));
494 if ( moduleName )
495 return isModuleLoaded(moduleName);
507 void IOCatalogue::moduleHasLoaded(OSString * moduleName)
512 dict->setObject(gIOModuleIdentifierKey, moduleName);
520 void IOCatalogue::moduleHasLoaded(const char * moduleName)
524 name = OSString::withCString(moduleName);
530 IOReturn IOCatalogue::unloadModule(OSString * moduleName) const
532 return OSKext::removeKextWithIdentifier(moduleName->getCStringNoCopy());
631 OSString * moduleName,
648 if (OSKext::isKextWithIdentifierLoaded(moduleName->getCStringNoCopy())) {
652 if (!OSKext::canUnloadKextWithIdentifier(moduleName,
664 dict->setObject(gIOModuleIdentifierKey, moduleName);
677 ret = unloadModule(moduleName);
689 const char * moduleName,
695 name = OSString::withCString(moduleName);