1idle(2)                       System Calls Manual                      idle(2)
2
3
4

NAME

6       idle - make process 0 idle
7

SYNOPSIS

9       #include <unistd.h>
10
11       [[deprecated]] 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

STANDARDS

29       Linux.
30

HISTORY

32       Removed in Linux 2.3.13.
33
34
35
36Linux man-pages 6.04              2023-03-30                           idle(2)
Impressum