Lines Matching defs:kthread
31 #include <linux/kthread.h>
61 u32 cpu; /* kthread CPU and map index */
67 /* Queue with potential multi-producers, and single-consumer kthread */
69 struct task_struct *kthread;
302 /* When kthread gives stop order, then rcpu have been disconnected
334 * kthread CPU pinned. Lockless access to ptr_ring
483 /* Setup kthread */
485 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa,
488 if (IS_ERR(rcpu->kthread)) {
489 err = PTR_ERR(rcpu->kthread);
493 /* Make sure kthread runs on a single CPU */
494 kthread_bind(rcpu->kthread, cpu);
495 wake_up_process(rcpu->kthread);
497 /* Make sure kthread has been running, so kthread_stop() will not
498 * stop the kthread prematurely and all pending frames or skbs
499 * will be handled by the kthread before kthread_stop() returns.
535 kthread_stop(rcpu->kthread);
553 * context where we can stop the kthread and wait for it to exit before freeing
644 /* Stop kthread and cleanup entry directly */
816 wake_up_process(rcpu->kthread);
832 wake_up_process(bq->obj->kthread);