JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... y and swap usage, as well as the load average. Linux 2.3.16 までは sysinfo () は以下の構造体に情報を入れて返した。 struct sysinfo { long uptime; /* Seconds since boot */ unsigned long loads[3]; /* ... y and swap fields are given in bytes. Linux 2.3.23 (i386)、Linux 2.3.48 (全てのアーキテクチャー) 以降では、構造体は struct sysinfo { long uptime; /* Seconds since boot */ unsigned long loads[3]; /* 1, 5, and 15 minute load averages */ unsigned long tota ... In the above structure, sizes of the memory and swap fields are given as multiples of mem_unit bytes. 返り値 成功すると、 sysinfo () は 0 を返す。 エラーの場合、-1 を返し、 errno にエラーの原因を示す値を設定する。 エラー EFAULT info が有効なアドレスでは ... ... < errno.h > #include < linux/unistd.h > /* for _syscallX macros/related stuff */ #include < linux/kernel.h > /* for struct sysinfo */ _syscall1(int, sysinfo, struct sysinfo *, info); int main(void) { struct sysinfo s_info; int error; error = sysinfo(&s_ ... ... と get_nprocs_conf () が どのように利用できるかを示すものである。 #include < stdlib.h > #include < stdio.h > #include < sys/sysinfo.h > int main(int argc, char *argv[]) { printf("This system has %d processors configured and " "%d processors available.\n" ... ... と get_nprocs_conf () が どのように利用できるかを示すものである。 #include < stdlib.h > #include < stdio.h > #include < sys/sysinfo.h > int main(int argc, char *argv[]) { printf("This system has %d processors configured and " "%d processors available.\n" ... ... ironment variables (see ld-linux.so (8)) and glibc changes other aspects of its behavior. (See also secure_getenv (3).) AT_SYSINFO vDSO のシステムコール関数へのエントリーポイント。すべてのアーキテクチャーで存在するわけではなく、 また必要というわけでもな ... い (例えば x86-64 には存在しない)。 AT_SYSINFO_EHDR 仮想動的共有オブジェクト (vDSO; virtual Dynamic Shared Object) が入ったページのアドレス。 vDSO は、 特定のシステムコー ... ... 見つける vDSO のベースアドレスは、 (存在する場合には) カーネルから各プログラムに初期補助ベクトル ( getauxval (3) 参照) の AT_SYSINFO_EHDR タグ経由で渡される。 vDSO がユーザーのメモリーマップの何か特定の場所にマッピングされると仮定してはならない。 通常新し ... ダム化が行われる。 これは "return-to-libc" 攻撃 を防ぐためにセキュリティ上の理由から行われる。 アーキテクチャーによっては AT_SYSINFO タグもある。 このタグは vsyscall エントリーポイントの場所を知るためだけのものであり、 しばしば省略されるか (利用できない場 ... ... 39 sys_debug_setcontext (2) 2.6.11 PowerPC のみ syscall (2) 1.0 Still available on ARM OABI and MIPS O32 ABI sysfs (2) 1.2 sysinfo (2) 1.0 syslog (2) 1.0 sysmips (2) 2.6.0 MIPS のみ tee (2) 2.6.17 tgkill (2) 2.6 time (2) 1.0 timer_create (2) 2.6 timer_d ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。