Re: patch for CLONE_PID enhancements to clone()

H. Peter Anvin (hpa@transmeta.com)
7 Oct 1997 19:09:59 GMT


Followup to: <343A563F.52639539@accessv.com>
By author: Peeter Joot <peeter@accessv.com>
In newsgroup: linux.dev.kernel
>
> I have also added an 'int tid' field to task_struct for holding the
> thread id. This seemed much simpler than encoding the tid in the upper
> pid bits, and doesn't break any experimental code that is currently
> using those bits for other stuff. Within process_struct are also a few
> new fields that weren't in task_struct: last_tid, next_safe, count,
> and pslock.
>

Use tid's in the same number space as pid's. That way you can extend
the existing syscalls in a very clean fashion.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables