Skip to contentSkip to conversation

code of ps command

DISCUSSION Naveen Kumar Pagidimarri 3 participants 3 messages Jul 5, 2001

lore
Share & tools
lore
#0 lore raw

Hai All,

please help me out to find the source code of ps command or

tell me the source where i can get the information about the

data structures/related system calls used for the

implementation of the ps command.

thank u all in advance for the interest u have shown in me.

thank u

naveen

#1 lore raw
Quoted 11 lines · Naveen Kumar Pagidimarri

Hai All,

please help me out to find the source code of ps command or

tell me the source where i can get the information about the

data structures/related system calls used for the

Quoted 7 lines

implementation of the ps command.

thank u all in advance for the interest u have shown in me.

thank u

naveen

You can get the sourcecode of ps in
http://ftp.debian.org/debian/dists/potato/main/source/admin/psmisc_19.orig.tar.gz

Quoted 6 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 8 lines
"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.
--

    Julien Laganier
     Student Intern
Sun Microsystem Laboratories
#2 lore raw
In reply to Naveen Kumar Pagidimarri
Quoted 6 lines · Naveen Kumar Pagidimarri

tell me the source where i can get the information about the

data structures/related system calls used for the

implementation of the ps command.

The ps command probably reads ALL or most of the info it needs from the /proc directory. The proc filesystem is a virtual filesystem implemented by the kernel.