LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Getting a Process Details (https://www.linuxquestions.org/questions/programming-9/getting-a-process-details-62220/)

grub 05-28-2003 01:42 AM

Getting a Process Details
 
How can I get the details related to a particular proccess.

Like

1. Flags associated with the process
2. Faults not needing I/O
3. Swaps
4. Number of read operations
etc.

Is there any System call that gives me the details (atleast some of the above)

If I can get from /proc/<process id>/
Please suggest me how to read the files, as most are only the values and there is no name associated with value.

Grub :newbie:

whansard 05-28-2003 02:13 AM

man ps
is your friend

you could check the source code to top or ps
if you wanted.

grub 05-28-2003 02:34 AM

From where I can down load the source for these commands.
I have kernel source for 2.7.10 can this help me.

whansard 05-28-2003 03:54 AM

are you from the future?
i bet you meant kernel source 2.4.10

ftp://ftp.groupsys.com/pub/top

grub 05-28-2003 04:02 AM

Sorry it is 2.4.7 :D
I will be back for the doubts.
Thanks
Grub


All times are GMT -5. The time now is 11:35 AM.