kthread: add kthread_create_worker*()
[cascardo/linux.git] / include / linux / kthread.h
index e2b095b..daeb2be 100644 (file)
@@ -124,6 +124,13 @@ extern void __kthread_init_worker(struct kthread_worker *worker,
 
 int kthread_worker_fn(void *worker_ptr);
 
+__printf(1, 2)
+struct kthread_worker *
+kthread_create_worker(const char namefmt[], ...);
+
+struct kthread_worker *
+kthread_create_worker_on_cpu(int cpu, const char namefmt[], ...);
+
 bool kthread_queue_work(struct kthread_worker *worker,
                        struct kthread_work *work);
 void kthread_flush_work(struct kthread_work *work);