1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct irqaction</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="structs.html" title="Chapter&#160;8.&#160;Structures"><link rel="prev" href="API-enum-irq-gc-flags.html" title="enum irq_gc_flags"><link rel="next" href="API-struct-irq-affinity-notify.html" title="struct irq_affinity_notify"></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">struct irqaction</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-enum-irq-gc-flags.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;8.&#160;Structures</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-irq-affinity-notify.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-irqaction"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct irqaction &#8212; 
2  per interrupt action descriptor
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct irqaction {
5  irq_handler_t handler;
6  void * dev_id;
7  void __percpu * percpu_dev_id;
8  struct irqaction * next;
9  irq_handler_t thread_fn;
10  struct task_struct * thread;
11  unsigned int irq;
12  unsigned int flags;
13  unsigned long thread_flags;
14  unsigned long thread_mask;
15  const char * name;
16  struct proc_dir_entry * dir;
17};  </pre></div><div class="refsect1"><a name="idp1103050284"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">handler</span></dt><dd><p>
18interrupt handler function
19      </p></dd><dt><span class="term">dev_id</span></dt><dd><p>
20cookie to identify the device
21      </p></dd><dt><span class="term">percpu_dev_id</span></dt><dd><p>
22cookie to identify the device
23      </p></dd><dt><span class="term">next</span></dt><dd><p>
24pointer to the next irqaction for shared interrupts
25      </p></dd><dt><span class="term">thread_fn</span></dt><dd><p>
26interrupt handler function for threaded interrupts
27      </p></dd><dt><span class="term">thread</span></dt><dd><p>
28thread pointer for threaded interrupts
29      </p></dd><dt><span class="term">irq</span></dt><dd><p>
30interrupt number
31      </p></dd><dt><span class="term">flags</span></dt><dd><p>
32flags (see IRQF_* above)
33      </p></dd><dt><span class="term">thread_flags</span></dt><dd><p>
34flags related to <em class="parameter"><code>thread</code></em>
35      </p></dd><dt><span class="term">thread_mask</span></dt><dd><p>
36bitmask for keeping track of <em class="parameter"><code>thread</code></em> activity
37      </p></dd><dt><span class="term">name</span></dt><dd><p>
38name of the device
39      </p></dd><dt><span class="term">dir</span></dt><dd><p>
40pointer to the proc/irq/NN/name entry
41      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-enum-irq-gc-flags.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="structs.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-irq-affinity-notify.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">enum irq_gc_flags</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct irq_affinity_notify</span></td></tr></table></div></body></html>
42