Re: Linux Kernel and Device Drivers

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

 



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: pgpLXPD6fWJoZ.pgp
Description: PGP signature

_______________________________________________
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