Go to the source code of this file.
|
| #define | INIT_WORK(_work, _func) |
| |
| #define | schedule_work(work) do { if ((work)->func) (work)->func(work); } while (0) |
| |
| #define | queue_work(wq, work) do { if ((work)->func) (work)->func(work); } while (0) |
| |
| #define | flush_work(work) do {} while (0) |
| |
| #define | cancel_work_sync(work) do {} while (0) |
| |
| #define | flush_workqueue(wq) do {} while (0) |
| |
| #define | destroy_workqueue(wq) do {} while (0) |
| |
| #define | create_singlethread_workqueue(name) alloc_ordered_workqueue(name, 0) |
| |
| #define | container_of_work(ptr, type, member) container_of(ptr, type, member) |
| |
| #define | INIT_DELAYED_WORK(_dwork, _func) |
| |
| #define | to_delayed_work(ptr) container_of(ptr, struct delayed_work, work) |
| |
◆ cancel_work_sync
| #define cancel_work_sync |
( |
|
work | ) |
do {} while (0) |
◆ container_of_work
| #define container_of_work |
( |
|
ptr, |
|
|
|
type, |
|
|
|
member |
|
) |
| container_of(ptr, type, member) |
◆ create_singlethread_workqueue
| #define create_singlethread_workqueue |
( |
|
name | ) |
alloc_ordered_workqueue(name, 0) |
◆ destroy_workqueue
| #define destroy_workqueue |
( |
|
wq | ) |
do {} while (0) |
◆ flush_work
| #define flush_work |
( |
|
work | ) |
do {} while (0) |
◆ flush_workqueue
| #define flush_workqueue |
( |
|
wq | ) |
do {} while (0) |
◆ INIT_DELAYED_WORK
| #define INIT_DELAYED_WORK |
( |
|
_dwork, |
|
|
|
_func |
|
) |
| |
Value: do { \
INIT_WORK(&(_dwork)->work, _func); \
timer_setup(&(_dwork)->timer,
NULL, 0); \
} while (0)
#define NULL
Definition actypes.h:561
◆ INIT_WORK
| #define INIT_WORK |
( |
|
_work, |
|
|
|
_func |
|
) |
| |
Value: do { \
(_work)->func = (_func); \
(_work)->pending = 0; \
} while (0)
◆ queue_work
| #define queue_work |
( |
|
wq, |
|
|
|
work |
|
) |
| do { if ((work)->func) (work)->func(work); } while (0) |
◆ schedule_work
| #define schedule_work |
( |
|
work | ) |
do { if ((work)->func) (work)->func(work); } while (0) |
◆ to_delayed_work
◆ work_func_t