2012-02-02 18:04:03

by Arokux X

[permalink] [raw]
Subject: Re: An alternative for tasklist_lock in a module?

Hello Christoph and Andrew,

you are correspondingly the author and signer of the mentioned commit.
Could I get some feedback from you?

Thanks.





On Tue, Jan 31, 2012 at 7:58 PM, Arokux B. <[email protected]> wrote:
> Hi,
>
> (for learning purposes) I would like to iterate through all the tasks
> in a module and output different information about them. For this task
> I need to lock the list of all tasks (need I?). I've seen some example
> in the kernel code which lock tasklist_lock. However this symbol
> cannot be used by modules. Its export was removed by
> c59923a15c12d2b3597af913bf234a0ef264a38b commit.
>
> Is there any other way I can lock the list of tasks then? Or I'm supposed
> not to use this list at all?
>
> Thanks