Traversing Runqueu - CFS

Jestin Joy jestinjoy at
Wed Jan 12 20:34:33 EST 2011


    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;

Also read that redblack tree is used to hold the elements with "vruntime" as the index of it. 

Could anyone give a way forward to doing this. 
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list