LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-06-2010, 05:32 AM   #1
imrrann
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

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

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


Reply


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 02:48 PM
Fail to implement system call in Ubuntu distribution. Kunsheng Programming 1 04-01-2009 12:15 AM
how to implement my own system call in madrake LE 2005 jawahar_bits Mandriva 2 02-04-2007 11:10 AM
I am trying implement sleep in read system call problem sbharsha Programming 1 09-19-2005 12:48 AM


All times are GMT -5. The time now is 05:00 PM.

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