1IDLE(2) Linux Programmer's Manual IDLE(2)
2
3
4
6 idle - make process 0 idle
7
9 #include <unistd.h>
10
11 int idle(void);
12
14 idle() is an internal system call used during bootstrap. It marks the
15 process's pages as swappable, lowers its priority, and enters the main
16 scheduling loop. idle() never returns.
17
18 Only process 0 may call idle(). Any user process, even a process with
19 superuser permission, will receive EPERM.
20
22 idle() never returns for process 0, and always returns -1 for a user
23 process.
24
26 EPERM Always, for a user process.
27
29 Since Linux 2.3.13, this system call does not exist anymore.
30
32 This function is Linux-specific, and should not be used in programs
33 intended to be portable.
34
36 This page is part of release 5.02 of the Linux man-pages project. A
37 description of the project, information about reporting bugs, and the
38 latest version of this page, can be found at
39 https://www.kernel.org/doc/man-pages/.
40
41
42
43Linux 2012-12-31 IDLE(2)