LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   daemon kernel thread (https://www.linuxquestions.org/questions/linux-kernel-70/daemon-kernel-thread-482397/)

amit_bst 09-11-2006 08:09 AM

daemon kernel thread
 
Hi,
I want to create a daemon kernel thread in Linux 2.6.14. Which function should I use [kernel_thread Or kthread_create]? and What Flag should I pass while creating the thread?

Regards,

Amit

jeremy 09-11-2006 08:35 AM

Moved: This thread is more suitable in Linux - Kernel and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy

vivekanandan8 04-22-2009 05:29 PM

kthreadd for linux kernel daemon
 
Hi,
in the latest linux kernel 2.6 , all the device drivers is under the control of kThreadd having process id 2, more info gnudeveloper.com

nini09 04-28-2009 06:17 PM

Two functions, kthread_run or kthread_create, can be used. The kthread_run call kthread_create to create a new thread and the new thread is waked up right away. See include/linux/kthread.h


All times are GMT -5. The time now is 02:26 PM.