> Hi ,
>        I am looking for a solution for implementing 'top' like utility
> in Linux, which
> would give resource utilization of all the process. One possible approach 
> would
> be to read the 'proc' file system but that would require parsing of
> the files etc.
> So i am looking for some sorts of system calls which can give me the resource
> usage .
>
> System calls like getrusage() gives the usage of self or child process only.
> one possible solution i thought of traversing the 'struct task_struct' using a
> KLM.
>
> Please provide some assistance for this, or a alternative i should look at
>
Why not just reuse top or htop source code??? don't reinvent the wheel
--
BAIN
http://abhijit.adotout.net

--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      ([email protected])
List Information:  http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.

Reply via email to