NdisSetPollAffinity function (poll.h)
A miniport driver calls the NdisSetPollAffinity function to lock an NdisPoll callback to a processor.
Syntax
void NdisSetPollAffinity(
[_In_] NDIS_POLL_HANDLE PollHandle,
[_In_] PROCESSOR_NUMBER const *PollAffinity
);
Parameters
[_In_] PollHandle
A handle to the Poll object returned by a successful call to NdisRegisterPoll.
[_In_] PollAffinity
A pointer to a driver-initialized PROCESSOR_NUMBER structure that describes the core on which the driver wants the NdisPoll callback for this object to be called.
Return value
None
Remarks
After NdisSetPollAffinity returns one poll iteration can still occur with the old affinity. The affinity works when polling both at PASSIVE_LEVEL and DISPATCH_LEVEL IRQL.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 11 |
Minimum supported server | Windows Server 2022 |
Header | poll.h (include ndis.h) |
IRQL | <= DISPATCH_LEVEL |