| /linux/kernel/ |
| H A D | kthread.c | 56 struct kthread { struct 82 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread() argument 90 struct kthread *kthread = to_kthread(tsk); in get_kthread_comm() local 92 if (!kthread || !kthread->full_name) { in get_kthread_comm() 97 strscpy_pad(buf, kthread->full_name, buf_size); in get_kthread_comm() 102 struct kthread *kthread; in set_kthread_struct() local 107 kthread = kzalloc_obj(*kthread); in set_kthread_struct() 108 if (!kthread) in set_kthread_struct() 111 init_completion(&kthread->exited); in set_kthread_struct() 112 init_completion(&kthread->parked); in set_kthread_struct() [all …]
|
| H A D | exit.c | 36 #include <linux/kthread.h> 909 struct kthread *kthread; in synchronize_group_exit() 915 kthread = tsk_is_kthread(tsk); in synchronize_group_exit() 916 if (unlikely(kthread)) in synchronize_group_exit() 917 kthread_do_exit(kthread, code); in synchronize_group_exit() 935 struct kthread *kthread; do_exit() local
|
| /linux/kernel/trace/ |
| H A D | trace_osnoise.c | 230 struct task_struct *kthread; member 263 struct task_struct *kthread; member 304 if (tlat_var->kthread) in tlat_var_reset() 1692 this_cpu_osn_var()->kthread = NULL; in osnoise_migration_pending() 1829 wake_up_process(tlat->kthread); in timerlat_irq() 1835 wake_up_process(tlat->kthread); in timerlat_irq() 1928 tlat->kthread = current; in timerlat_main() 1981 struct task_struct *kthread; in stop_kthread() local 1983 kthread = xchg_relaxed(&(per_cpu(per_cpu_osnoise_var, cpu).kthread), NULL); in stop_kthread() 1984 if (kthread) { in stop_kthread() [all …]
|
| H A D | trace_events_trigger.c | 32 struct task_struct *kthread; in trigger_create_kthread_locked() local 34 kthread = kthread_create(trigger_kthread_fn, NULL, in trigger_create_kthread_locked() 36 if (!IS_ERR(kthread)) in trigger_create_kthread_locked() 37 WRITE_ONCE(trigger_kthread, kthread); in trigger_create_kthread_locked()
|
| /linux/fs/smb/server/ |
| H A D | transport_tcp.c | 41 static void tcp_stop_kthread(struct task_struct *kthread); 323 struct task_struct *kthread; in ksmbd_tcp_run_kthread() local 325 kthread = kthread_create(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", in ksmbd_tcp_run_kthread() 327 if (IS_ERR(kthread)) { in ksmbd_tcp_run_kthread() 328 rc = PTR_ERR(kthread); in ksmbd_tcp_run_kthread() 336 get_task_struct(kthread); in ksmbd_tcp_run_kthread() 337 iface->ksmbd_kthread = kthread; in ksmbd_tcp_run_kthread() 338 wake_up_process(kthread); in ksmbd_tcp_run_kthread() 630 static void tcp_stop_kthread(struct task_struct *kthread) in tcp_stop_kthread() argument 634 if (!kthread) in tcp_stop_kthread() [all …]
|
| /linux/tools/testing/selftests/proc/ |
| H A D | .gitignore | 4 /fd-003-kthread 5 /proc-2-is-kthread 15 /proc-self-isnt-kthread
|
| H A D | Makefile | 9 TEST_GEN_PROGS += fd-003-kthread 10 TEST_GEN_PROGS += proc-2-is-kthread 18 TEST_GEN_PROGS += proc-self-isnt-kthread
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-dev-v3.c | 466 struct task_struct *kthread; in ccp_init() local 470 kthread = kthread_run(ccp_cmd_queue_thread, cmd_q, in ccp_init() 472 if (IS_ERR(kthread)) { in ccp_init() 474 PTR_ERR(kthread)); in ccp_init() 475 ret = PTR_ERR(kthread); in ccp_init() 479 cmd_q->kthread = kthread; in ccp_init() 505 if (ccp->cmd_q[i].kthread) in ccp_init() 506 kthread_stop(ccp->cmd_q[i].kthread); in ccp_init() 544 if (ccp->cmd_q[i].kthread) in ccp_destroy() 545 kthread_stop(ccp->cmd_q[i].kthread); in ccp_destroy()
|
| H A D | ccp-dev-v5.c | 949 struct task_struct *kthread; in ccp5_init() local 953 kthread = kthread_run(ccp_cmd_queue_thread, cmd_q, in ccp5_init() 955 if (IS_ERR(kthread)) { in ccp5_init() 957 PTR_ERR(kthread)); in ccp5_init() 958 ret = PTR_ERR(kthread); in ccp5_init() 962 cmd_q->kthread = kthread; in ccp5_init() 993 if (ccp->cmd_q[i].kthread) in ccp5_init() 994 kthread_stop(ccp->cmd_q[i].kthread); in ccp5_init() 1045 if (ccp->cmd_q[i].kthread) in ccp5_destroy() 1046 kthread_stop(ccp->cmd_q[i].kthread); in ccp5_destroy()
|
| H A D | ccp-dev.c | 339 wake_up_process(ccp->cmd_q[i].kthread); in ccp_enqueue_cmd() 371 wake_up_process(ccp->cmd_q[i].kthread); in ccp_do_cmd_backlog() 567 wake_up_process(ccp->cmd_q[i].kthread); in ccp_dev_suspend() 594 wake_up_process(ccp->cmd_q[i].kthread); in ccp_dev_resume()
|
| /linux/kernel/bpf/ |
| H A D | cpumap.c | 69 struct task_struct *kthread; member 485 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc() 488 if (IS_ERR(rcpu->kthread)) { in __cpu_map_entry_alloc() 489 err = PTR_ERR(rcpu->kthread); in __cpu_map_entry_alloc() 494 kthread_bind(rcpu->kthread, cpu); in __cpu_map_entry_alloc() 495 wake_up_process(rcpu->kthread); in __cpu_map_entry_alloc() 535 kthread_stop(rcpu->kthread); in __cpu_map_entry_free() 816 wake_up_process(rcpu->kthread); in cpu_map_generic_redirect() 832 wake_up_process(bq->obj->kthread); in __cpu_map_flush()
|
| /linux/include/linux/ |
| H A D | kthread.h | 11 struct kthread; 21 static inline struct kthread *tsk_is_kthread(struct task_struct *p) in tsk_is_kthread() 122 void kthread_do_exit(struct kthread *, long);
|
| /linux/drivers/media/pci/pt1/ |
| H A D | pt1.c | 79 struct task_struct *kthread; member 681 if (!pt1->kthread) { in pt1_start_polling() 682 pt1->kthread = kthread_run(pt1_thread, pt1, "earth-pt1"); in pt1_start_polling() 683 if (IS_ERR(pt1->kthread)) { in pt1_start_polling() 684 ret = PTR_ERR(pt1->kthread); in pt1_start_polling() 685 pt1->kthread = NULL; in pt1_start_polling() 715 if (count == 0 && pt1->kthread) { in pt1_stop_polling() 716 kthread_stop(pt1->kthread); in pt1_stop_polling() 717 pt1->kthread = NULL; in pt1_stop_polling() 1316 if (pt1->kthread) in pt1_remove() [all …]
|
| /linux/Documentation/translations/zh_CN/dev-tools/ |
| H A D | kcsan.rst | 38 kthread+0x23e/0x260 44 kthread+0x23e/0x260 66 kthread+0x23e/0x260
|
| /linux/Documentation/features/sched/membarrier-sync-core/ |
| H A D | arch-support.txt | 24 # uthread->uthread and kthread->uthread transitions) before returning 41 # after changing the current mm, and deal with the special case of kthread ->
|
| /linux/kernel/printk/ |
| H A D | nbcon.c | 1352 if (!con->kthread) in nbcon_kthread_stop() 1355 kthread_stop(con->kthread); in nbcon_kthread_stop() 1356 con->kthread = NULL; in nbcon_kthread_stop() 1381 if (con->kthread) in nbcon_kthread_create() 1390 con->kthread = kt; in nbcon_kthread_create() 1396 sched_set_normal(con->kthread, -20); in nbcon_kthread_create()
|
| /linux/drivers/pci/hotplug/ |
| H A D | TODO | 9 * The driver spawns a kthread cpqhp_event_thread() which is woken by the 11 The kthread is also woken from the timer pushbutton_helper_thread(),
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-streamer.h | 38 struct task_struct *kthread; member
|
| /linux/fs/ecryptfs/ |
| H A D | Makefile | 9 crypto.o keystore.o kthread.o debug.o
|
| /linux/samples/bpf/ |
| H A D | xdp_sample_user.c | 105 struct record kthread; member 482 rec->kthread.cpu = alloc_record_per_cpu(); in alloc_stats_record() 483 if (!rec->kthread.cpu) { in alloc_stats_record() 536 free(rec->kthread.cpu); in alloc_stats_record() 563 free(r->kthread.cpu); in free_stats_record() 754 rec = &stats_rec->kthread; in stats_get_cpumap_remote() 755 prev = &stats_prev->kthread; in stats_get_cpumap_remote() 792 rec = &stats_rec->kthread; in stats_get_cpumap_kthread() 793 prev = &stats_prev->kthread; in stats_get_cpumap_kthread() 1409 &rec->kthread); in sample_stats_collect()
|
| /linux/drivers/media/i2c/ |
| H A D | msp3400-driver.h | 109 struct task_struct *kthread; member
|
| /linux/kernel/rcu/ |
| H A D | Kconfig | 260 bool "Perform RCU expedited work in a real-time kthread" 289 For each such CPU, a kthread ("rcuox/N") will be created to 293 also creates another kthread for each sqrt(nr_cpu_ids) CPUs 323 bool "Offload RCU callback from real-time kthread"
|
| /linux/net/batman-adv/ |
| H A D | tp_meter.c | 1014 struct task_struct *kthread; in batadv_tp_start_kthread() local 1018 kthread = kthread_create(batadv_tp_send, tp_vars, "kbatadv_tp_meter"); in batadv_tp_start_kthread() 1019 if (IS_ERR(kthread)) { in batadv_tp_start_kthread() 1036 wake_up_process(kthread); in batadv_tp_start_kthread()
|
| /linux/drivers/media/pci/solo6x10/ |
| H A D | solo6x10.h | 268 struct task_struct *kthread; member
|
| /linux/drivers/usb/atm/ |
| H A D | ueagle-atm.c | 114 struct task_struct *kthread; member 2151 sc->kthread = kthread_create(uea_kthread, sc, "ueagle-atm"); in uea_boot() 2152 if (IS_ERR(sc->kthread)) { in uea_boot() 2154 ret = PTR_ERR(sc->kthread); in uea_boot() 2177 ret = kthread_stop(sc->kthread); in uea_stop() 2607 wake_up_process(sc->kthread); in uea_probe()
|