OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / sysinfo.2
1 .\" -*- nroff -*-
2 .\"
3 .\" Copyright (C) 1993 by Dan Miner (dminer@nyx.cs.du.edu)
4 .\"
5 .\"  Permission is granted to freely distribute or modify this file
6 .\"  for the purpose of improving Linux or its documentation efforts.
7 .\"  If you modify this file, please put a date stamp and HOW you
8 .\"  changed this file.  Thanks.   -DM
9 .\"
10 .\" Modified Sat Jul 24 12:35:12 1993 by Rik Faith <faith@cs.unc.edu>
11 .\" Modified Tue Oct 22 22:29:51 1996 by Eric S. Raymond <esr@thyrsus.com>
12 .\" Modified Mon Aug 25 16:06:11 1997 by Nicolas Lichtmaier <nick@debian.org>
13 .\"
14 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
15 .\"         all rights reserved.
16 .\" Translated Tue Mar  4 00:04:15 JST 1997
17 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
18 .\" Modified Mon Sep 23 21:56:40 JST 2000
19 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
20 .\"
21 .\"WORD:        library                 ¥é¥¤¥Ö¥é¥ê
22 .\"WORD:        statistic               Åý·×
23 .\"WORD:        pointer                 ¥Ý¥¤¥ó¥¿¡¼
24 .\"WORD:        prototype               ·¿Àë¸À
25 .\"
26 .TH SYSINFO 2 2007-11-15 "Linux" "Linux Programmer's Manual"
27 .SH Ì¾Á°
28 sysinfo \- ¥·¥¹¥Æ¥àÁ´ÂΤÎÅý·×¾ðÊó¤òÊÖ¤¹¡£
29 .SH ½ñ¼°
30 .B #include <sys/sysinfo.h>
31 .sp
32 .BI "int sysinfo(struct sysinfo *" info );
33 .SH ÀâÌÀ
34 Linux 2.3.16 ¤Þ¤Ç¤Ï
35 .BR sysinfo ()
36 ¤Ï°Ê²¼¤Î¹½Â¤ÂΤ˾ðÊó¤òÆþ¤ì¤ÆÊÖ¤¹¡£
37
38 .nf
39 .in +4n
40 struct sysinfo {
41     long uptime;             /* Seconds since boot */
42     unsigned long loads[3];  /* 1, 5, and 15 minute load averages */
43     unsigned long totalram;  /* Total usable main memory size */
44     unsigned long freeram;   /* Available memory size */
45     unsigned long sharedram; /* Amount of shared memory */
46     unsigned long bufferram; /* Memory used by buffers */
47     unsigned long totalswap; /* Total swap space size */
48     unsigned long freeswap;  /* swap space still available */
49     unsigned short procs;    /* Number of current processes */
50     char _f[22];             /* Pads structure to 64 bytes */
51 };
52 .in
53 .fi
54 .PP
55 ¤³¤³¤Ç¥Ð¥¤¥Èñ°Ì¤ÇÍ¿¤¨¤é¤ì¤ë¡£
56
57 Linux 2.3.23 (i386)¡¢2.3.48 (Á´¤Æ¤Î¥¢¡¼¥­¥Æ¥¯¥Á¥ã) ¤«¤é¤Ï¹½Â¤ÂΤÏ
58
59 .nf
60 .in +4n
61 struct sysinfo {
62     long uptime;             /* Seconds since boot */
63     unsigned long loads[3];  /* 1, 5, and 15 minute load averages */
64     unsigned long totalram;  /* Total usable main memory size */
65     unsigned long freeram;   /* Available memory size */
66     unsigned long sharedram; /* Amount of shared memory */
67     unsigned long bufferram; /* Memory used by buffers */
68     unsigned long totalswap; /* Total swap space size */
69     unsigned long freeswap;  /* swap space still available */
70     unsigned short procs;    /* Number of current processes */
71     unsigned long totalhigh; /* Total high memory size */
72     unsigned long freehigh;  /* Available high memory size */
73     unsigned int mem_unit;   /* Memory unit size in bytes */
74     char _f[20\-2*sizeof(long)\-sizeof(int)]; /* Padding for libc5 */
75 };
76 .in
77 .fi
78 .PP
79 ¤È¤Ê¤ê¡¢Â礭¤µ¤Ï \fImem_unit\fP ¥Ð¥¤¥È¤ÎÇÜ¿ô¤ÇÍ¿¤¨¤é¤ì¤ë¡£
80
81 .BR sysinfo ()
82 ¤Ï¥·¥¹¥Æ¥àÁ´ÂΤÎÅý·×¤ò¼èÆÀ¤¹¤ë´Êñ¤ÊÊýË¡¤òÄ󶡤¹¤ë¡£
83 ¤³¤ì¤Ï \fI/dev/kmem\fP ¤òÆɤà¤è¤ê¤â°Ü¿¢À­¤Î¹â¤¤ÊýË¡¤Ç¤¢¤ë¡£
84 .SH ÊÖ¤êÃÍ
85 À®¸ù¤·¤¿¾ì¹ç¤Ï¥¼¥í¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Ê¤é¤Ð \-1 ¤¬ÊÖ¤µ¤ì¡¢
86 .I errno
87 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
88 .SH ¥¨¥é¡¼
89 .TP
90 .B EFAULT
91 .I sysinfo ¹½Â¤ÂÎ
92 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤¬ÉÔÀµ¤Ç¤¢¤ë¡£
93 .SH ½àµò
94 ¤³¤Î´Ø¿ô¤Ï Linux ÆÃÍ­¤Ç¤¢¤ê¡¢°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç¤Ï
95 »ÈÍѤ·¤Æ¤Ï¤¤¤±¤Ê¤¤¡£
96 .sp
97 Linux ¥«¡¼¥Í¥ë¤Ï 0.98.pl6 ¤«¤é
98 .BR sysinfo ()
99 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»ý¤Ã¤Æ¤¤¤ë¡£
100 Linux ¤Î libc ¤Ï 5.3.5 ¤è¤ê¡¢glibc ¤Ç¤Ï 1.90 ¤è¤ê
101 .BR sysinfo ()
102 ¥ë¡¼¥Á¥ó¤ò´Þ¤ó¤Ç¤¤¤ë¡£
103 .SH ´ØÏ¢¹àÌÜ
104 .BR proc (5)