Traversing Runqueu - CFS
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; 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.
Hi Jestin... On Thu, Jan 13, 2011 at 08:34, Jestin Joy <jestinjoy@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
participants (2)
-
Jestin Joy -
Mulyadi Santosa