| /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 …]
|
| /linux/kernel/trace/ |
| H A D | trace_hwlat.c | 40 #include <linux/kthread.h> 72 /* runtime kthread data */ 74 struct task_struct *kthread; member 165 if (!kdata->kthread) in trace_hwlat_callback() 385 * stop_stop_kthread - Inform the hardware latency sampling/detector kthread to stop 393 struct task_struct *kthread; in stop_single_kthread() 396 kthread = kdata->kthread; in stop_single_kthread() 398 if (!kthread) in stop_single_kthread() 401 kthread_stop(kthread); in stop_single_kthread() 394 struct task_struct *kthread; stop_single_kthread() local 420 struct task_struct *kthread; start_single_kthread() local 459 struct task_struct *kthread; stop_cpu_kthread() local 488 struct task_struct *kthread; start_cpu_kthread() local [all...] |
| H A D | trace_osnoise.c | 19 #include <linux/kthread.h> 209 struct task_struct *kthread; member 242 struct task_struct *kthread; member 277 if (tlat_var->kthread) in tlat_var_reset() 1665 this_cpu_osn_var()->kthread = NULL; in osnoise_migration_pending() 1802 wake_up_process(tlat->kthread); in timerlat_irq() 1808 wake_up_process(tlat->kthread); in timerlat_irq() 1881 tlat->kthread = current; in timerlat_main() 1934 struct task_struct *kthread; in stop_kthread() local 1936 kthread in stop_kthread() 1985 struct task_struct *kthread; start_kthread() local 2044 struct task_struct *kthread; start_per_cpu_kthreads() local [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/fs/smb/server/ |
| H A D | transport_tcp.c | 41 static void tcp_stop_kthread(struct task_struct *kthread); 314 struct task_struct *kthread; in ksmbd_tcp_run_kthread() local 316 kthread = kthread_run(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", in ksmbd_tcp_run_kthread() 318 if (IS_ERR(kthread)) { in ksmbd_tcp_run_kthread() 319 rc = PTR_ERR(kthread); in ksmbd_tcp_run_kthread() 322 iface->ksmbd_kthread = kthread; in ksmbd_tcp_run_kthread() 607 static void tcp_stop_kthread(struct task_struct *kthread) in tcp_stop_kthread() argument 611 if (!kthread) in tcp_stop_kthread() 614 ret = kthread_stop(kthread); in tcp_stop_kthread()
|
| /linux/drivers/misc/sgi-xp/ |
| H A D | xpc_main.c | 577 struct task_struct *kthread; in xpc_activate_partition() local 588 kthread = kthread_run(xpc_activating, (void *)((u64)partid), "xpc%02d", in xpc_activate_partition() 590 if (IS_ERR(kthread)) { in xpc_activate_partition() 767 struct task_struct *kthread; in xpc_create_kthreads() local 796 kthread = kthread_run(xpc_kthread_start, (void *)args, in xpc_create_kthreads() 798 if (IS_ERR(kthread)) { in xpc_create_kthreads() 1182 struct task_struct *kthread; in xpc_init() local 1231 kthread = kthread_run(xpc_hb_checker, NULL, XPC_HB_CHECK_THREAD_NAME); in xpc_init() 1232 if (IS_ERR(kthread)) { in xpc_init() 1243 kthread = kthread_run(xpc_initiate_discovery, NULL, in xpc_init() [all …]
|
| /linux/kernel/bpf/ |
| H A D | cpumap.c | 69 struct task_struct *kthread; member 482 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc() 485 if (IS_ERR(rcpu->kthread)) { in __cpu_map_entry_alloc() 486 err = PTR_ERR(rcpu->kthread); in __cpu_map_entry_alloc() 491 kthread_bind(rcpu->kthread, cpu); in __cpu_map_entry_alloc() 492 wake_up_process(rcpu->kthread); in __cpu_map_entry_alloc() 532 kthread_stop(rcpu->kthread); in __cpu_map_entry_free() 813 wake_up_process(rcpu->kthread); in cpu_map_generic_redirect() 829 wake_up_process(bq->obj->kthread); in __cpu_map_flush()
|
| /linux/drivers/media/cec/core/ |
| H A D | cec-core.c | 266 adap->kthread = kthread_run(cec_thread_func, adap, "cec-%s", name); in cec_allocate_adapter() 267 if (IS_ERR(adap->kthread)) { in cec_allocate_adapter() 269 res = PTR_ERR(adap->kthread); in cec_allocate_adapter() 283 kthread_stop(adap->kthread); in cec_allocate_adapter() 392 kthread_stop(adap->kthread); in cec_delete_adapter()
|
| H A D | cec-pin.c | 1168 if (!pin->kthread) { in cec_pin_adap_enable() 1169 pin->kthread = kthread_run(cec_pin_thread_func, adap, in cec_pin_adap_enable() 1171 if (IS_ERR(pin->kthread)) { in cec_pin_adap_enable() 1172 int err = PTR_ERR(pin->kthread); in cec_pin_adap_enable() 1175 pin->kthread = NULL; in cec_pin_adap_enable() 1181 } else if (pin->kthread) { in cec_pin_adap_enable() 1323 if (pin->kthread) in cec_pin_adap_free() 1324 kthread_stop(pin->kthread); in cec_pin_adap_free() 1325 pin->kthread = NULL; in cec_pin_adap_free()
|
| /linux/Documentation/dev-tools/ |
| H A D | kfence.rst | 93 kthread+0x176/0x1b0 103 kthread+0x176/0x1b0 124 kthread+0x176/0x1b0 134 kthread+0x176/0x1b0 141 kthread+0x176/0x1b0 157 kthread+0x176/0x1b0 167 kthread+0x176/0x1b0 174 kthread+0x176/0x1b0 192 kthread+0x176/0x1b0 202 kthread+0x176/0x1b0 [all …]
|
| /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/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/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/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/iio/trigger/ |
| H A D | Kconfig | 49 tristate "A kthread based hammering loop trigger" 54 Uses a tight loop in a kthread. Will only work with lower half only
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-streamer.h | 38 struct task_struct *kthread; member
|
| /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/fs/ecryptfs/ |
| H A D | Makefile | 9 crypto.o keystore.o kthread.o debug.o
|
| /linux/drivers/media/i2c/ |
| H A D | msp3400-driver.c | 305 if (NULL == state->kthread) in msp_wake_thread() 846 state->kthread = kthread_run(thread_func, client, "msp34xx"); in msp_probe() 848 if (IS_ERR(state->kthread)) in msp_probe() 861 if (state->kthread) { in msp_remove() 863 kthread_stop(state->kthread); in msp_remove()
|