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

Re: kernel_thread



On Thu, 10 May 2001, mohan kumar wrote:

> {
>   printk("am there\n");
> }
> int init_module()
> { 
>   kernel_thread(thread,NULL,CLONE_VM|CLONE_FS);

Have a look at oprofile.c from oprofile.sourceforge.net; that
creates a kernel thread and (hopefully) does the right cleanup
necessary.

john

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/