Thread (2 messages) 2 messages, 2 authors, 2012-01-31

Using tasklist_lock in a module -- is there an alternative?

From: Pei Lin <hidden>
Date: 2012-01-31 03:39:59

2012/1/30 Arokux B. [off-list ref]:
Hi,

For learning purposes I would like to iterate through all the
processes in a module and output different information about them. For
What information did you want to get for processes? /proc/PID/xxx is
not enough for u?
this task I need to lock the list of all tasks. I've seen some example
in the kernel code which lock tasklist_lock. However this symbol
tasklist_lock had been deprecated for a long time. Maybe rcu_read_lock
could help u.
cannot be used by modules. Is there any other way I can lock the list
of tasks then?

Thanks

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


-- 
Best Regards
Lin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help