setDebuggerMode
Set debugger mode for network drivers.
Declaration
virtual bool setDebuggerMode(
boolactive);Parameters
- active:
Set to true if entering KDP and false if leaving KDP.
Return Value
Returns true on success and false otherwise.
Overview
This method should be implemented by a driver that wishes to be notified when entering or leaving KDP. After a debugger client has been attached through attachDebuggerClient(), this method will be called by the debugger to inform the driver that the kernel debugger is going active or inactive. This method may be called from the primary interrupt context. As a result, the implementation must avoid any memory allocation, not use spinlocks, and never block.
The setDebuggerMode() method in IONetworkController is used as a placeholder and doesn't do anything. If a driver wishes to perform specific actions based upon whether or not the debugger is active or not, it should override this method. For example, drivers may wish to alter power management settings or perform other chipset reconfigurations based upon the active debugger state.
See Also
Miscellaneous
allocatePacketattachDebuggerClientattachInterfaceconfigureInterfacecopyMediumDictionarycopyPacketcreateInterfacecreateOutputQueuecreateWorkLoopdetachDebuggerClientdetachInterfacedisabledisable(IONetworkInterface *)disable(IOService *)disablePacketFilterdoDisabledoEnableenableenable(IONetworkInterface *)enable(IOService *)enablePacketFilterexecuteCommandfreefreePacketgetChecksumDemandgetChecksumSupportgetCommandClientgetCommandGategetDebuggerLinkStatusgetFeaturesgetHardwareAddressgetMaxPacketSizegetMediumDictionarygetMinPacketSizegetOutputHandlergetOutputQueuegetPacketBufferConstraintsgetPacketFiltersgetSelectedMediumhandleClosehandleIsOpenhandleOpeninitmessagenewModelStringnewRevisionStringnewVendorStringoutputPacketpreparepublishMediumDictionarypublishPropertiesreceivePacketregisterWithPolicyMakerreleaseDebuggerLockreleaseFreePacketsreplaceOrCopyPacketreplacePacketreserveDebuggerLockselectMediumselectMediumWithNamesendPacketsetChecksumResultsetHardwareAddresssetLinkStatussetMaxPacketSizesetSelectedMediumstartstopsystemWillShutdown