Hi Artem, Please refer to comments below, thanks! Artem.Kachitchkin at Sun.COM <mailto:Artem.Kachitchkin at Sun.COM> wrote: >> 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? The return value is zero on success or error number on failure.
> > 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. On platform which doesn't support such a mechanism, the registration will succeed but the registered callbacks won't be called. > > -Artem Liu Jiang (Gerry) OpenSolaris, OTC, SSG, Intel