// wdm.h
VOID PS_AVAILABLE_CPUS_CHANGE_CALLBACK(
PVOID Parameter
);
View the official Windows Driver Kit DDI referenceNo description available.
The PS_AVAILABLE_CPUS_CHANGE_CALLBACK function is a callback routine that is called when the set of available CPUs changes for a process or the system.
Context [in, optional]A pointer to driver-defined context information that was specified when the callback was registered with PsRegisterProcessAvailableCpusChangeNotification or PsRegisterSystemAvailableCpusChangeNotification.
SequenceNumber [in]The current sequence number for the available CPUs. This value increments whenever the set of available CPUs changes.
This callback function is implemented by the driver and is called by the system when CPU availability changes.
The callback can be invoked at IRQL from PASSIVE_LEVEL to DISPATCH_LEVEL, so the implementation must be able to run at DISPATCH_LEVEL.
The callback is invoked when:
PsRegisterProcessAvailableCpusChangeNotification
PsRegisterSystemAvailableCpusChangeNotification
PsUnregisterAvailableCpusChangeNotification