1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>local_bh_disable()/local_bh_enable() include/linux/interrupt.h</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Unreliable Guide To Hacking The Linux Kernel"><link rel="up" href="common-routines.html" title="Chapter 6. Common Routines"><link rel="prev" href="routines-local-irqs.html" title="local_irq_save()/local_irq_restore() include/linux/irqflags.h"><link rel="next" href="routines-processorids.html" title="smp_processor_id() include/asm/smp.h"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><code class="function">local_bh_disable()</code>/<code class="function">local_bh_enable()</code> 2 <code class="filename">include/linux/interrupt.h</code></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="routines-local-irqs.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Common Routines</th><td width="20%" align="right"> <a accesskey="n" href="routines-processorids.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="routines-softirqs"></a><code class="function">local_bh_disable()</code>/<code class="function">local_bh_enable()</code> 3 <code class="filename">include/linux/interrupt.h</code></h2></div></div></div><p> 4 These routines disable soft interrupts on the local CPU, and 5 restore them. They are reentrant; if soft interrupts were 6 disabled before, they will still be disabled after this pair 7 of functions has been called. They prevent softirqs and tasklets 8 from running on the current CPU. 9 </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="routines-local-irqs.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="common-routines.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="routines-processorids.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><code class="function">local_irq_save()</code>/<code class="function">local_irq_restore()</code> 10 <code class="filename">include/linux/irqflags.h</code> 11  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <code class="function">smp_processor_id</code>() 12 <code class="filename">include/asm/smp.h</code></td></tr></table></div></body></html> 13