tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Missing rump_kthread_destroy() ?



On Sun, 19 Apr 2015, Antti Kantee wrote:

Is there a reason for not providing kthread_destroy()?  How difficult
would it be to add it?

The right thing to use is kthread_exit().

Doesn't kthread_exit() need to be called from within the victim/target ?

Would it be "reasonable" (for some value thereof) for the module cleanup routine to set a flag "please_exit" and then call kthread_join(). Then the target thread can check the flag and exit if set.





-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index