Reputation: 1
Is it possible for a driver to register a callback in the kernel for every context switch?
thanks!
Upvotes: 0
Views: 510
Reputation: 503
No. Context switches happen too frequently. There are APIs to register yourself for notification of thread / process creation / termination (PsSetCreateProcessNotifyRoutine, etc). Maybe that would help?
Upvotes: 1