irq.c File Reference

Go to the source code of this file.

Classes

struct  dde_irq
 IRQ handling data. More...

Functions

static void irq_thread_init (void *p)
static void irq_handler (void *arg)
static int claim_irq (struct irqaction *action)
 Claim IRQ.
static struct irqaction * release_irq (unsigned irq_num, void *dev_id)
 Free previously claimed IRQ.
int request_irq (unsigned int irq, irq_handler_t handler, unsigned long flags, const char *dev_name, void *dev_id)
 Request interrupt.
void free_irq (unsigned int irq, void *dev_id)
 Release Interrupt.
void disable_irq (unsigned int irq)
void disable_irq_nosync (unsigned int irq)
void enable_irq (unsigned int irq)

Variables

irq_cpustat_t irq_stat [CONFIG_NR_CPUS]
static struct dde_irqused_irqs
 IRQ handling data.
ddekit_sem_tdde_softirq_sem


Function Documentation

static int claim_irq ( struct irqaction *  action  )  [static]

Claim IRQ.

Returns:
usage counter or negative error code
FIXME list locking FIXME are there more races?

Definition at line 80 of file irq.c.

void disable_irq ( unsigned int  irq  ) 

Definition at line 228 of file irq.c.

void disable_irq_nosync ( unsigned int  irq  ) 

Definition at line 233 of file irq.c.

void enable_irq ( unsigned int  irq  ) 

Definition at line 244 of file irq.c.

void free_irq ( unsigned int  irq,
void *  dev_id 
)

Release Interrupt.

Parameters:
irq interrupt number
dev_id cookie passed back to handler

Definition at line 220 of file irq.c.

static void irq_handler ( void *  arg  )  [static]

Definition at line 46 of file irq.c.

static void irq_thread_init ( void *  p  )  [static]

Definition at line 41 of file irq.c.

static struct irqaction* release_irq ( unsigned  irq_num,
void *  dev_id 
) [static, read]

Free previously claimed IRQ.

Returns:
usage counter or negative error code

Definition at line 130 of file irq.c.

int request_irq ( unsigned int  irq,
irq_handler_t  handler,
unsigned long  flags,
const char *  dev_name,
void *  dev_id 
)

Request interrupt.

Parameters:
irq interrupt number
handler interrupt handler -> top half
flags interrupt handling flags (SA_SHIRQ, ...)
dev_name device name
dev_id cookie passed back to handler
Returns:
0 on success; error code otherwise
Todo:
FIXME consider locking!

Definition at line 190 of file irq.c.


Variable Documentation

Definition at line 12 of file softirq.c.

irq_cpustat_t irq_stat[CONFIG_NR_CPUS]

Definition at line 24 of file irq.c.

struct dde_irq * used_irqs [static]

IRQ handling data.


Generated on Wed Apr 11 06:39:15 2012 for DDE - The L4 Device Driver Environment by  doxygen 1.5.6