archive mirror
 help / color / mirror / Atom feed
* pid_max ?
@ 2003-07-30  7:53 Frederick, Fabian
  2003-07-31 21:23 ` William Lee Irwin III
  0 siblings, 1 reply; 2+ messages in thread
From: Frederick, Fabian @ 2003-07-30  7:53 UTC (permalink / raw)
  To: Linux-Kernel (E-mail)


	I was looking at pid.c file and can't understand pid_max usage.
It's defined as integer (signed) =PID_MAX_DEFAULT (which is 0x8000 (on old
arch, integer max positive value isn't 32767 ? so 0x8000 -> -32768).

	In alloc_pidmap, 'if (pid>=pid_max)' should be in that case always
true so pid=RESERVED_PIDS which is 300 (?).Why not use pid>PID_MAX_DEFAULT
there and forget the pid_max definition ? and why do we have that '300'
value ?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-31 21:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-30  7:53 pid_max ? Frederick, Fabian
2003-07-31 21:23 ` William Lee Irwin III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).