IOReturn CLASS::enable( IONetworkInterface * netif ) { if (fEnabledForBSD) return kIOReturnSuccess; fEnabledForBSD = setActivationLevel(kActivationLevelBSD); return fEnabledForBSD ? kIOReturnSuccess : kIOReturnIOError; }
void Space::applyInitialProjections(uint8_t hostID) { for (uint32_t i = 0; i < initialProjections.count(); i++) { setActivationLevel(hostID, initialProjections[i].spaceID, initialProjections[i].activationLevel); } setActivationThreshold(initialActivationThreshold); }
IOReturn CLASS::disable( IOKernelDebugger * debugger ) { fEnabledForKDP = false; if (fEnabledForBSD == false) setActivationLevel(kActivationLevelNone); return kIOReturnSuccess; }
IOReturn CLASS::disable( IONetworkInterface * netif ) { fEnabledForBSD = false; setActivationLevel( fEnabledForKDP ? kActivationLevelKDP : kActivationLevelNone ); return kIOReturnSuccess; }
IOReturn RTL8139::disable( IOKernelDebugger* /* debugger */ ) { ELG( 0, 0, 'disD', "RTL8139::disable - debugger" ); enabledByKDP = false; if ( enabledByBSD == false ) setActivationLevel( kActivationLevel0 ); return kIOReturnSuccess; }/* end disable debugger */
IOReturn CLASS::enable( IOKernelDebugger * debugger ) { if (fEnabledForKDP || fEnabledForBSD) { fEnabledForKDP = true; return kIOReturnSuccess; } fEnabledForKDP = setActivationLevel(kActivationLevelKDP); return fEnabledForKDP ? kIOReturnSuccess : kIOReturnIOError; }
IOReturn RTL8139::disable( IONetworkInterface* /*netif*/ ) { ELG( enabledByKDP, enabledByBSD, 'disN', "RTL8139::disable - netif" ); DEBUG_LOG( "disable(netif) ===>\n" ); enabledByBSD = false; setActivationLevel( enabledByKDP ? kActivationLevel1 : kActivationLevel0 ); DEBUG_LOG( "disable(netif) <===\n" ); return kIOReturnSuccess; }/* end disable netif */
void ModuleDescriptor::applyInitialProjections(uint8_t hostID) { for (uint32_t i = 0; i < initialProjections.count(); i++) { setActivationLevel(hostID, initialProjections[i].spaceID, initialProjections[i].activationLevel); for (uint32_t j = 0; j < initialProjections[i].subscriptions.count(); j++) { if (initialProjections[i].subscriptions[j].MCID == ClassRegister::NoClass) { addSubscription_stream(hostID, initialProjections[i].spaceID, initialProjections[i].subscriptions[j].SID); } else { addSubscription_message(hostID, initialProjections[i].spaceID, initialProjections[i].subscriptions[j].MCID); } } } }
IOReturn RTL8139::enable( IOKernelDebugger* /* debugger */ ) { ELG( enabledByKDP, enabledByBSD, 'enbD', "RTL8139::enable - debugger" ); if ( enabledByKDP || enabledByBSD ) { enabledByKDP = true; return kIOReturnSuccess; } enabledByKDP = setActivationLevel( kActivationLevel1 ); return enabledByKDP ? kIOReturnSuccess : kIOReturnIOError; }/* end enable debugger */
IOReturn RTL8139::enable( IONetworkInterface *netif ) { ELG( 0, enabledByBSD, 'enbN', "RTL8139::enable - netif" ); DEBUG_LOG( "enable(netif) ===>\n" ); if ( true == enabledByBSD ) { DEBUG_LOG( "enable() <===\n" ); return kIOReturnSuccess; } enabledByBSD = setActivationLevel( kActivationLevel2 ); DEBUG_LOG( "enable(netif) <===\n" ); return enabledByBSD ? kIOReturnSuccess : kIOReturnIOError; }/* end enable netif */