Lines Matching refs:kthread
31 #include <linux/kthread.h>
62 u32 cpu; /* kthread CPU and map index */
68 /* Queue with potential multi-producers, and single-consumer kthread */
70 struct task_struct *kthread;
81 * The kthread keeps it until nothing is left in GRO.
312 /* When kthread gives stop order, then rcpu have been disconnected
344 * kthread CPU pinned. Lockless access to ptr_ring
498 /* Setup kthread */
500 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa,
503 if (IS_ERR(rcpu->kthread)) {
504 err = PTR_ERR(rcpu->kthread);
508 /* Make sure kthread runs on a single CPU */
509 kthread_bind(rcpu->kthread, cpu);
510 wake_up_process(rcpu->kthread);
512 /* Make sure kthread has been running, so kthread_stop() will not
513 * stop the kthread prematurely and all pending frames or skbs
514 * will be handled by the kthread before kthread_stop() returns.
550 kthread_stop(rcpu->kthread);
568 * context where we can stop the kthread and wait for it to exit before freeing
659 /* Stop kthread and cleanup entry directly */
837 wake_up_process(rcpu->kthread);
853 wake_up_process(bq->obj->kthread);