Traversing Runqueu - CFS

Mulyadi Santosa mulyadi.santosa at
Thu Jan 13 00:40:53 EST 2011

Hi Jestin...

On Thu, Jan 13, 2011 at 08:34, Jestin Joy <jestinjoy at> 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


Mulyadi Santosa
Freelance Linux trainer and consultant


More information about the Kernelnewbies mailing list