[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A doubt in local_bh_disable
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