Finding number of CPUs in a pc

I know this question has been asked before. I know i need to get numcpu
entry in _syspage_entry structure but I do not know there is a way to extra
that information. I know I can use the structure directly. I was not able to
use SYSPAGE_ENTRY() call to get that variable. Does someone know how can I
get the numcpu value out of the _syspage_entry structure.

Thanks,

Sabtain

You can reference it as _syspage_ptr->num_cpu

sabtain wrote:

I know this question has been asked before. I know i need to get numcpu
entry in _syspage_entry structure but I do not know there is a way to extra
that information. I know I can use the structure directly. I was not able to
use SYSPAGE_ENTRY() call to get that variable. Does someone know how can I
get the numcpu value out of the _syspage_entry structure.

Thanks,

Sabtain


cburgess@qnx.com

In article <fhfmqm$96u$1@inn.qnx.com>, sabtain <khansx@aecl.ca> wrote:

I know this question has been asked before. I know i need to get numcpu
entry in _syspage_entry structure but I do not know there is a way to extra
that information. I know I can use the structure directly. I was not able to
use SYSPAGE_ENTRY() call to get that variable. Does someone know how can I
get the numcpu value out of the _syspage_entry structure.

_syspage_ptr->num_cpu

\

Brian Stecher (bstecher@qnx.com) QNX Software Systems
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8