*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> idle (2)              
Title
Content
Arch
Section
 

IDLE(2)

Contents


NAME    [Toc]    [Back]

       idle - make process 0 idle

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       int idle(void);

DESCRIPTION    [Toc]    [Back]

       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
       super-user permission, will receive EPERM.

RETURN VALUE    [Toc]    [Back]

       idle never returns for process 0, and always  returns  -1  for  a  user
       process.

ERRORS    [Toc]    [Back]

       EPERM  Always, for a user process.

CONFORMING TO    [Toc]    [Back]

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

NOTES    [Toc]    [Back]

       Since 2.3.13 this system call does not exist anymore.



Linux 1.1.46			  1994-08-21			       IDLE(2)
[ Back ]
 Similar pages
Name OS Title
update IRIX Process pending events and/or when-idle handlers
rtprio FreeBSD examine or modify a process realtime or idle priority
daemonize IRIX make a process into a daemon
getppid HP-UX get process, process group and parent process ID.
getpid Tru64 Get the process ID, process group ID, or parent process ID
getpgrp Tru64 Get the process ID, process group ID, or parent process ID
getpgrp HP-UX get process, process group and parent process ID.
getpid HP-UX get process, process group and parent process ID.
getpgrp2 HP-UX get process, process group and parent process ID.
getpgid HP-UX get process, process group and parent process ID.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service