The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to compile from source code? wrapster UNIX and Linux Applications 1 05-27-2008 01:03 PM
source code for linux naren_chella Linux 2 03-06-2006 09:56 PM
source code ASCII to HEx Thippeswamy Linux 1 01-30-2006 10:11 PM
source code of dbx.c Sacchi High Level Programming 0 04-07-2004 06:26 AM
SCCS (Source Code) Mary UNIX for Dummies Questions & Answers 3 03-18-2002 12:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-13-2002
Registered User
 

Join Date: Mar 2002
Posts: 3
vmstat source code

i am looking for vmstat source code or a listing of the kernel symbols that vmstat uses in the knlist subroutine. Interested in getting vmstat stats from a c program using knlist subroutine, but i dont know what the names of the kernel symbols are that i need to access.

thanks in advance:
Reply With Quote
Forum Sponsor
  #2  
Old 03-14-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
For what kernel? Open source stuff is easy to find by definition:
http://www.freebsd.org/cgi/cvsweb.cg...sr.bin/vmstat/
http://www.openbsd.org/cgi-bin/cvswe...sr.bin/vmstat/
http://lxr.linux.no/source/

Any particular kernel / Unix variant / version?
Reply With Quote
  #3  
Old 03-19-2002
Registered User
 

Join Date: Mar 2002
Posts: 3
aix 4.3.3.0

the knlist function seems simple enough to use, but i dont know the name of the kernel symbol for idle time. i've seen examples of the knlist subroutine used to get "ncpus" which i assume is number of cpus on the machine. a list of kernel symbols for aix would be helpful. thanx again.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0