mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Kernel thread removal
@ 2006-02-22 17:00 James Yu
  2006-02-22 17:45 ` linux-os (Dick Johnson)
  2006-02-22 17:56 ` Christoph Hellwig
  0 siblings, 2 replies; 3+ messages in thread
From: James Yu @ 2006-02-22 17:00 UTC (permalink / raw)
  To: linux-kernel

How do I remove a kernel thread in kernel mode ?
I write a C-function in one of the Linux source files and create a
kernel thread by invoking kernel_thread() to run the function, like:
"kernel_thread(a1, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGNAL);"
Function a1 simply invokes printk() to output some message on console.
I invoke do_exit(0); at the end of a1, but a1's task_struct still
exists in in task_struct list after its execution.
How do I remove it a1's task_struct upon its completion? I thought
explicitly invoke do_exit() ensures the removal of task_struct?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-22 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 17:00 Kernel thread removal James Yu
2006-02-22 17:45 ` linux-os (Dick Johnson)
2006-02-22 17:56 ` Christoph Hellwig

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®