OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / idle.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\" Portions extracted from linux/mm/swap.c:
5 .\"                Copyright (C) 1991, 1992  Linus Torvalds
6 .\"
7 .\" Permission is granted to make and distribute verbatim copies of this
8 .\" manual provided the copyright notice and this permission notice are
9 .\" preserved on all copies.
10 .\"
11 .\" Permission is granted to copy and distribute modified versions of this
12 .\" manual under the conditions for verbatim copying, provided that the
13 .\" entire resulting derived work is distributed under the terms of a
14 .\" permission notice identical to this one.
15 .\"
16 .\" Since the Linux kernel and libraries are constantly changing, this
17 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
18 .\" responsibility for errors or omissions, or for damages resulting from
19 .\" the use of the information contained herein.  The author(s) may not
20 .\" have taken the same level of care in the production of this manual,
21 .\" which is licensed free of charge, as they might when working
22 .\" professionally.
23 .\"
24 .\" Formatted or processed versions of this manual, if unaccompanied by
25 .\" the source, must acknowledge the copyright and authors of this work.
26 .\"
27 .\" Modified 21 Aug 1994 by Michael Chastain <mec@shell.portal.com>:
28 .\"   Added text about calling restriction (new in kernel 1.1.20 I believe).
29 .\"   N.B. calling "idle" from user process used to hang process!
30 .\" Modified Thu Oct 31 14:41:15 1996 by Eric S. Raymond <esr@thyrsus.com>
31 .\" "
32 .\"
33 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
34 .\"         all rights reserved.
35 .\" Translated Thu Jun 26 20:42:09 JST 1997
36 .\"         by SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
37 .\" Updated Mon Jan  3 18:16:36 JST 2000
38 .\"         by Kentaro Shirakata <argrath@yo.rim.or.jp>
39 .\"
40 .\"WORD:        Linux-specific          Linux ÆÃÍ­
41 .\"WORK:        portable                °Ü¿¢
42 .\"
43 .TH IDLE 2 1994-08-21 "Linux" "Linux Programmer's Manual"
44 .\"O .SH NAME
45 .SH Ì¾Á°
46 .\"O idle \- make process 0 idle
47 idle \- ID 0 ¤Î¥×¥í¥»¥¹¤ò¥¢¥¤¥É¥ë¾õÂ֤ˤ¹¤ë
48 .\"O .SH SYNOPSIS
49 .SH ½ñ¼°
50 .B #include <unistd.h>
51 .sp
52 .B int idle(void);
53 .\"O .SH DESCRIPTION
54 .SH ÀâÌÀ
55 .\"O .BR idle ()
56 .\"O is an internal system call used during bootstrap.
57 .\"O It marks the process's pages as swappable, lowers its priority,
58 .\"O and enters the main scheduling loop.
59 .\"O .BR idle ()
60 .\"O never returns.
61 .BR idle ()
62 ¤Ï¥Ö¡¼¥È¥¹¥È¥é¥Ã¥×»þ¤Ë»ÈÍѤµ¤ì¤ë¡¢ÆâÉô¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ç¤¢¤ë¡£
63 ¥×¥í¥»¥¹¤Î¥Ú¡¼¥¸¤ò¥¹¥ï¥Ã¥×²Äǽ¤ËÀßÄꤷ¡¢Í¥ÀèÅÙ¤ò²¼¤²¡¢¥á¥¤¥ó¤Î¥¹¥±¥¸¥å¡¼
64 ¥ë½èÍý¤Î¤¿¤á¤Î¥ë¡¼¥×¤Ø°Ü¹Ô¤¹¤ë¡£
65 ½¾¤Ã¤Æ
66 .BR idle ()
67 ¤Ï return ¤¹¤ë¤³¤È¤Ï¤Ê¤¤¡£
68 .PP
69 .\"O Only process 0 may call
70 .\"O .BR idle ().
71 .\"O Any user process, even a process with superuser permission,
72 .\"O will receive
73 .\"O .BR EPERM .
74 ID 0 ¤Î¥×¥í¥»¥¹¤Î¤ß¤¬
75 .BR idle ()
76 ¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
77 ¾¤Î¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤Ï¤¿¤È¤¨¤½¤ì¤¬¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¸¢¸Â¤ò»ý¤Ã¤Æ¤¤¤¿¤È¤·¤Æ
78 ¤â
79 .B EPERM
80 ¤ò¼õ¤±¼è¤ë¡£
81 .\"O .SH "RETURN VALUE"
82 .SH ÊÖ¤êÃÍ
83 .\"O .BR idle ()
84 .\"O never returns for process 0, and always returns \-1 for a user process.
85 .BR idle ()
86 ID 0 ¤Î¥×¥í¥»¥¹¤ËÂФ·¤Æ¤Ï return ¤·¤Ê¤¤¡£¤½¤ì°Ê³°¤Î¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤Ë¤Ï
87 ¾ï¤Ë \-1 ¤òÊÖ¤¹¡£
88 .\"O .SH ERRORS
89 .SH ¥¨¥é¡¼
90 .TP
91 .B EPERM
92 .\"O Always, for a user process.
93 ¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤Ë¤Ï¾ï¤Ë¤³¤ÎÃͤò¥»¥Ã¥È¤¹¤ë¡£
94 .\"O .SH VERSIONS
95 .SH ¥Ð¡¼¥¸¥ç¥ó
96 .\"O Since 2.3.13 this system call does not exist anymore.
97 2.3.13 °Ê¹ß¡¢¤â¤Ï¤ä¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¸ºß¤·¤Ê¤¤¡£
98 .\"O .SH "CONFORMING TO"
99 .SH ½àµò
100 .\"O This function is Linux-specific, and should not be used in programs
101 .\"O intended to be portable.
102 ¤³¤Î´Ø¿ô¤Ï Linux ÆÃÍ­¤Î´Ø¿ô¤Ç¤¢¤ê¡¢°Ü¿¢À­¤ò»ý¤¿¤»¤¿¤¤¥×¥í¥°¥é¥à¤Ë¤Ï»È
103 ÍѤ¹¤Ù¤­¤Ç¤Ê¤¤¡£