Subject: Re: tsleep() in vfs_shutdown (update)
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Artur Grabowski <art@dynarc.se>
List: tech-kern
Date: 08/28/2000 14:30:35
Manuel Bouyer <bouyer@antioche.lip6.fr> writes:
> On Mon, Aug 28, 2000 at 08:12:45AM -0400, Bill Sommerfeld wrote:
> > This logic is fallacious. Syscall functions take a proc "p" as their
> > third argument; however, they're not necessarily going to work
> > correctly if p != curproc. On smp systems, evaluating "curproc" may
> > be expensive; bsd4.4 started passing curproc around explicitly in the
> > in-kernel interfaces. This is no different.
>
> Ok, so the question remain: does fork1() currently work for p1 != curproc ?
Yes it does. It's necessary for the kthread interface (see kthread_create).
//art