NdisSystemProcessorCount

CCHAR
NdisSystemProcessorCount(VOID);

NdisSystemProcessorCount determines whether its caller is running on a uniprocessor or multiprocessor machine.

Return Value

NdisSystemProcessorCount returns the number of processors in the machine.

Comments

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

For example, suppose NdisSystemProcessorCount returns a value greater than one, which suggests the machine is more likely to be a server than a workstation. When this occurs, the driver could allocate more memory on the assumption that network traffic will be significantly heavier on a server.

Callers of NdisSystemProcessorCount run at IRQL PASSIVE_LEVEL.

See Also

DriverEntry of NDIS Protocol Drivers, MiniportInitialize