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

Arokux B. arokux at gmail.com
Mon Jan 30 05:42:36 EST 2012


Hi,

For learning purposes I would like to iterate through all the
processes in a module and output different information about them. For
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
cannot be used by modules. Is there any other way I can lock the list
of tasks then?

Thanks



More information about the Kernelnewbies mailing list