/linux-6.6.21/kernel/ ! |
D | kthread.c | 53 struct kthread { struct 74 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread() argument 91 static inline struct kthread *__to_kthread(struct task_struct *p) in __to_kthread() 93 void *kthread = p->worker_private; in __to_kthread() local 94 if (kthread && !(p->flags & PF_KTHREAD)) in __to_kthread() 95 kthread = NULL; in __to_kthread() 96 return kthread; in __to_kthread() 101 struct kthread *kthread = to_kthread(tsk); in get_kthread_comm() local 103 if (!kthread || !kthread->full_name) { in get_kthread_comm() 108 strscpy_pad(buf, kthread->full_name, buf_size); in get_kthread_comm() [all …]
|
/linux-6.6.21/kernel/trace/ ! |
D | trace_hwlat.c | 74 struct task_struct *kthread; member 167 if (!kdata->kthread) in trace_hwlat_callback() 399 struct task_struct *kthread; in stop_single_kthread() local 402 kthread = kdata->kthread; in stop_single_kthread() 404 if (!kthread) in stop_single_kthread() 407 kthread_stop(kthread); in stop_single_kthread() 408 kdata->kthread = NULL; in stop_single_kthread() 425 struct task_struct *kthread; in start_single_kthread() local 429 if (kdata->kthread) in start_single_kthread() 432 kthread = kthread_create(kthread_fn, NULL, "hwlatd"); in start_single_kthread() [all …]
|
D | trace_osnoise.c | 208 struct task_struct *kthread; member 236 struct task_struct *kthread; member 1677 this_cpu_osn_var()->kthread = NULL; in osnoise_migration_pending() 1813 wake_up_process(tlat->kthread); in timerlat_irq() 1819 wake_up_process(tlat->kthread); in timerlat_irq() 1893 tlat->kthread = current; in timerlat_main() 1946 struct task_struct *kthread; in stop_kthread() local 1948 kthread = per_cpu(per_cpu_osnoise_var, cpu).kthread; in stop_kthread() 1949 if (kthread) { in stop_kthread() 1951 kthread_stop(kthread); in stop_kthread() [all …]
|
/linux-6.6.21/drivers/media/test-drivers/vimc/ ! |
D | vimc-streamer.c | 200 if (stream->kthread) in vimc_streamer_s_stream() 207 stream->kthread = kthread_run(vimc_streamer_thread, stream, in vimc_streamer_s_stream() 210 if (IS_ERR(stream->kthread)) { in vimc_streamer_s_stream() 211 ret = PTR_ERR(stream->kthread); in vimc_streamer_s_stream() 214 stream->kthread = NULL; in vimc_streamer_s_stream() 219 if (!stream->kthread) in vimc_streamer_s_stream() 222 ret = kthread_stop(stream->kthread); in vimc_streamer_s_stream() 232 stream->kthread = NULL; in vimc_streamer_s_stream()
|
D | vimc-streamer.h | 38 struct task_struct *kthread; member
|
/linux-6.6.21/drivers/media/test-drivers/vivid/ ! |
D | Makefile | 3 vivid-vid-cap.o vivid-vid-out.o vivid-kthread-cap.o vivid-kthread-out.o \ 7 vivid-kthread-touch.o vivid-touch-cap.o
|
/linux-6.6.21/fs/smb/server/ ! |
D | transport_tcp.c | 42 static void tcp_stop_kthread(struct task_struct *kthread); 280 struct task_struct *kthread; in ksmbd_tcp_run_kthread() local 282 kthread = kthread_run(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", in ksmbd_tcp_run_kthread() 284 if (IS_ERR(kthread)) { in ksmbd_tcp_run_kthread() 285 rc = PTR_ERR(kthread); in ksmbd_tcp_run_kthread() 288 iface->ksmbd_kthread = kthread; in ksmbd_tcp_run_kthread() 565 static void tcp_stop_kthread(struct task_struct *kthread) in tcp_stop_kthread() argument 569 if (!kthread) in tcp_stop_kthread() 572 ret = kthread_stop(kthread); in tcp_stop_kthread()
|
/linux-6.6.21/drivers/crypto/ccp/ ! |
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()
|
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()
|
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-6.6.21/drivers/media/radio/ ! |
D | radio-miropcm20.c | 73 struct task_struct *kthread; member 386 IS_ERR_OR_NULL(dev->kthread)) { in pcm20_open() 387 dev->kthread = kthread_run(pcm20_thread, dev, "%s", in pcm20_open() 389 if (IS_ERR(dev->kthread)) { in pcm20_open() 392 return PTR_ERR(dev->kthread); in pcm20_open() 402 if (v4l2_fh_is_singular_file(file) && !IS_ERR_OR_NULL(dev->kthread)) { in pcm20_release() 403 kthread_stop(dev->kthread); in pcm20_release() 404 dev->kthread = NULL; in pcm20_release()
|
/linux-6.6.21/drivers/misc/sgi-xp/ ! |
D | xpc_main.c | 580 struct task_struct *kthread; in xpc_activate_partition() local 591 kthread = kthread_run(xpc_activating, (void *)((u64)partid), "xpc%02d", in xpc_activate_partition() 593 if (IS_ERR(kthread)) { in xpc_activate_partition() 770 struct task_struct *kthread; in xpc_create_kthreads() local 799 kthread = kthread_run(xpc_kthread_start, (void *)args, in xpc_create_kthreads() 801 if (IS_ERR(kthread)) { in xpc_create_kthreads() 1218 struct task_struct *kthread; in xpc_init() local 1267 kthread = kthread_run(xpc_hb_checker, NULL, XPC_HB_CHECK_THREAD_NAME); in xpc_init() 1268 if (IS_ERR(kthread)) { in xpc_init() 1279 kthread = kthread_run(xpc_initiate_discovery, NULL, in xpc_init() [all …]
|
/linux-6.6.21/kernel/bpf/ ! |
D | cpumap.c | 66 struct task_struct *kthread; member 431 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc() 434 if (IS_ERR(rcpu->kthread)) in __cpu_map_entry_alloc() 438 kthread_bind(rcpu->kthread, cpu); in __cpu_map_entry_alloc() 439 wake_up_process(rcpu->kthread); in __cpu_map_entry_alloc() 478 kthread_stop(rcpu->kthread); in __cpu_map_entry_free() 748 wake_up_process(rcpu->kthread); in cpu_map_generic_redirect() 763 wake_up_process(bq->obj->kthread); in __cpu_map_flush()
|
/linux-6.6.21/drivers/media/cec/core/ ! |
D | cec-core.c | 294 adap->kthread = kthread_run(cec_thread_func, adap, "cec-%s", name); in cec_allocate_adapter() 295 if (IS_ERR(adap->kthread)) { in cec_allocate_adapter() 297 res = PTR_ERR(adap->kthread); in cec_allocate_adapter() 311 kthread_stop(adap->kthread); in cec_allocate_adapter() 420 kthread_stop(adap->kthread); in cec_delete_adapter()
|
D | cec-pin.c | 1141 if (!pin->kthread) { in cec_pin_adap_enable() 1142 pin->kthread = kthread_run(cec_pin_thread_func, adap, in cec_pin_adap_enable() 1144 if (IS_ERR(pin->kthread)) { in cec_pin_adap_enable() 1145 int err = PTR_ERR(pin->kthread); in cec_pin_adap_enable() 1148 pin->kthread = NULL; in cec_pin_adap_enable() 1154 } else if (pin->kthread) { in cec_pin_adap_enable() 1296 if (pin->kthread) in cec_pin_adap_free() 1297 kthread_stop(pin->kthread); in cec_pin_adap_free() 1298 pin->kthread = NULL; in cec_pin_adap_free()
|
/linux-6.6.21/Documentation/dev-tools/ ! |
D | kfence.rst | 86 kthread+0x176/0x1b0 96 kthread+0x176/0x1b0 117 kthread+0x176/0x1b0 127 kthread+0x176/0x1b0 134 kthread+0x176/0x1b0 150 kthread+0x176/0x1b0 160 kthread+0x176/0x1b0 167 kthread+0x176/0x1b0 185 kthread+0x176/0x1b0 195 kthread+0x176/0x1b0 [all …]
|
/linux-6.6.21/drivers/media/pci/solo6x10/ ! |
D | solo6x10-v4l2.c | 285 solo_dev->kthread = kthread_run(solo_thread, solo_dev, SOLO6X10_NAME "_disp"); in solo_start_thread() 287 if (IS_ERR(solo_dev->kthread)) { in solo_start_thread() 288 ret = PTR_ERR(solo_dev->kthread); in solo_start_thread() 289 solo_dev->kthread = NULL; in solo_start_thread() 299 if (!solo_dev->kthread) in solo_stop_thread() 303 kthread_stop(solo_dev->kthread); in solo_stop_thread() 304 solo_dev->kthread = NULL; in solo_stop_thread()
|
/linux-6.6.21/fs/erofs/ ! |
D | Kconfig | 129 bool "EROFS per-cpu decompression kthread workers" 132 Saying Y here enables per-CPU kthread workers pool to carry out 138 bool "EROFS high priority per-CPU kthread workers" 142 This permits EROFS to configure per-CPU kthread workers to run
|
/linux-6.6.21/drivers/media/pci/pt1/ ! |
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-6.6.21/Documentation/RCU/ ! |
D | stallwarn.rst | 42 This message will include information on when the kthread last 44 result in the ``rcu_.*kthread starved for`` console-log message, 274 detection passes that the grace-period kthread has made across this 301 …All QSes seen, last rcu_preempt kthread activity 23807 (4297905177-4297881370), jiffies_till_next_… 304 since the grace-period kthread ran. The "jiffies_till_next_fqs" 305 indicates how frequently that kthread should run, giving the number 310 If the relevant grace-period kthread has been unable to run prior to 314 rcu_sched kthread starved for 23807 jiffies! g7075 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x1 ->cpu=5 315 Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected behavior. 321 to the grace-period kthread, the "RCU_GP_WAIT_FQS" indicates that the [all …]
|
/linux-6.6.21/Documentation/driver-api/ ! |
D | basics.rst | 78 .. kernel-doc:: include/linux/kthread.h 81 .. kernel-doc:: kernel/kthread.c
|
/linux-6.6.21/fs/ecryptfs/ ! |
D | Makefile | 9 crypto.o keystore.o kthread.o debug.o
|
/linux-6.6.21/drivers/iio/trigger/ ! |
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-6.6.21/tools/testing/selftests/proc/ ! |
D | .gitignore | 4 /fd-003-kthread
|
/linux-6.6.21/drivers/pci/hotplug/ ! |
D | TODO | 11 * The driver spawns a kthread cpqhp_event_thread() which is woken by the 13 The kthread is also woken from the timer pushbutton_helper_thread(),
|