sleeping and waking up a user process from the kernel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: sleeping and waking up a user process from the kernel
- From: "Devvrat Tripathi" <tripathidevvrat@xxxxxxxxx>
- Date: Mon, 2 Jul 2007 15:44:25 +0200
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]