Hi everyone, I have a problem with getting the memory size. when I use the folloeing:
I get an error saying
(I include sysctl.h) is there any way to get rid of this or any other way to get the memory info in the kernel source code?
Thanks in advance.
Code:
int a=sysctlbyname("hw.physmem", &physmem, &len, NULL, 0);
I get an error saying
Code:
implicit declaration of function sysctlbyname
(I include sysctl.h) is there any way to get rid of this or any other way to get the memory info in the kernel source code?
Thanks in advance.