1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>kstat_irqs_usr</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux generic IRQ handling"><link rel="up" href="intfunctions.html" title="Chapter 10. Internal Functions Provided"><link rel="prev" href="API-kstat-irqs.html" title="kstat_irqs"><link rel="next" href="API-handle-bad-irq.html" title="handle_bad_irq"></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"><span class="phrase">kstat_irqs_usr</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-kstat-irqs.html">Prev</a> </td><th width="60%" align="center">Chapter 10. Internal Functions Provided</th><td width="20%" align="right"> <a accesskey="n" href="API-handle-bad-irq.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-kstat-irqs-usr"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kstat_irqs_usr — 2 Get the statistics for an interrupt 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">unsigned int <b class="fsfunc">kstat_irqs_usr </b>(</code></td><td>unsigned int <var class="pdparam">irq</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1103310156"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>irq</code></em></span></dt><dd><p> 4 The interrupt number 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1103311724"></a><h2>Description</h2><p> 6 Returns the sum of interrupt counts on all cpus since boot for 7 <em class="parameter"><code>irq</code></em>. Contrary to <code class="function">kstat_irqs</code> this can be called from any 8 preemptible context. It's protected against concurrent removal of 9 an interrupt descriptor when sparse irqs are enabled. 10</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-kstat-irqs.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="intfunctions.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-handle-bad-irq.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">kstat_irqs</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">handle_bad_irq</span></td></tr></table></div></body></html> 11