LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 09-11-2006, 08:09 AM   #1
amit_bst
LQ Newbie
 
Registered: May 2006
Posts: 8

Rep: Reputation: 0
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
 
Old 09-11-2006, 08:35 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,390

Rep: Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626Reputation: 2626
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
 
Old 04-22-2009, 05:29 PM   #3
vivekanandan8
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 04-28-2009, 06:17 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,009

Rep: Reputation: 71
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Signaling mechanism in Kernel Thread in kernel 2.6 and 2.4 amit_bst Linux - Kernel 3 07-24-2006 10:21 PM
kernel thread yhus Programming 2 08-04-2005 04:30 PM
obtain pid of a kernel thread ratwings Linux - Software 0 02-11-2005 03:54 PM
Kernel daemon FNC Linux - Networking 6 05-21-2001 08:04 AM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration