Subject: Re: tsleep() in vfs_shutdown (update)
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 08/28/2000 07:47:38
On Mon, Aug 28, 2000 at 12:18:52PM +0200, Manuel Bouyer wrote:
> fork1() is:
> int fork1(struct proc *p1, int flags, int exitsig, void *stack,
> size_t stacksize, void (*func)(void *), void *arg, register_t *retval,
> struct proc **rnewprocp)
>
> So fork1() can be called with p1 != curproc (p1 may be suspended, but
> not curproc). Now, in the current code nothing may do this, but I can't see
> any reason to dissalow it (otherwise change the interface to remove p1 and
> always use curproc).
Actually, the only thing p1 != curproc is allows is if p1 == &proc0, i.e.
you are creating a kernel thread.
--
-- Jason R. Thorpe <thorpej@zembu.com>