summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 4bf80ba3..744a14ce 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2,6 +2,7 @@
#ifndef _TOOLS_LINUX_MM_H
#define _TOOLS_LINUX_MM_H
+#include <sys/syscall.h>
#include <linux/types.h>
struct sysinfo {
@@ -20,6 +21,11 @@ struct sysinfo {
__u32 mem_unit; /* Memory unit size in bytes */
};
-extern void si_meminfo(struct sysinfo * val);
+
+
+static inline void si_meminfo(struct sysinfo *val)
+{
+ BUG_ON(syscall(SYS_sysinfo, val));
+}
#endif /* _TOOLS_LINUX_MM_H */