.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) .\" Portions extracted from linux/mm/swap.c: .\" Copyright (C) 1991, 1992 Linus Torvalds .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Modified 21 Aug 1994 by Michael Chastain : .\" Added text about calling restriction (new in kernel 1.1.20 I believe). .\" N.B. calling "idle" from user process used to hang process! .\" Modified Thu Oct 31 14:41:15 1996 by Eric S. Raymond .\" " .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki .\" all rights reserved. .\" Translated Thu Jun 26 20:42:09 JST 1997 .\" by SUTO, Mitsuaki .\" Updated Mon Jan 3 18:16:36 JST 2000 .\" by Kentaro Shirakata .\" .TH IDLE 2 2012\-12\-31 Linux "Linux Programmer's Manual" .SH 名前 idle \- ID 0 のプロセスをアイドル状態にする .SH 書式 \fB#include \fP .sp \fBint idle(void);\fP .SH 説明 \fBidle\fP() はブートストラップ時に使用される、内部システムコールである。 プロセスのページをスワップ可能に設定し、優先度を下げ、メインのスケジュー ル処理のためのループへ移行する。 従って \fBidle\fP() は return することはない。 .PP ID 0 のプロセスのみが \fBidle\fP() を使用することができる。 他のユーザープロセスはたとえそれがスーパーユーザー権限を持っていたとして も \fBEPERM\fP を受け取る。 .SH 返り値 \fBidle\fP() ID 0 のプロセスに対しては return しない。それ以外のユーザープロセスには 常に \-1 を返す。 .SH エラー .TP \fBEPERM\fP ユーザープロセスに対しては、常にこのエラーとなる。 .SH バージョン Linux 2.3.13 以降では、もはやこのシステムコールは存在しない。 .SH 準拠 この関数は Linux 特有であり、移植を意図したプログラムでは 使用すべきでない。 .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。