Traversing Runqueu - CFS
Mulyadi Santosa
mulyadi.santosa at gmail.com
Thu Jan 13 00:40:53 EST 2011
Hi Jestin...
On Thu, Jan 13, 2011 at 08:34, Jestin Joy <jestinjoy at hotmail.com> wrote:
> Hi,
>
> Looking for a way to traverse the runqueue, so that I could get the
> contents of the runqueue. Initial reading tells that sched.h has ched_entity
> structure, which holds some of the data for it, like the
>
> struct rb_node run_node;
I think, for simple traversing, you could just use for_each_process,
unless you wanna find out something related to the rb tree. And, with
my limited knowledge, rbtree.h doesn't include any traversing
function.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
More information about the Kernelnewbies
mailing list