MacShutdown

VOID
MacShutdown(
IN PVOID ShutdownContext
);

MacShutdown is called by the NDIS library when the system is shutting down.

Parameters

ShutdownContext

Points to the context the NIC driver associates with shutdown processing. The NIC driver provided this pointer when it called NdisRegisterAdapterShutdownHandler during initialization.

Comments

MacShutdown makes final preparations before the operating system shuts down. In particular, MacShutdown resets the NIC to its power-on state.

MacShutdown runs at IRQL PASSIVE_LEVEL in a system thread context when an end user explictly shuts the machine down. However, MacShutdown runs at an arbitrary IRQL if a bugcheck causes the system to shut down. Consequently, MacShutdown should call only those NdisXxx functions that the driver's ISR can call.

See Also

MacAddAdapter, MiniportShutdown, NdisDeregisterAdapterShutdownHandler, NdisRegisterAdapterShutdownHandler