Subject: Re: Uh, kthread_wait()?
To: None <>
From: Jason R Thorpe <>
List: tech-kern
Date: 02/12/2003 22:19:14
On Wed, Feb 12, 2003 at 11:52:33PM -0500, wrote:

 > Why is there no kthread_wait() call in the kernel?

I guess no one ever needed one before :-)

 > If I'm running in the kernel and want to know when a kthread has
 > actually ended what are my options?

Well, you could use a two-bit handshake for "exit" and "exited".

 > While I'm asking, why are there no calls to destroy locks? I can
 > create locks but I can't destroy them? Why not? Even if destroying
 > a lock is as simple as zeroing it out, wouldn't a call to do this
 > be a good place to check for errors?

For lockmgr locks there is LK_DRAIN...

        -- Jason R. Thorpe <>