Hi, if I in kernel-space, modifying the scheduler/dispatcher, in the swtch() (in disp.c) function and I want to know if the current thread and/or the next thread belongs to the rt class? Is there some built in function for this like "is_this_thread_a_rt_thread(thread)" ?
In Linux, kernel 2.6.23.9, in the main scheduler file, sched.c there is a function: task_has_rt_policy(task) that will return 1 or 0 depending on if the task have a rt policy(FIFO or RR) or not. So my question is, is there a similar function in OpenSolaris that I can use? Or do I have to check the threads priority, that is, if the thread have a rt priority(100-159) to determine this? Thanks This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
