Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/interrupt.h
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | struct tasklet_struct { | ||||
unsigned long data; | unsigned long data; | ||||
}; | }; | ||||
#define DECLARE_TASKLET(_name, _func, _data) \ | #define DECLARE_TASKLET(_name, _func, _data) \ | ||||
struct tasklet_struct _name = { .func = (_func), .data = (_data) } | struct tasklet_struct _name = { .func = (_func), .data = (_data) } | ||||
#define tasklet_hi_schedule(t) tasklet_schedule(t) | #define tasklet_hi_schedule(t) tasklet_schedule(t) | ||||
extern void tasklet_schedule(struct tasklet_struct *); | extern void tasklet_schedule(struct tasklet_struct *); | ||||
hselasky: Implement this as a regular external function, see tasklet_disable() below.
This avoids header… | |||||
extern void tasklet_kill(struct tasklet_struct *); | extern void tasklet_kill(struct tasklet_struct *); | ||||
extern void tasklet_init(struct tasklet_struct *, tasklet_func_t *, | extern void tasklet_init(struct tasklet_struct *, tasklet_func_t *, | ||||
unsigned long data); | unsigned long data); | ||||
extern void tasklet_enable(struct tasklet_struct *); | extern void tasklet_enable(struct tasklet_struct *); | ||||
extern void tasklet_disable(struct tasklet_struct *); | extern void tasklet_disable(struct tasklet_struct *); | ||||
extern void tasklet_disable_nosync(struct tasklet_struct *); | |||||
extern int tasklet_trylock(struct tasklet_struct *); | extern int tasklet_trylock(struct tasklet_struct *); | ||||
extern void tasklet_unlock(struct tasklet_struct *); | extern void tasklet_unlock(struct tasklet_struct *); | ||||
extern void tasklet_unlock_wait(struct tasklet_struct *ts); | extern void tasklet_unlock_wait(struct tasklet_struct *ts); | ||||
#endif /* _LINUX_INTERRUPT_H_ */ | #endif /* _LINUX_INTERRUPT_H_ */ |
Implement this as a regular external function, see tasklet_disable() below.
This avoids header file pollution, that you need to depend on including atomic.h .