summary
####worker
1 | 15 /* |
workqueue_struct
1 | 228 /* |
struct worker_pool
1 | 143 struct worker_pool { |
1 | 297 static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], |
struct pool_workqueue
1 | 193 struct pool_workqueue { |
work_struct
1 | 100 struct work_struct { |
struct delayed_work
1 | 113 struct delayed_work { |
Define a delayed worker.
include two parts:
timer: to process the ‘delay’, define a timer with
delayed_work_timer_fn
.
which just call__queue_work
.all the other parts are done for
work
.
1 | static DECLARE_DELAYED_WORK(dst_gc_work, dst_gc_task); |
1 | 174 |
1 | 164 |
1 | 157 |
1 | 109 |
1 | 1444 void delayed_work_timer_fn(unsigned long __data) |
define a work or deferrable work.
1 | 171 |