lkml.org 
[lkml]   [2016]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjecthow to iterate through all tasks on a specific run queue?
From
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

\
 
 \ /
  Last update: 2016-03-15 15:41    [W:0.214 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site