LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 05:38 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration