LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Implement a System Call for Displaying The System Statistics (http://www.linuxquestions.org/questions/programming-9/implement-a-system-call-for-displaying-the-system-statistics-842707/)

imrrann 11-06-2010 04:32 AM

Implement a System Call for Displaying The System Statistics
 
Hi Experts

I have been assigned to implement a system call that report the system statistics over all memory which are

Total Pages in Active LRU list
Total Pages in Inactive LRU List

Any help / guidance is highly appreciated....Ubuntu 2.6.35

Imran

estabroo 11-06-2010 05:38 AM

Is this information already available in the /proc/meminfo output? That might be a good place to start as well instead of implementing a new system call just extend that output to include what you need if it isn't there. Then any program that needs it can just open that file and read it in, scripts included.


All times are GMT -5. The time now is 07:19 AM.