Add linux-next specific files for 20110831
[linux-2.6/next.git] / include / linux / irq_work.h
blob4fa09d4d0b71dd2ac994979d9f91f3ac2788f675
1 #ifndef _LINUX_IRQ_WORK_H
2 #define _LINUX_IRQ_WORK_H
4 struct irq_work {
5 struct irq_work *next;
6 void (*func)(struct irq_work *);
7 };
9 static inline
10 void init_irq_work(struct irq_work *entry, void (*func)(struct irq_work *))
12 entry->next = NULL;
13 entry->func = func;
16 bool irq_work_queue(struct irq_work *entry);
17 void irq_work_run(void);
18 void irq_work_sync(struct irq_work *entry);
20 #endif /* _LINUX_IRQ_WORK_H */