Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1358052 > unrolled thread

how to iterate through all tasks on a specific run queue?

Started bynad gam <nadavkernel@gmail.com>
First post2016-03-15 15:00 +0100
Last post2016-03-15 15:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  how to iterate through all tasks on a specific run queue? nad gam <nadavkernel@gmail.com> - 2016-03-15 15:00 +0100

#1358052 — how to iterate through all tasks on a specific run queue?

Fromnad gam <nadavkernel@gmail.com>
Date2016-03-15 15:00 +0100
Subjecthow to iterate through all tasks on a specific run queue?
Message-ID<rcXFU-2Ox-5@gated-at.bofh.it>
I would like create a system call that iterate over all tasks in a
specific run queue .
the signature would be "iterateTasks(int cpu_x)",
which means - iterate over tasks in run queue belong to cpu number x .

 how do I do that?
I saw someone suggestion doing so from init_task with
"list_for_each_safe" macro, though Im not sure how to access init_task
of a specific cpu ?

Thanks

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web