From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulyadi.santosa@gmail.com (Mulyadi Santosa) Date: Thu, 13 Jan 2011 12:40:53 +0700 Subject: Traversing Runqueu - CFS In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Jestin... On Thu, Jan 13, 2011 at 08:34, Jestin Joy 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