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 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\" Modified 21 Aug 1994 by Michael Chastain <mec@shell.portal.com>:
8 .\" Added text about calling restriction (new in kernel 1.1.20 I believe).
9 .\" N.B. calling "idle" from user process used to hang process!
10 .\" Modified Thu Oct 31 14:41:15 1996 by Eric S. Raymond <esr@thyrsus.com>
12 .TH IDLE 2 2022-09-09 "Linux man-pages (unreleased)"
14 idle \- make process 0 idle
17 .B #include <unistd.h>
23 is an internal system call used during bootstrap.
24 It marks the process's pages as swappable, lowers its priority,
25 and enters the main scheduling loop.
29 Only process 0 may call
31 Any user process, even a process with superuser permission,
36 never returns for process 0, and always returns \-1 for a user process.
40 Always, for a user process.
42 Since Linux 2.3.13, this system call does not exist anymore.
44 This function is Linux-specific, and should not be used in programs
45 intended to be portable.