search for: sys_sysinfo

Displaying 1 result from an estimated 1 matches for "sys_sysinfo".

2004 Jul 15
2
getpagesize / libsysfs broken with 0.148
...es as the memory unit all other memory values returned are to be multiplied with. So it's perfectly ok for the linux sysinfo() to return a mem_unit of '1', which is does if the memory available for this machine fits into the counter. For the unbelievers, have a look in kernel/timer.c:sys_sysinfo(). As a quick hack I've added a check for mem_unit==1 and reset the page_size to 4096 on those cases. Naturally, this is not the right fix. The right fix would be to get the values from the kernel headers and/or some magic juju for those machines with variable pagesize. It probably would...