I followed a look at various kernel header files and came across <linux/kernel.h>. Inside is a structure called sysinfo.
I tried to use it out of the box, so to speak, and all the values in the structure returned. I assume that I need to use the poplating function mentioned above do_sysinfo(struct sysinfo *info).
The fact is that I can not find any information that refers to its use. I tried the function out of the box and it failed because it could not be connected. Does anyone have any info on how to use this or why it doesn't work? I am new to this area. If you had any links to good guides / information, that would be great.
source
share