Skip navigation.
Home
The QNX Community Portal

View topic - Finding number of CPUs in a pc

Finding number of CPUs in a pc

Read-only archive of qnx.rtos (Writing resources managers, and general discussion around the QNX Neutrino RTOS) at inn.qnx.com

Finding number of CPUs in a pc

Postby 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
sabtain
 

Re: Finding number of CPUs in a pc

Postby 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
Colin Burgess
 

Re: Finding number of CPUs in a pc

Postby 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
Brian Stecher
 


Return to qnx.rtos

Who is online

Users browsing this forum: No registered users and 5 guests