int sysinfo(struct sysinfo *info);
struct sysinfo { long uptime; /* ºÎÆà ÀÌÈÄ Áö³ª°£ ÃÊ´ÜÀ§ ½Ã°£*/ unsigned long loads[3]; /* 1, 5, ±×¸®°í 15 ºÐ ºÎÇÏ Æò±Õ*/ unsigned long totalram; /* »ç¿ëÇÒ ¼ö ÀÖ´Â ÃÑ ¸Þ¸ð¸® Å©±â*/ unsigned long freeram; /* ÀÌ¿ëÇÒ ¼ö ÀÖ´Â ¸Þ¸ð¸® Å©±â*/ unsigned long sharedram; /* °øÀ¯ ¸Þ¸ð¸®ÀÇ ¾ç*/ unsigned long bufferram; /* ¹öÆÛ¿¡ ÀÇÇØ »ç¿ëµÈ ¸Þ¸ð¸®*/ unsigned long totalswap; /* ÃÑ ½º¿Ò °ø°£ÀÇ Å©±â*/ unsigned long freeswap; /* ÀÌ¿ëÇÒ ¼ö ÀÖ´Â ½º¿Ò °ø°£*/ unsigned short procs; /* ÇöÀç ÇÁ·Î¼¼½ºÀÇ ¼ö*/ char _f[22]; /* ±¸Á¶Ã¼¸¦ 64 bytes·Î ä¿î´Ù(pad)*/ };
sysinfo´Â ÀüüÀûÀÎ ½Ã½ºÅÛ Åë°è Á¤º¸¸¦ °¡Á®¿Ã ¼ö ÀÖ´Â °£´ÜÇÑ ¹æ¹ýÀ» Á¦°øÇÑ´Ù. ¶ÇÇÑ /dev/kmem¸¦ Àд°ͺ¸´Ù ÈξÀ ȣȯ¼ºÀÌ ÁÁ´Ù. »ç¿ë ¿¹¸¦ º¼·Á¸é, intro(2)¸¦ ÂüÁ¶Çضó.
¸®´ª½º Ä¿³ÎÀº 0.98.pl6 ÀÌÈÄ¿¡ sysinfo½Ã½ºÅÛ ÄÝÀ» °¡Áö°í ÀÖ´Ù. ¸®´ª½º libc´Â 5.3.5 ÀÌÈÄ¿¡ sysinfo() ·çƾÀ» Æ÷ÇÔÇÏ¿´À¸¸ç glibc¿¡¼´Â 1.9 ÀÌÈÄ¿¡ Æ÷ÇÔÇÏ¿´´Ù.