NdisSystemActiveProcessorCount (Compact 2013)

3/26/2014

This function returns the number of currently active processors in the local device.

Syntax

ULONG
  NdisSystemActiveProcessorCount(
    OUT PKAFFINITY ActiveProcessors
);

Parameters

  • ActiveProcessors
    A pointer to a KAFFINITY-typed variable that receives a bitmap that represents the set of currently active processors. In a hot-add environment, this bitmap can change during runtime.

Return Value

NdisSystemActiveProcessorCount returns the number of currently active processors in the local device.

Remarks

An NDIS driver might call the NdisSystemActiveProcessorCount function during initialization before it allocates resources.

NdisSystemActiveProcessorCount resembles the KeQueryActiveProcessorCount function.

Note

NDIS drivers should not use NdisSystemProcessorCount to retrieve the number of currently active processors. NdisSystemActiveProcessorCount might not map processors to the bits in the returned KAFFINITY value consecutively and NdisSystemActiveProcessorCount might not return the same bitmap every time that it is called.

The value that NdisSystemActiveProcessorCount returns can change at runtime on SKUs that support hot-add CPU functionality.

Requirements

Header

ndis.h

See Also

Reference

NDIS Current Information Functions
NdisSystemProcessorCount