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
|