RE: wake up

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

 



On Tue, 2004-11-09 at 17:56 +0530, Nilanjan Roychowdhury wrote:
> 
> >>>oh and never ever use interruptible_sleep_on(); that entire family of
> >>>API's is racy as hell and deprecated. 
> 
> Then what is the solution. Currently I use interruptible_sleep_on() on a
> process context and wake it up from a bottom half. Should I go back to
> Old semaphores and signal the semaphore from the bottom half.

you should use the wait_event type of API, or possibly open coded 
prepare_to_wait()
..
schedule()
..
finish_wait()

code sequence, depending on your code




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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