Finding number of CPUs in a pc

bridged with qnx.rtos
Post Reply
sabtain

Finding number of CPUs in a pc

Post by sabtain » Wed Nov 14, 2007 8:50 pm

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

Colin Burgess

Re: Finding number of CPUs in a pc

Post by Colin Burgess » Wed Nov 14, 2007 8:58 pm

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

Brian Stecher

Re: Finding number of CPUs in a pc

Post by Brian Stecher » Thu Nov 15, 2007 2:04 pm

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

Post Reply

Return to “qnx.rtos”