>I am looking for a kernel variable which gives me the number of cpus >that are present in the system. In uts/common/os/cpu.c the macro NCPU >seems to be used, but if I understand correctly this equals the >maximum number of cpus supported, but not necessarily present. Is >there a specific reason why this code loops over this whole range >(which equals 558 in my system) instead of only the present cpus? > >I would like such a variable in order to loop over all processors.
Inside the kernel? There are a number of places inside the kernel where the code iterates over all processors; why not look at that code. Casper _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
