irq.c File Reference
Go to the source code of this file.
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 |
) |
|
| void disable_irq_nosync |
( |
unsigned int |
irq |
) |
|
| void enable_irq |
( |
unsigned int |
irq |
) |
|
| 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 24 of file irq.c.