using get_system_info() - obtaining system load averages

kamal kc kamal_ckk at yahoo.com
Mon Jan 9 19:14:54 PST 2006


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 



More information about the freebsd-hackers mailing list