Home
last modified time | relevance | path

Searched refs:kthread (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v5.15/kernel/
Dkthread.c52 struct kthread { struct
71 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread() argument
88 static inline struct kthread *__to_kthread(struct task_struct *p) in __to_kthread()
90 void *kthread = (__force void *)p->set_child_tid; in __to_kthread() local
91 if (kthread && !(p->flags & PF_KTHREAD)) in __to_kthread()
92 kthread = NULL; in __to_kthread()
93 return kthread; in __to_kthread()
98 struct kthread *kthread; in set_kthread_struct() local
103 kthread = kzalloc(sizeof(*kthread), GFP_KERNEL); in set_kthread_struct()
109 p->set_child_tid = (__force void __user *)kthread; in set_kthread_struct()
[all …]
/Linux-v5.15/kernel/trace/
Dtrace_hwlat.c74 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 …]
Dtrace_osnoise.c95 struct task_struct *kthread; member
123 struct task_struct *kthread; member
1377 wake_up_process(tlat->kthread); in timerlat_irq()
1438 tlat->kthread = current; in timerlat_main()
1483 struct task_struct *kthread; in stop_kthread() local
1485 kthread = per_cpu(per_cpu_osnoise_var, cpu).kthread; in stop_kthread()
1486 if (kthread) in stop_kthread()
1487 kthread_stop(kthread); in stop_kthread()
1488 per_cpu(per_cpu_osnoise_var, cpu).kthread = NULL; in stop_kthread()
1514 struct task_struct *kthread; in start_kthread() local
[all …]
/Linux-v5.15/drivers/media/test-drivers/vimc/
Dvimc-streamer.c200 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()
Dvimc-streamer.h38 struct task_struct *kthread; member
/Linux-v5.15/drivers/media/test-drivers/vivid/
DMakefile3 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-v5.15/drivers/crypto/ccp/
Dccp-dev-v3.c466 struct task_struct *kthread; in ccp_init() local
470 kthread = kthread_create(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()
480 wake_up_process(kthread); in ccp_init()
506 if (ccp->cmd_q[i].kthread) in ccp_init()
507 kthread_stop(ccp->cmd_q[i].kthread); in ccp_init()
545 if (ccp->cmd_q[i].kthread) in ccp_destroy()
[all …]
Dccp-dev-v5.c949 struct task_struct *kthread; in ccp5_init() local
953 kthread = kthread_create(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()
963 wake_up_process(kthread); in ccp5_init()
994 if (ccp->cmd_q[i].kthread) in ccp5_init()
995 kthread_stop(ccp->cmd_q[i].kthread); in ccp5_init()
1046 if (ccp->cmd_q[i].kthread) in ccp5_destroy()
[all …]
Dccp-dev.c339 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-v5.15/fs/ksmbd/
Dtransport_tcp.c40 static void tcp_stop_kthread(struct task_struct *kthread);
266 struct task_struct *kthread; in ksmbd_tcp_run_kthread() local
268 kthread = kthread_run(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", in ksmbd_tcp_run_kthread()
270 if (IS_ERR(kthread)) { in ksmbd_tcp_run_kthread()
271 rc = PTR_ERR(kthread); in ksmbd_tcp_run_kthread()
274 iface->ksmbd_kthread = kthread; in ksmbd_tcp_run_kthread()
533 static void tcp_stop_kthread(struct task_struct *kthread) in tcp_stop_kthread() argument
537 if (!kthread) in tcp_stop_kthread()
540 ret = kthread_stop(kthread); in tcp_stop_kthread()
/Linux-v5.15/drivers/media/radio/
Dradio-miropcm20.c73 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-v5.15/drivers/misc/sgi-xp/
Dxpc_main.c589 struct task_struct *kthread; in xpc_activate_partition() local
600 kthread = kthread_run(xpc_activating, (void *)((u64)partid), "xpc%02d", in xpc_activate_partition()
602 if (IS_ERR(kthread)) { in xpc_activate_partition()
779 struct task_struct *kthread; in xpc_create_kthreads() local
808 kthread = kthread_run(xpc_kthread_start, (void *)args, in xpc_create_kthreads()
810 if (IS_ERR(kthread)) { in xpc_create_kthreads()
1225 struct task_struct *kthread; in xpc_init() local
1273 kthread = kthread_run(xpc_hb_checker, NULL, XPC_HB_CHECK_THREAD_NAME); in xpc_init()
1274 if (IS_ERR(kthread)) { in xpc_init()
1285 kthread = kthread_run(xpc_initiate_discovery, NULL, in xpc_init()
[all …]
/Linux-v5.15/kernel/bpf/
Dcpumap.c64 struct task_struct *kthread; member
142 kthread_stop(rcpu->kthread); in cpu_map_kthread_stop()
464 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc()
467 if (IS_ERR(rcpu->kthread)) in __cpu_map_entry_alloc()
474 kthread_bind(rcpu->kthread, cpu); in __cpu_map_entry_alloc()
475 wake_up_process(rcpu->kthread); in __cpu_map_entry_alloc()
778 wake_up_process(rcpu->kthread); in cpu_map_generic_redirect()
793 wake_up_process(bq->obj->kthread); in __cpu_map_flush()
/Linux-v5.15/Documentation/dev-tools/
Dkfence.rst74 kthread+0x176/0x1b0
84 kthread+0x176/0x1b0
105 kthread+0x176/0x1b0
115 kthread+0x176/0x1b0
122 kthread+0x176/0x1b0
138 kthread+0x176/0x1b0
148 kthread+0x176/0x1b0
155 kthread+0x176/0x1b0
173 kthread+0x176/0x1b0
183 kthread+0x176/0x1b0
[all …]
/Linux-v5.15/Documentation/RCU/
Dstallwarn.rst42 This message will include information on when the kthread last
44 result in the ``rcu_.*kthread starved for`` console-log message,
237 detection passes that the grace-period kthread has made across this
275 …All QSes seen, last rcu_preempt kthread activity 23807 (4297905177-4297881370), jiffies_till_next_…
278 since the grace-period kthread ran. The "jiffies_till_next_fqs"
279 indicates how frequently that kthread should run, giving the number
284 If the relevant grace-period kthread has been unable to run prior to
288 rcu_sched kthread starved for 23807 jiffies! g7075 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x1 ->cpu=5
289 Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected behavior.
295 to the grace-period kthread, the "RCU_GP_WAIT_FQS" indicates that the
[all …]
/Linux-v5.15/drivers/media/cec/core/
Dcec-core.c277 adap->kthread = kthread_run(cec_thread_func, adap, "cec-%s", name); in cec_allocate_adapter()
278 if (IS_ERR(adap->kthread)) { in cec_allocate_adapter()
280 res = PTR_ERR(adap->kthread); in cec_allocate_adapter()
294 kthread_stop(adap->kthread); in cec_allocate_adapter()
401 kthread_stop(adap->kthread); in cec_delete_adapter()
/Linux-v5.15/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c285 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-v5.15/drivers/media/pci/pt1/
Dpt1.c79 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-v5.15/Documentation/driver-api/
Dbasics.rst69 .. kernel-doc:: include/linux/kthread.h
72 .. kernel-doc:: kernel/kthread.c
/Linux-v5.15/arch/um/kernel/
Dprocess.c160 int kthread = current->flags & (PF_KTHREAD | PF_IO_WORKER); in copy_thread() local
165 if (!kthread) { in copy_thread()
184 if (!kthread) { in copy_thread()
/Linux-v5.15/fs/ecryptfs/
DMakefile9 crypto.o keystore.o kthread.o debug.o
/Linux-v5.15/drivers/iio/trigger/
DKconfig49 tristate "A kthread based hammering loop trigger"
54 Uses a tight loop in a kthread. Will only work with lower half only
/Linux-v5.15/tools/testing/selftests/proc/
D.gitignore4 /fd-003-kthread
DMakefile8 TEST_GEN_PROGS += fd-003-kthread
/Linux-v5.15/drivers/media/i2c/
Dmsp3400-driver.c305 if (NULL == state->kthread) in msp_wake_thread()
853 state->kthread = kthread_run(thread_func, client, "msp34xx"); in msp_probe()
855 if (IS_ERR(state->kthread)) in msp_probe()
868 if (state->kthread) { in msp_remove()
870 kthread_stop(state->kthread); in msp_remove()

123