OpenCBM
Functions
processor.c File Reference

Functions for determining processor number. More...

#include <ntddk.h>
#include "cbm_driver.h"

Go to the source code of this file.

Functions

ULONG CbmGetCurrentProcessorNumber (VOID)
 Wrapper for KeGetCurrentProcessorNumber() More...
 
ULONG CbmGetNumberProcessors (VOID)
 Get the number of processors in the system. More...
 

Detailed Description

Functions for determining processor number.



Author
Spiro Trikaliotis

Definition in file processor.c.

Function Documentation

ULONG CbmGetCurrentProcessorNumber ( VOID  )

Wrapper for KeGetCurrentProcessorNumber()

See KeGetCurrentProcessorNumber()

This function is needed as KeGetCurrentProcessorNumber() is only defined in NTDDK.H, not in WDM.H. Anyway, for debugging purposes, we need to access it from anywhere..

Definition at line 31 of file processor.c.

ULONG CbmGetNumberProcessors ( VOID  )

Get the number of processors in the system.

This function returns the count of processors available in the current system.

Returns
The number of processors in the system
Remarks
This function is necessary to account between differences between the W2K API and later APIs. Additionally, on Windows 95/98/Me, there is no variable available that returns this info. On the other hand, on Win 95/98/Me, there is no chance for more than one processor, as these systems do not support more than one.

Definition at line 57 of file processor.c.

Referenced by AddDeviceCommonInit().