xref: /minix3/minix/servers/pm/const.h (revision cfd712b4245f67a5631cc14e950ce43b18455602)
1433d6423SLionel Sambuc /* Constants used by the Process Manager. */
2433d6423SLionel Sambuc 
3433d6423SLionel Sambuc #define NR_PIDS	       30000	/* process ids range from 0 to NR_PIDS-1.
4433d6423SLionel Sambuc 				 * (magic constant: some old applications use
5433d6423SLionel Sambuc 				 * a 'short' instead of pid_t.)
6433d6423SLionel Sambuc 				 */
7433d6423SLionel Sambuc 
8433d6423SLionel Sambuc #define NO_PID	           0	/* pid value indicating no process */
9433d6423SLionel Sambuc #define INIT_PID	   1	/* INIT's process id number */
10433d6423SLionel Sambuc 
11433d6423SLionel Sambuc #define NO_TRACER	   0	/* process is not being traced */
12433d6423SLionel Sambuc 
13910831cbSDavid van Moolenbroek #define NO_EVENTSUB	((char)-1) /* no current process event subscriber */
14910831cbSDavid van Moolenbroek 
15*cfd712b4SDavid van Moolenbroek #define MAX_SECS	( (clock_t) (TMRDIFF_MAX/system_hz) )
16433d6423SLionel Sambuc 				/* max.secs for setitimer() ((2^31-1)/HZ) */
17433d6423SLionel Sambuc #define NR_ITIMERS	   3	/* number of supported interval timers */
18433d6423SLionel Sambuc 
19433d6423SLionel Sambuc #define SEND_PRIORITY      1	/* send current priority queue to scheduler */
20433d6423SLionel Sambuc #define SEND_TIME_SLICE    2    /* send current time slice to scheduler */
21