Rev | Author | # | Line |
---|---|---|---|
1 | perry | 1 | !!NAME |
2 | PerryLorier | 2 | idle - make process 0 idle |
1 | perry | 3 | |
4 | !!SYNOPSIS | ||
5 | |||
2 | PerryLorier | 6 | __#include <unistd.h>__ |
7 | __int idle(void);__ | ||
1 | perry | 8 | !!DESCRIPTION |
9 | |||
2 | PerryLorier | 10 | __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. |
1 | perry | 11 | |
2 | PerryLorier | 12 | Only process 0 may call __idle__. Any user process, even a process with super-user permission, will receive [EPERM]. |
1 | perry | 13 | |
14 | !!RETURN VALUE | ||
2 | PerryLorier | 15 | idle(2) never returns for process 0, and always returns -1 for a user process. |
1 | perry | 16 | |
17 | !!ERRORS | ||
2 | PerryLorier | 18 | ;[EPERM]: Always, for a user process. |
1 | perry | 19 | |
20 | !!CONFORMING TO | ||
2 | PerryLorier | 21 | This function is Linux-specific, and should not be used in programs intended to be portable. |
1 | perry | 22 | |
23 | !!NOTES | ||
2 | PerryLorier | 24 | Since 2.3.13 this system call does not exist anymore. |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 6 times)