Home
last modified time | relevance | path

Searched refs:kthread (Results 1 - 25 of 1070) sorted by relevance

12345678910>>...43

/kernel/linux/linux-6.6/kernel/
H A Dkthread.c16 #include <linux/kthread.h>
40 /* Information passed to kthread() from kthreadd. */
53 struct kthread { struct
74 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread()
81 * Variant of to_kthread() that doesn't assume @p is a kthread.
87 * the task is both a kthread and struct kthread is persistent. However
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 in __to_kthread()
101 struct kthread *kthread = to_kthread(tsk); get_kthread_comm() local
113 struct kthread *kthread; set_kthread_struct() local
132 struct kthread *kthread; free_kthread_struct() local
186 struct kthread *kthread = __to_kthread(current); kthread_should_stop_or_park() local
227 struct kthread *kthread = __to_kthread(task); kthread_func() local
259 struct kthread *kthread = __to_kthread(task); kthread_probe_data() local
314 struct kthread *kthread = to_kthread(current); kthread_exit() local
340 static int kthread(void *_create) kthread() function
589 struct kthread *kthread = to_kthread(k); kthread_set_per_cpu() local
606 struct kthread *kthread = __to_kthread(p); kthread_is_per_cpu() local
623 struct kthread *kthread = to_kthread(k); kthread_unpark() local
654 struct kthread *kthread = to_kthread(k); kthread_park() local
698 struct kthread *kthread; kthread_stop() local
1499 struct kthread *kthread; kthread_associate_blkcg() local
1525 struct kthread *kthread; kthread_blkcg() local
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dkthread.c16 #include <linux/kthread.h>
40 /* Information passed to kthread() from kthreadd. */
52 struct kthread { struct
71 static inline void set_kthread_struct(void *kthread) in set_kthread_struct() argument
78 current->set_child_tid = (__force void __user *)kthread; in set_kthread_struct()
81 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread()
88 * Variant of to_kthread() that doesn't assume @p is a kthread.
94 * the task is both a kthread and struct kthread is persistent. However
98 static inline struct kthread *__to_kthrea
100 void *kthread = (__force void *)p->set_child_tid; __to_kthread() local
108 struct kthread *kthread; free_kthread_struct() local
190 struct kthread *kthread = __to_kthread(task); kthread_func() local
222 struct kthread *kthread = __to_kthread(task); kthread_probe_data() local
265 static int kthread(void *_create) kthread() function
523 struct kthread *kthread = to_kthread(k); kthread_set_per_cpu() local
540 struct kthread *kthread = __to_kthread(p); kthread_is_per_cpu() local
557 struct kthread *kthread = to_kthread(k); kthread_unpark() local
588 struct kthread *kthread = to_kthread(k); kthread_park() local
632 struct kthread *kthread; kthread_stop() local
1380 struct kthread *kthread; kthread_associate_blkcg() local
1406 struct kthread *kthread; kthread_blkcg() local
[all...]
/kernel/linux/linux-6.6/kernel/trace/
H A Dtrace_hwlat.c40 #include <linux/kthread.h>
72 /* runtime kthread data */
74 struct task_struct *kthread; member
167 if (!kdata->kthread) in trace_hwlat_callback()
391 * stop_stop_kthread - Inform the hardware latency sampling/detector kthread to stop
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()
425 struct task_struct *kthread; start_single_kthread() local
464 struct task_struct *kthread; stop_cpu_kthread() local
493 struct task_struct *kthread; start_cpu_kthread() local
[all...]
H A Dtrace_osnoise.c19 #include <linux/kthread.h>
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()
1998 struct task_struct *kthread; start_kthread() local
[all...]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/
H A Dvimc-streamer.c11 #include <linux/kthread.h>
146 * kthread API).
182 * When starting, check if there is no ``stream->kthread`` allocated. This
184 * pipeline, creates and runs a kthread to consume buffers through the pipeline.
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()
[all...]
/kernel/linux/linux-6.6/drivers/media/test-drivers/vimc/
H A Dvimc-streamer.c11 #include <linux/kthread.h>
146 * kthread API).
182 * When starting, check if there is no ``stream->kthread`` allocated. This
184 * pipeline, creates and runs a kthread to consume buffers through the pipeline.
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()
[all...]
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/
H A Dusb-tx.c246 struct task_struct *kthread; in i2400mu_tx_setup() local
248 kthread = kthread_run(i2400mu_txd, i2400mu, "%s-tx", in i2400mu_tx_setup()
250 /* the kthread function sets i2400mu->tx_thread */ in i2400mu_tx_setup()
251 if (IS_ERR(kthread)) { in i2400mu_tx_setup()
252 result = PTR_ERR(kthread); in i2400mu_tx_setup()
263 struct task_struct *kthread; in i2400mu_tx_release() local
266 kthread = i2400mu->tx_kthread; in i2400mu_tx_release()
269 if (kthread) in i2400mu_tx_release()
270 kthread_stop(kthread); in i2400mu_tx_release()
272 d_printf(1, dev, "TX: kthread ha in i2400mu_tx_release()
[all...]
H A Dusb-rx.c47 * we call i2400mu_rx_kick(); that wakes up the RX kthread, which
433 struct task_struct *kthread; in i2400mu_rx_setup() local
435 kthread = kthread_run(i2400mu_rxd, i2400mu, "%s-rx", in i2400mu_rx_setup()
437 /* the kthread function sets i2400mu->rx_thread */ in i2400mu_rx_setup()
438 if (IS_ERR(kthread)) { in i2400mu_rx_setup()
439 result = PTR_ERR(kthread); in i2400mu_rx_setup()
451 struct task_struct *kthread; in i2400mu_rx_release() local
454 kthread = i2400mu->rx_kthread; in i2400mu_rx_release()
457 if (kthread) in i2400mu_rx_release()
458 kthread_stop(kthread); in i2400mu_rx_release()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/ccp/
H A Dccp-dev-v3.c13 #include <linux/kthread.h>
348 /* Acknowledge the interrupt and wake the kthread */ in ccp_irq_bh()
464 /* Create a kthread for each queue */ in ccp_init()
466 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()
[all...]
H A Dccp-dev-v5.c11 #include <linux/kthread.h>
758 /* Acknowledge the interrupt and wake the kthread */ in ccp5_irq_bh()
947 /* Create a kthread for each queue */ in ccp5_init()
949 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()
[all...]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
H A 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
/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/
H A 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
/kernel/linux/linux-6.6/drivers/crypto/ccp/
H A Dccp-dev-v3.c13 #include <linux/kthread.h>
348 /* Acknowledge the interrupt and wake the kthread */ in ccp_irq_bh()
464 /* Create a kthread for each queue */ in ccp_init()
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()
[all...]
/kernel/linux/linux-5.10/drivers/media/radio/
H A Dradio-miropcm20.c34 #include <linux/kthread.h>
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()
/kernel/linux/linux-6.6/drivers/media/radio/
H A Dradio-miropcm20.c34 #include <linux/kthread.h>
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()
/kernel/linux/linux-6.6/fs/smb/server/
H A Dtransport_tcp.c42 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()
487 pr_err("Can't start ksmbd main kthread: %d\n", ret); in create_socket()
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()
[all...]
/kernel/linux/common_modules/tzdriver/include/
H A Dinternal_functions.h43 static inline void tz_kthread_bind_mask(struct task_struct *kthread) in tz_kthread_bind_mask() argument
45 (void)kthread; in tz_kthread_bind_mask()
/kernel/linux/linux-5.10/drivers/misc/sgi-xp/
H A Dxpc_main.c54 #include <linux/kthread.h>
328 * The first kthread assigned to a newly activated partition is the one
330 * that kthread until the partition is brought down, at which time that kthread
331 * returns back to XPC HB. (The return of that kthread will signify to XPC HB
333 * partition.) This kthread becomes the channel manager for that partition.
522 * kthread and that kthread will call this function to attempt to set up the
526 * The kthread that was created by XPC HB and which setup the XPC
529 * time the kthread wil
589 struct task_struct *kthread; xpc_activate_partition() local
779 struct task_struct *kthread; xpc_create_kthreads() local
1225 struct task_struct *kthread; xpc_init() local
[all...]
/kernel/linux/linux-6.6/drivers/misc/sgi-xp/
H A Dxpc_main.c54 #include <linux/kthread.h>
319 * The first kthread assigned to a newly activated partition is the one
321 * that kthread until the partition is brought down, at which time that kthread
322 * returns back to XPC HB. (The return of that kthread will signify to XPC HB
324 * partition.) This kthread becomes the channel manager for that partition.
513 * kthread and that kthread will call this function to attempt to set up the
517 * The kthread that was created by XPC HB and which setup the XPC
520 * time the kthread wil
580 struct task_struct *kthread; xpc_activate_partition() local
770 struct task_struct *kthread; xpc_create_kthreads() local
1218 struct task_struct *kthread; xpc_init() local
[all...]
/kernel/linux/linux-6.6/kernel/bpf/
H A Dcpumap.c30 #include <linux/kthread.h>
58 u32 cpu; /* kthread CPU and map index */
64 /* Queue with potential multi-producers, and single-consumer kthread */
66 struct task_struct *kthread; member
270 /* When kthread gives stop order, then rcpu have been disconnected in cpu_map_kthread_run()
302 * kthread CPU pinned. Lockless access to ptr_ring in cpu_map_kthread_run()
432 /* Setup kthread */ in __cpu_map_entry_alloc()
434 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc()
437 if (IS_ERR(rcpu->kthread)) in __cpu_map_entry_alloc()
440 /* Make sure kthread run in __cpu_map_entry_alloc()
[all...]
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace_hwlat.c40 #include <linux/kthread.h>
360 * start_kthread - Kick off the hardware latency sampling/detector kthread
368 struct task_struct *kthread; in start_kthread() local
380 kthread = kthread_create(kthread_fn, NULL, "hwlatd"); in start_kthread()
381 if (IS_ERR(kthread)) { in start_kthread()
388 sched_setaffinity(kthread->pid, current_mask); in start_kthread()
390 hwlat_kthread = kthread; in start_kthread()
391 wake_up_process(kthread); in start_kthread()
397 * stop_kthread - Inform the hardware latency samping/detector kthread to stop
579 pr_err(BANNER "Cannot start hwlat kthread\ in hwlat_tracer_start()
[all...]
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/
H A Dsolo6x10-v4l2.c14 #include <linux/kthread.h>
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()
/kernel/linux/linux-5.10/kernel/bpf/
H A Dcpumap.c26 #include <linux/kthread.h>
53 u32 cpu; /* kthread CPU and map index */
61 /* Queue with potential multi-producers, and single-consumer kthread */
63 struct task_struct *kthread; member
155 kthread_stop(rcpu->kthread); in cpu_map_kthread_stop()
305 /* When kthread gives stop order, then rcpu have been disconnected in cpu_map_kthread_run()
334 * kthread CPU pinned. Lockless access to ptr_ring in cpu_map_kthread_run()
456 /* Setup kthread */ in __cpu_map_entry_alloc()
457 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc()
459 if (IS_ERR(rcpu->kthread)) in __cpu_map_entry_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/media/pci/solo6x10/
H A Dsolo6x10-v4l2.c14 #include <linux/kthread.h>
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()
/kernel/linux/linux-5.10/drivers/media/pci/pt1/
H A Dpt1.c20 #include <linux/kthread.h>
79 struct task_struct *kthread; member
682 if (!pt1->kthread) { in pt1_start_polling()
683 pt1->kthread = kthread_run(pt1_thread, pt1, "earth-pt1"); in pt1_start_polling()
684 if (IS_ERR(pt1->kthread)) { in pt1_start_polling()
685 ret = PTR_ERR(pt1->kthread); in pt1_start_polling()
686 pt1->kthread = NULL; in pt1_start_polling()
716 if (count == 0 && pt1->kthread) { in pt1_stop_polling()
717 kthread_stop(pt1->kthread); in pt1_stop_polling()
718 pt1->kthread in pt1_stop_polling()
[all...]

Completed in 21 milliseconds

12345678910>>...43