A doubt in local_bh_disable

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

 



Hi,

Might be very trivial but I have a doubt in local_bh_disable(). Why do we warn
if this function is called from top half  .i.e.

static void __local_bh_disable(unsigned long ip)
 {
         unsigned long flags;

         WARN_ON_ONCE(in_irq());

         raw_local_irq_save(flags);
  --- some more code ---

-- 
Best Regards,
Ranjan

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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