LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-02-2012, 11:20 PM   #1
amitk.gupta09
Member
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration