Lines Matching refs:worker
101 struct kthread_worker *worker; member
111 #define KTHREAD_WORKER_INIT(worker) { \ argument
112 .lock = __SPIN_LOCK_UNLOCKED((worker).lock), \
113 .work_list = LIST_HEAD_INIT((worker).work_list), \
114 .delayed_work_list = LIST_HEAD_INIT((worker).delayed_work_list),\
128 #define DEFINE_KTHREAD_WORKER(worker) \ argument
129 struct kthread_worker worker = KTHREAD_WORKER_INIT(worker)
143 # define KTHREAD_WORKER_INIT_ONSTACK(worker) \ argument
144 ({ kthread_init_worker(&worker); worker; })
145 # define DEFINE_KTHREAD_WORKER_ONSTACK(worker) \ argument
146 struct kthread_worker worker = KTHREAD_WORKER_INIT_ONSTACK(worker)
148 # define DEFINE_KTHREAD_WORKER_ONSTACK(worker) DEFINE_KTHREAD_WORKER(worker) argument
151 extern void __kthread_init_worker(struct kthread_worker *worker,
154 #define kthread_init_worker(worker) \ argument
157 __kthread_init_worker((worker), "("#worker")->lock", &__key); \
185 bool kthread_queue_work(struct kthread_worker *worker,
188 bool kthread_queue_delayed_work(struct kthread_worker *worker,
192 bool kthread_mod_delayed_work(struct kthread_worker *worker,
197 void kthread_flush_worker(struct kthread_worker *worker);
202 void kthread_destroy_worker(struct kthread_worker *worker);