Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/workqueue.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
} while (0) | } while (0) | ||||
#define INIT_WORK_ONSTACK(work, fn) \ | #define INIT_WORK_ONSTACK(work, fn) \ | ||||
INIT_WORK(work, fn) | INIT_WORK(work, fn) | ||||
#define INIT_DELAYED_WORK(dwork, fn) \ | #define INIT_DELAYED_WORK(dwork, fn) \ | ||||
linux_init_delayed_work(dwork, fn) | linux_init_delayed_work(dwork, fn) | ||||
#define INIT_DELAYED_WORK_ONSTACK(dwork, fn) \ | |||||
linux_init_delayed_work(dwork, fn) | |||||
#define INIT_DEFERRABLE_WORK(dwork, fn) \ | #define INIT_DEFERRABLE_WORK(dwork, fn) \ | ||||
INIT_DELAYED_WORK(dwork, fn) | INIT_DELAYED_WORK(dwork, fn) | ||||
#define flush_scheduled_work() \ | #define flush_scheduled_work() \ | ||||
taskqueue_drain_all(system_wq->taskqueue) | taskqueue_drain_all(system_wq->taskqueue) | ||||
#define queue_work(wq, work) \ | #define queue_work(wq, work) \ | ||||
linux_queue_work_on(WORK_CPU_UNBOUND, wq, work) | linux_queue_work_on(WORK_CPU_UNBOUND, wq, work) | ||||
▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
#define destroy_workqueue(wq) \ | #define destroy_workqueue(wq) \ | ||||
linux_destroy_workqueue(wq) | linux_destroy_workqueue(wq) | ||||
/* prototypes */ | /* prototypes */ | ||||
extern struct workqueue_struct *system_wq; | extern struct workqueue_struct *system_wq; | ||||
extern struct workqueue_struct *system_long_wq; | extern struct workqueue_struct *system_long_wq; | ||||
extern struct workqueue_struct *system_unbound_wq; | extern struct workqueue_struct *system_unbound_wq; | ||||
extern struct workqueue_struct *system_highpri_wq; | |||||
extern struct workqueue_struct *system_power_efficient_wq; | extern struct workqueue_struct *system_power_efficient_wq; | ||||
extern void linux_init_delayed_work(struct delayed_work *, work_func_t); | extern void linux_init_delayed_work(struct delayed_work *, work_func_t); | ||||
extern void linux_work_fn(void *, int); | extern void linux_work_fn(void *, int); | ||||
extern void linux_delayed_work_fn(void *, int); | extern void linux_delayed_work_fn(void *, int); | ||||
extern struct workqueue_struct *linux_create_workqueue_common(const char *, int); | extern struct workqueue_struct *linux_create_workqueue_common(const char *, int); | ||||
extern void linux_destroy_workqueue(struct workqueue_struct *); | extern void linux_destroy_workqueue(struct workqueue_struct *); | ||||
extern bool linux_queue_work_on(int cpu, struct workqueue_struct *, struct work_struct *); | extern bool linux_queue_work_on(int cpu, struct workqueue_struct *, struct work_struct *); | ||||
Show All 11 Lines |