Subject: Re: tsleep() in vfs_shutdown (update)
To: Artur Grabowski <art@stacken.kth.se>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 08/29/2000 07:59:05
On Tue, Aug 29, 2000 at 02:25:56PM +0200, Artur Grabowski wrote:

 > > But was value is curproc when creating a kernel thread ? Can a user process
 > > or a kernel thread create another kernel thread ?
 > 
 > Yes, it works. Don't ask me how I know this, I'm not proud of it.

Well, RAIDframe uses this.  Basically, anything that calls kthread_create()
does this.

Only kthread_create() is allowed to fork non-curproc, and it always forks
proc0.  It's simply a special case, not a general rule.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>