LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-01-2005, 04:17 AM   #1
pyar
LQ Newbie
 
Registered: Jan 2005
Location: banglore
Posts: 3

Rep: Reputation: 0
help needed


hello friends,
I am new member to this site ,i need help regarding my project i need to use linux kernal API to find system information like memory useage ,cpu utalistation and the hard disk space avalilable using the C++ if any one can send the code it will be grateful
 
Old 02-01-2005, 04:32 AM   #2
pyar
LQ Newbie
 
Registered: Jan 2005
Location: banglore
Posts: 3

Original Poster
Rep: Reputation: 0
help me out

hello friends,
I am new member to this site ,i need help regarding my project i need to use linux kernal API to find system information like memory useage ,cpu utalistation and the hard disk space avalilable using the C++ if any one can send the code it will be grateful
 
Old 02-01-2005, 04:34 AM   #3
pyar
LQ Newbie
 
Registered: Jan 2005
Location: banglore
Posts: 3

Original Poster
Rep: Reputation: 0
help me out
 
Old 02-01-2005, 09:49 AM   #4
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
No one's going to do your homework for you.
 
Old 02-01-2005, 10:16 AM   #5
PBSchmidt
Member
 
Registered: Aug 2004
Location: Aachen, Germany
Distribution: Debian Sarge
Posts: 129

Rep: Reputation: 15
Start here
http://kernelbook.sourceforge.net/kernel-api.html/
I sure cannot spare you from conding yourself. But maybe we misunderstood you, do you perhaps need a tool for showing these states such as gkrellm?

HTH, Peter
 
Old 02-01-2005, 10:51 AM   #6
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Many informaton can be found in the /proc directory.
See "man proc".
 
Old 02-03-2005, 03:44 PM   #7
freeka
Member
 
Registered: Feb 2005
Posts: 57

Rep: Reputation: 15
all this information are stored in /proc just browse the files in it
 
Old 02-03-2005, 04:04 PM   #8
krisealv
Member
 
Registered: Jan 2004
Location: Hareid, Norway
Distribution: Ubuntu
Posts: 111

Rep: Reputation: 15
about proc

you should also read up on sysfs which eventually will replace proc, it is included in 2.6 kernel and above
 
Old 02-03-2005, 04:13 PM   #9
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
for disk space on the system infomation, you should look at:

man getmntent
man getfsent

those API will get you file system and logical volume information.
 
Old 02-03-2005, 04:48 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,374

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
please do not expect people to do your work for you.

please do not ask the same question twice. i have merged your two threads.

please take the time to learn how to use forums effectively and politely.
 
  


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
School project: Packet Reflection bluedevlx Linux - Software 3 01-18-2005 12:36 AM
I need a little help for a school project... Tsuroerusu General 25 12-12-2004 07:34 AM
School project... HLDS Shr00mBoXx Linux - Games 8 06-26-2004 05:31 PM
My school project Growly Linux User Groups (LUG) 1 04-30-2004 04:30 PM
Need help with a school project about Linux ProTeX2003 Linux - General 1 10-08-2003 10:02 AM


All times are GMT -5. The time now is 09:51 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