On Tue, 16 Jul 2013 12:42:37 +0530, Satya Prakash Prasad said:
> I am not sure how to practice the code snippet given in the text book. I
> can understand the theory but do not find a way to practice. For example: I
> want to read a process 'struct task_struct' to find it parent's process
> identifier, how many tasks are in which state, creating kernel threads etc?

cd /usr/src/linux
find include -type f | xargs grep 'struct task_struct' | more

Lots of hits.  One of those is the definition of the structure. Study it
and learn from that.  The rest are where other things refer to the
structure - much can be learned from studying what *else* refers to it
and why.

Enjoy.

Attachment: pgpMTfezbx5QD.pgp
Description: PGP signature

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

Reply via email to