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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 31, 2012 at 4:39 AM, Pei Lin <telent997@xxxxxxxxx> wrote:
> 2012/1/30 Arokux B. <arokux@xxxxxxxxx>:
>> 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@xxxxxxxxxxxxxxxxx
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> --
> Best Regards
> Lin

Hi,

thank you for your reply. It would be enough, however I want to do
some kernel programming.

Regards,
Roman

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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux