Subject: Re: Uh, kthread_wait()?
To: None <email@example.com>
From: Jason R Thorpe <firstname.lastname@example.org>
Date: 02/12/2003 22:19:14
On Wed, Feb 12, 2003 at 11:52:33PM -0500, email@example.com 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 <firstname.lastname@example.org>