1IDLE(2)                    Linux Programmer's Manual                   IDLE(2)
2
3
4

NAME

6       idle - make process 0 idle
7

SYNOPSIS

9       #include <unistd.h>
10
11       int idle(void);
12

DESCRIPTION

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

RETURN VALUE

22       idle() never returns for process 0, and always returns -1  for  a  user
23       process.
24

ERRORS

26       EPERM  Always, for a user process.
27

VERSIONS

29       Since Linux 2.3.13, this system call does not exist anymore.
30

CONFORMING TO

32       This  function  is  Linux-specific,  and should not be used in programs
33       intended to be portable.
34

COLOPHON

36       This page is part of release 5.04 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)
Impressum