Re: Sleeping With Interrupts Disabled.

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

 



On Thu, 2005-03-17 at 00:30 -0500, Gopu Bhaskar wrote:
> Is it OK to sleep when interrupts are disabled ?
> The following is the implementation of interruptible_sleep_on in 2.6.10
> Here we see that interrupts are disabled before schedule is called and
> enabled back only when the control comes back. I wanted to know the 
> reason for doing this. And also whether sleeping with interrupts disabled
> has any negetive impact.


you should never use any of these functions. THey're there for legacy
reasons but they are known broken and severely deprecated.



--
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