LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Help me using kernel_stat fields... (https://www.linuxquestions.org/questions/programming-9/help-me-using-kernel_stat-fields-305435/)

arunka 03-24-2005 06:18 AM

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


All times are GMT -5. The time now is 02:54 AM.