From: Juergen Quade <quade@hsnr.de>
To: Zhenyu Wu <y030729@njupt.edu.cn>
Cc: linux-kernel@vger.kernel.org
Subject: Re: about kernel_thread!
Date: Mon, 13 Dec 2004 13:44:26 +0100 [thread overview]
Message-ID: <20041213124426.GA4157@hsnr.de> (raw)
In-Reply-To: <302943559.21891@njupt.edu.cn>
On Mon, Dec 13, 2004 at 09:12:39PM +0800, Zhenyu Wu wrote:
> Hello,
>
> I have some confusions on kernel_thread, so I want to get help.
>
> I want to create a thread in a loadable module, then I used the function
> kernel_thread() in init_module(). Of course, the thread was created, but when I
> remove the module there are errors. I think it is because of the thread I have
> created that have not been killed. So, how can I kill this thread when I remove
> the module?
You can find sample-code here:
http://ezs.kr.hsnr.de/TreiberBuch/Download/TreiberEntwickeln2004261/6-9-kthread.c
Juergen.
next prev parent reply other threads:[~2004-12-13 12:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-13 13:12 about kernel_thread! Zhenyu Wu
2004-12-13 12:31 ` linux-os
2004-12-13 12:44 ` Juergen Quade [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-12-13 13:36 Zhenyu Wu
2004-12-13 13:52 Zhenyu Wu
2004-12-13 13:25 ` linux-os
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=20041213124426.GA4157@hsnr.de \
--to=quade@hsnr.de \
--cc=linux-kernel@vger.kernel.org \
--cc=y030729@njupt.edu.cn \
/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