Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-06-2010, 04:32 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 8

Rep: Reputation: 0
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

Old 11-06-2010, 05:38 AM   #2
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SOS: how to implement a system call in Linux sunnyhay Linux - Software 3 12-05-2009 01:48 PM
Fail to implement system call in Ubuntu distribution. Kunsheng Programming 1 03-31-2009 11:15 PM
how to implement my own system call in madrake LE 2005 jawahar_bits Mandriva 2 02-04-2007 10:10 AM
I am trying implement sleep in read system call problem sbharsha Programming 1 09-18-2005 11:48 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration