OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 12:07 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 62 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sabtain
Post subject: Finding number of CPUs in a pc  PostPosted: Nov 14, 2007 - 08:50 PM
Guest





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
 
   
Reply with quote Back to top
Colin Burgess
Post subject: Re: Finding number of CPUs in a pc  PostPosted: Nov 14, 2007 - 08:58 PM
Guest





You can reference it as _syspage_ptr->num_cpu

sabtain wrote:
Quote:
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
 
   
Reply with quote Back to top
Brian Stecher
Post subject: Re: Finding number of CPUs in a pc  PostPosted: Nov 15, 2007 - 02:04 PM
Guest





In article <fhfmqm$96u$1@inn.qnx.com>, sabtain <khansx@aecl.ca> wrote:
Quote:
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
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.