Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2006 19:14:53 -0800 (PST)
From:      kamal kc <kamal_ckk@yahoo.com>
To:        freebsd <freebsd-hackers@freebsd.org>
Subject:   using get_system_info() - obtaining system load averages
Message-ID:  <20060110031453.89250.qmail@web30004.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help
dear everybody,

i want to use the routine get_system_info() to get the
load 
averages of the cpu. i found it that top uses it.

but i do not know which object files do i need to link
it to 
my program. also the struct system_info is defined
in the machine.h of the /usr/src/contrib/top. do i
need
to include it or is there another header defining it.

actually i want to know the load averages when my
program 
runs in the kernel mode. 

is there other methods of obtaining the sytem load
averages ???  

thanks,
kamal 


		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060110031453.89250.qmail>