* processes / net connections - an API
@ 2007-05-11 12:41 stf
2007-05-11 12:47 ` jamal
0 siblings, 1 reply; 2+ messages in thread
From: stf @ 2007-05-11 12:41 UTC (permalink / raw)
To: netdev
Hi!
I want to write a library or application showing processes and net
connections. I was looking on ps and netstat to see how those programs
are retrieving the information. It seems that they are parsing /proc
entries.
Is there any other kernel API to get information about processes or net
connections?
Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: processes / net connections - an API
2007-05-11 12:41 processes / net connections - an API stf
@ 2007-05-11 12:47 ` jamal
0 siblings, 0 replies; 2+ messages in thread
From: jamal @ 2007-05-11 12:47 UTC (permalink / raw)
To: stf; +Cc: netdev
On Fri, 2007-11-05 at 14:41 +0200, stf wrote:
> Hi!
>
> I want to write a library or application showing processes and net
> connections. I was looking on ps and netstat to see how those programs
> are retrieving the information. It seems that they are parsing /proc
> entries.
>
> Is there any other kernel API to get information about processes or net
> connections?
>
For processes, take a look at kernel-sources/accounting/*
For networking, your question is hard to answer because netstat really
wont tell you much about flows; in any case, but take a look at
iproute2-sources/iproute2/misc/*
cheers,
jamal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-11 12:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11 12:41 processes / net connections - an API stf
2007-05-11 12:47 ` jamal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).