> 4.2.5. Register CPU idle notification callback > int cpu_idle_register_callback(uint_t priority, > cpu_idle_callback_t *callbackp, void *arg, void **hdlpp); > This interface registers a callback to be called when CPU idle state > changes. All registered callbacks will be called in priority order > from high to low when CPU enters idle state and will be called in > reverse order when CPU exits idle state. > Argument priority is used to determine the calling order of > registered callbacks. > Argument arg will be passed back to registered callback and how to > use it is determined by callback.
What are possible return values and their meaning? On architectures that do not implement this functionality (sparc?), will these functions exist, i.e. will consumers be #ifdef free, and if so, what's the behavior: fail callback registration, or succeed but never callback. -Artem