cmacosunixmach

What is CPU_STATE_MAX?


What is the CPU_STATE_MAX macro and what is it used for? I couldn't find any descriptive/relevant google results or man pages.

I am on Mac OSX Snowleopard, if that makes any difference.


Solution

  • See this--it corresponds to the number of CPU states defined in the machine.h header. These different states are then used to index different pieces of information about the CPU state, which can differ by CPU state--idle, 'nice', etc.