From: Russell King <rmk@arm.linux.org.uk>
To: Nikita Danilov <Nikita@Namesys.COM>
Cc: Linux Kernel Mailing List <Linux-Kernel@Vger.Kernel.ORG>
Subject: Re: kernel thread exit race
Date: Wed, 7 Aug 2002 10:38:19 +0100 [thread overview]
Message-ID: <20020807103819.B5934@flint.arm.linux.org.uk> (raw)
In-Reply-To: <15696.59115.395706.489896@laputa.namesys.com>; from Nikita@Namesys.COM on Wed, Aug 07, 2002 at 01:22:51PM +0400
On Wed, Aug 07, 2002 at 01:22:51PM +0400, Nikita Danilov wrote:
> what is the politically correct way to exit from a kernel thread daemon
> without module unload races?
You need to use the completion stuff (see include/linux/completion.h)
Specifically complete_and_exit(), which is in include/linux/kernel.h
(for some weird reason).
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
next prev parent reply other threads:[~2002-08-07 9:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-07 9:22 Nikita Danilov
2002-08-07 9:38 ` Russell King [this message]
2002-08-07 11:18 ` Alan Cox
2002-08-07 10:05 ` Nikita Danilov
2002-08-07 12:11 ` Alan Cox
2002-08-07 11:30 ` Nikita Danilov
2002-08-07 12:12 ` Russell King
2002-08-07 13:22 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020807103819.B5934@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=Linux-Kernel@Vger.Kernel.ORG \
--cc=Nikita@Namesys.COM \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®