LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-24-2005, 06:18 AM   #1
arunka
Member
 
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
Help me using kernel_stat fields...


hi all
i want to write a kernel module to measure the total cpu usage time using a kernel module.
For this i found that struct kernel_stat defined in linux/kernel.h can be used.
i don't have much knowledge about the feilds that will help me in getting the information.
Also i am not sure of how the structure can be initialised. is there any API to do this?

Does anyone has idea about this...?

PS: i am using linux 2.4.19.

Thanks in advance

Arun
 
  


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
Two New LQ Profile Fields jeremy LQ Suggestions & Feedback 8 07-12-2005 11:10 PM
inittab fields env Linux - General 2 03-04-2005 12:36 PM
Supressing Fields w/ AWK Rv5 Programming 3 10-19-2004 11:06 AM
compulsory fields masand LQ Suggestions & Feedback 20 09-07-2004 04:33 PM
Browser fields freez? linux_dejan Linux - Software 1 04-11-2004 10:46 AM


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