How to get details from task_struct
I am writing a program for displaying the details of task using the task_struct structure, but i have a problem regarding the initialization of the structure variable.
How would I get the pointer to a task structure of any process.. (I want to access it directly) please help......... |
I'm hoping that someone who's familiar with internals of the Linux kernel will come along, but in the meantime, have you considered using /proc?
For example, for process 1, use /proc/1 For details: Code:
man proc |
All times are GMT -5. The time now is 06:18 AM. |