sleeping and waking up a user process from the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux