1 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
2 .\" Portions extracted from linux/mm/swap.c:
3 .\" Copyright (C) 1991, 1992 Linus Torvalds
5 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date. The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein. The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
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>
32 .TH IDLE 2 2012-12-31 "Linux" "Linux Programmer's Manual"
34 idle \- make process 0 idle
36 .B #include <unistd.h>
41 is an internal system call used during bootstrap.
42 It marks the process's pages as swappable, lowers its priority,
43 and enters the main scheduling loop.
47 Only process 0 may call
49 Any user process, even a process with superuser permission,
54 never returns for process 0, and always returns \-1 for a user process.
58 Always, for a user process.
60 Since Linux 2.3.13, this system call does not exist anymore.
62 This function is Linux-specific, and should not be used in programs
63 intended to be portable.