PDA

View Full Version : Write Linux kernel module to collect data from the kernel


rcbandit
13th September 2011, 08:40 AM
Hi,
I want to write a Linux kernel module which collects the CPU, RAM and HDD load. I can write a simple kernel module but I don't have any idea where where to find the data from the kernel I need. Can you help me and point me where I can find in the kernel those data?

Regards
Peter

flyingfsck
13th September 2011, 09:43 AM
Uhmm, you mean like the utilities ps, top and htop already do?

rcbandit
13th September 2011, 10:44 AM

Yes. But /proc in my case is not a solution