Get a list of CPUs?

Is there any easy way to get a list of CPUs in a userland C program?
[75 byte] By [CleverScreenName] at [2007-11-26 10:21:29]
# 1
I would think that you could look at kstats as one method of seeing them.I don't know if "offline" cpus appear there or not.-- Darren
Darren_Dunham at 2007-7-7 2:21:01 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
psrinfo
chapaya at 2007-7-7 2:21:01 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...