Home
last modified time | relevance | path

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

12

/linux/kernel/
H A Dkthread.c16 #include <linux/kthread.h>
43 /* Information passed to kthread() from kthreadd. */
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 *kthrea in set_kthread_struct() local
57 flagskthread global() argument
58 cpukthread global() argument
124 struct kthread *kthread; free_kthread_struct() local
178 struct kthread *kthread = tsk_is_kthread(current); kthread_should_stop_or_park() local
219 struct kthread *kthread = tsk_is_kthread(task); kthread_func() local
251 struct kthread *kthread = tsk_is_kthread(task); kthread_probe_data() local
294 kthread_do_exit(struct kthread * kthread,long result) kthread_do_exit() argument
330 kthread_fetch_affinity(struct kthread * kthread,struct cpumask * cpumask) kthread_fetch_affinity() argument
352 struct kthread *kthread = to_kthread(current); kthread_affine_node() local
380 static int kthread(void *_create) kthread() function
587 struct kthread *kthread = to_kthread(p); kthread_bind_mask() local
603 struct kthread *kthread = to_kthread(p); kthread_bind() local
638 struct kthread *kthread = to_kthread(k); kthread_set_per_cpu() local
655 struct kthread *kthread = tsk_is_kthread(p); kthread_is_per_cpu() local
672 struct kthread *kthread = to_kthread(k); kthread_unpark() local
705 struct kthread *kthread = to_kthread(k); kthread_park() local
749 struct kthread *kthread; kthread_stop() local
841 struct kthread *kthread = to_kthread(p); kthread_affine_preferred() local
1703 struct kthread *kthread; kthread_associate_blkcg() local
1729 struct kthread *kthread; kthread_blkcg() local
[all...]
H A Dexit.c37 #include <linux/kthread.h>
903 struct kthread *kthread; in synchronize_group_exit()
909 kthread = tsk_is_kthread(tsk); in do_exit() local
910 if (unlikely(kthread)) in do_exit()
911 kthread_do_exit(kthread, code); in do_exit()
/linux/kernel/trace/
H A Dtrace_osnoise.c19 #include <linux/kthread.h>
231 struct task_struct *kthread;
264 struct task_struct *kthread;
305 if (tlat_var->kthread) in tlat_var_reset()
1693 this_cpu_osn_var()->kthread = NULL; in osnoise_migration_pending()
1830 wake_up_process(tlat->kthread); in timerlat_irq()
1836 wake_up_process(tlat->kthread); in timerlat_irq()
1929 tlat->kthread = current; in timerlat_main()
1982 struct task_struct *kthread; in stop_kthread()
1984 kthread in stop_kthread()
230 struct task_struct *kthread; global() member
263 struct task_struct *kthread; global() member
1981 struct task_struct *kthread; stop_kthread() local
2032 struct task_struct *kthread; start_kthread() local
2091 struct task_struct *kthread; start_per_cpu_kthreads() local
[all...]
H A Dtrace_events_trigger.c9 #include <linux/kthread.h>
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()
100 * Boot-time trigger registration can fail before kthread creation in trigger_data_free()
102 * init start the kthread to drain the list. in trigger_data_free()
/linux/fs/smb/server/
H A Dtransport_tcp.c61 static void tcp_stop_kthread(struct task_struct *kthread); in alloc_transport()
366 struct task_struct *kthread; in ksmbd_tcp_readv()
368 kthread = kthread_create(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", in ksmbd_tcp_readv()
370 if (IS_ERR(kthread)) { in ksmbd_tcp_readv()
371 rc = PTR_ERR(kthread); in ksmbd_tcp_readv()
379 get_task_struct(kthread); in ksmbd_tcp_readv()
380 iface->ksmbd_kthread = kthread; in ksmbd_tcp_readv()
381 wake_up_process(kthread); in ksmbd_tcp_readv()
830 pr_err("Can't start ksmbd main kthread: %d\n", ret);
920 static void tcp_stop_kthread(struct task_struct *kthread)
323 struct task_struct *kthread; ksmbd_tcp_run_kthread() local
630 tcp_stop_kthread(struct task_struct * kthread) tcp_stop_kthread() argument
[all...]
/linux/tools/testing/selftests/proc/
H A D.gitignore4 /fd-003-kthread
5 /proc-2-is-kthread
15 /proc-self-isnt-kthread
H A DMakefile9 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 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...]
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_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()
[all...]
H A Dccp-dev.c13 #include <linux/kthread.h>
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 Dcpumap.c31 #include <linux/kthread.h>
62 u32 cpu; /* kthread CPU and map index */
68 /* Queue with potential multi-producers, and single-consumer kthread */
70 struct task_struct *kthread;
81 * The kthread keeps it until nothing is left in GRO.
312 /* When kthread gives stop order, then rcpu have been disconnected in cpu_map_kthread_run()
344 * kthread CPU pinned. Lockless access to ptr_ring in cpu_map_kthread_run()
498 /* Setup kthread */ in __cpu_map_entry_alloc()
500 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc()
503 if (IS_ERR(rcpu->kthread)) { in __cpu_map_entry_alloc()
69 struct task_struct *kthread; global() member
[all...]
/linux/include/linux/
H A Dkthread.h11 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 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/Documentation/translations/zh_CN/dev-tools/
H A Dkcsan.rst38 kthread+0x23e/0x260
44 kthread+0x23e/0x260
66 kthread+0x23e/0x260
/linux/Documentation/features/sched/membarrier-sync-core/
H A Darch-support.txt24 # 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 DTODO9 * 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 Dvimc-streamer.h38 struct task_struct *kthread; member
/linux/kernel/printk/
H A Dnbcon.c1352 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/fs/ecryptfs/
H A DMakefile9 crypto.o keystore.o kthread.o debug.o
/linux/samples/bpf/
H A Dxdp_sample_user.c105 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 Dmsp3400-driver.h109 struct task_struct *kthread; member
/linux/kernel/rcu/
H A DKconfig266 bool "Perform RCU expedited work in a real-time kthread"
295 For each such CPU, a kthread ("rcuox/N") will be created to
299 also creates another kthread for each sqrt(nr_cpu_ids) CPUs
329 bool "Offload RCU callback from real-time kthread"
/linux/net/batman-adv/
H A Dtp_meter.c25 #include <linux/kthread.h>
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()
1022 pr_err("batadv: cannot create tp meter kthread\n"); in batadv_tp_start_kthread()
1027 /* drop reserved reference for kthread */ in batadv_tp_start_kthread()
1036 wake_up_process(kthread); in batadv_tp_start_kthread()
1161 /* start tp kthread. This way the write() call issued from userspace can in batadv_tp_start()
/linux/drivers/usb/atm/
H A Dueagle-atm.c114 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()
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10.h268 struct task_struct *kthread; member

12