]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/linux/irq_work.h
Net: ceph: Makefile: remove deprecated kbuild goal definitions
[net-next-2.6.git] / include / linux / irq_work.h
CommitLineData
e360adbe
PZ
1#ifndef _LINUX_IRQ_WORK_H
2#define _LINUX_IRQ_WORK_H
3
4struct irq_work {
5 struct irq_work *next;
6 void (*func)(struct irq_work *);
7};
8
9static inline
10void init_irq_work(struct irq_work *entry, void (*func)(struct irq_work *))
11{
12 entry->next = NULL;
13 entry->func = func;
14}
15
16bool irq_work_queue(struct irq_work *entry);
17void irq_work_run(void);
18void irq_work_sync(struct irq_work *entry);
19
20#endif /* _LINUX_IRQ_WORK_H */