idle (2)
Leading comments
Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) Portions extracted from linux/mm/swap.c: Copyright (C) 1991, 1992 Linus Torvalds %%%LICENSE_START(VERBATIM) Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting de...
NAME
idle - make process 0 idleSYNOPSIS
#include <unistd.h>int idle(void);
DESCRIPTION
idle() is an internal system call used during bootstrap. It marks the process's pages as swappable, lowers its priority, and enters the main scheduling loop. idle() never returns.Only process 0 may call idle(). Any user process, even a process with superuser permission, will receive EPERM.
RETURN VALUE
idle() never returns for process 0, and always returns -1 for a user process.ERRORS
- EPERM
- Always, for a user process.