[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sleeping and waking up a user process from the kernel
How do you make a use process go to sleep and then wake it up again from the kernel. I did this in a module
set_current_state(TASK_INTERRUPTIBLE)
if(condn)
schedule()
and then in some other part of the module
if(cond2)
wake_up_process(the same process)
but when i run the user space process it says segmentation fault. Can anyone explain how to do this. An example will be of great help
regards
devvrat