Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-02-2012, 11:20 PM   #1
Registered: Aug 2011
Location: pune
Posts: 37

Rep: Reputation: Disabled
Kthread related query

I Have some dobut about api which we use for kthread.
(1) when we set the state of a process TASK_INTERRUPTIBLE using some api like set_task_state()...then whether process execution stop or we need to call schedule() function to put this process to sleep.

(2) Kthread_stop() function wake to whom means weather it can quake any thread who is put on wait using some wait_event_interruptble api or it only wake to those thread who went to sleep using kthread_should_stop().

(3) I put a thread on wait for a condition but it is waking up even though that condition becomes true.i am calling a ioctl() from mine user space program,then core is calling mine driver ioctl function,in which i am updating a variable value to one (for which thread is waiting) and that is not waking up....

should i need to call wake_up() explicitly in my driver ioctl function..??

Thanks in Advanced


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
An Apache related query saagar Linux - Newbie 1 03-25-2011 02:23 AM
FSCK related query tuxianD Solaris / OpenSolaris 1 02-28-2011 05:23 AM
Xterm related query mr.blacklisted Linux - Server 1 11-17-2010 09:36 AM
Query related to sudo? your_shadow03 Linux - Newbie 2 04-22-2009 12:21 AM
shell related query !!!!!!!!!!! iacharyya Linux - General 10 06-09-2008 06:39 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:42 PM.

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