Re: get_pid() question

From: Ralf Baechle (ralf@uni-koblenz.de)
Date: Mon Jun 26 2000 - 06:25:54 EST


On Sun, Jun 25, 2000 at 12:16:23PM +0200, Manfred Spraul wrote:

> Why is the pid value limited to 15 bits on _all_ architectures?
> I read somewhere that libc5-i386 is restricted to signed short, but what
> about the other architectures?

Most of the newer ports don't have this restriction; they use a pid_t
of 32 bits for kernel and libc, that is the range for used pids could be
extended to 0 - 2^31-1. So let's turn the constant 0xffff8000 used in
get_pid() into an architecture specific constant PID_MASK or so.

(Actually I'd like a 64-bit pid_t - makes get_pid() trivial ;-)

  Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:09 EST