/Linux-v4.19/kernel/ |
D | kthread.c | 43 struct kthread { struct 60 static inline void set_kthread_struct(void *kthread) in set_kthread_struct() argument 67 current->set_child_tid = (__force void __user *)kthread; in set_kthread_struct() 70 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread() 78 struct kthread *kthread; in free_kthread_struct() local 84 kthread = to_kthread(k); in free_kthread_struct() 86 WARN_ON_ONCE(kthread && kthread->blkcg_css); in free_kthread_struct() 88 kfree(kthread); in free_kthread_struct() 170 struct kthread *kthread = to_kthread(task); in kthread_probe_data() local 173 probe_kernel_read(&data, &kthread->data, sizeof(data)); in kthread_probe_data() [all …]
|
/Linux-v4.19/drivers/net/wimax/i2400m/ |
D | usb-tx.c | 246 struct task_struct *kthread; in i2400mu_tx_setup() local 248 kthread = kthread_run(i2400mu_txd, i2400mu, "%s-tx", 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()
|
D | usb-rx.c | 433 struct task_struct *kthread; in i2400mu_rx_setup() local 435 kthread = kthread_run(i2400mu_rxd, i2400mu, "%s-rx", 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()
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-dev-v3.c | 470 struct task_struct *kthread; in ccp_init() local 474 kthread = kthread_create(ccp_cmd_queue_thread, cmd_q, in ccp_init() 476 if (IS_ERR(kthread)) { in ccp_init() 478 PTR_ERR(kthread)); in ccp_init() 479 ret = PTR_ERR(kthread); in ccp_init() 483 cmd_q->kthread = kthread; in ccp_init() 484 wake_up_process(kthread); in ccp_init() 510 if (ccp->cmd_q[i].kthread) in ccp_init() 511 kthread_stop(ccp->cmd_q[i].kthread); in ccp_init() 549 if (ccp->cmd_q[i].kthread) in ccp_destroy() [all …]
|
D | ccp-dev-v5.c | 943 struct task_struct *kthread; in ccp5_init() local 947 kthread = kthread_create(ccp_cmd_queue_thread, cmd_q, in ccp5_init() 949 if (IS_ERR(kthread)) { in ccp5_init() 951 PTR_ERR(kthread)); in ccp5_init() 952 ret = PTR_ERR(kthread); in ccp5_init() 956 cmd_q->kthread = kthread; in ccp5_init() 957 wake_up_process(kthread); in ccp5_init() 986 if (ccp->cmd_q[i].kthread) in ccp5_init() 987 kthread_stop(ccp->cmd_q[i].kthread); in ccp5_init() 1037 if (ccp->cmd_q[i].kthread) in ccp5_destroy() [all …]
|
D | ccp-dev.c | 321 wake_up_process(ccp->cmd_q[i].kthread); in ccp_enqueue_cmd() 353 wake_up_process(ccp->cmd_q[i].kthread); in ccp_do_cmd_backlog() 546 wake_up_process(ccp->cmd_q[i].kthread); in ccp_dev_suspend() 571 wake_up_process(ccp->cmd_q[i].kthread); in ccp_dev_resume()
|
/Linux-v4.19/drivers/media/radio/ |
D | radio-miropcm20.c | 72 struct task_struct *kthread; member 387 IS_ERR_OR_NULL(dev->kthread)) { in pcm20_open() 388 dev->kthread = kthread_run(pcm20_thread, dev, "%s", in pcm20_open() 390 if (IS_ERR(dev->kthread)) { in pcm20_open() 393 return PTR_ERR(dev->kthread); in pcm20_open() 403 if (v4l2_fh_is_singular_file(file) && !IS_ERR_OR_NULL(dev->kthread)) { in pcm20_release() 404 kthread_stop(dev->kthread); in pcm20_release() 405 dev->kthread = NULL; in pcm20_release()
|
/Linux-v4.19/kernel/trace/ |
D | trace_hwlat.c | 352 struct task_struct *kthread; in start_kthread() local 365 kthread = kthread_create(kthread_fn, NULL, "hwlatd"); in start_kthread() 366 if (IS_ERR(kthread)) { in start_kthread() 373 sched_setaffinity(kthread->pid, current_mask); in start_kthread() 375 hwlat_kthread = kthread; in start_kthread() 376 wake_up_process(kthread); in start_kthread()
|
/Linux-v4.19/drivers/misc/sgi-xp/ |
D | xpc_main.c | 595 struct task_struct *kthread; in xpc_activate_partition() local 606 kthread = kthread_run(xpc_activating, (void *)((u64)partid), "xpc%02d", in xpc_activate_partition() 608 if (IS_ERR(kthread)) { in xpc_activate_partition() 785 struct task_struct *kthread; in xpc_create_kthreads() local 814 kthread = kthread_run(xpc_kthread_start, (void *)args, in xpc_create_kthreads() 816 if (IS_ERR(kthread)) { in xpc_create_kthreads() 1233 struct task_struct *kthread; in xpc_init() local 1295 kthread = kthread_run(xpc_hb_checker, NULL, XPC_HB_CHECK_THREAD_NAME); in xpc_init() 1296 if (IS_ERR(kthread)) { in xpc_init() 1307 kthread = kthread_run(xpc_initiate_discovery, NULL, in xpc_init() [all …]
|
/Linux-v4.19/drivers/media/platform/vivid/ |
D | Makefile | 3 vivid-vid-cap.o vivid-vid-out.o vivid-kthread-cap.o vivid-kthread-out.o \
|
/Linux-v4.19/kernel/bpf/ |
D | cpumap.c | 57 struct task_struct *kthread; member 159 kthread_stop(rcpu->kthread); in cpu_map_kthread_stop() 336 rcpu->kthread = kthread_create_on_node(cpu_map_kthread_run, rcpu, numa, in __cpu_map_entry_alloc() 338 if (IS_ERR(rcpu->kthread)) in __cpu_map_entry_alloc() 345 kthread_bind(rcpu->kthread, cpu); in __cpu_map_entry_alloc() 346 wake_up_process(rcpu->kthread); in __cpu_map_entry_alloc() 673 wake_up_process(rcpu->kthread); in __cpu_map_flush()
|
/Linux-v4.19/drivers/media/cec/ |
D | cec-core.c | 288 adap->kthread = kthread_run(cec_thread_func, adap, "cec-%s", name); in cec_allocate_adapter() 289 if (IS_ERR(adap->kthread)) { in cec_allocate_adapter() 291 res = PTR_ERR(adap->kthread); in cec_allocate_adapter() 305 kthread_stop(adap->kthread); in cec_allocate_adapter() 424 kthread_stop(adap->kthread); in cec_delete_adapter()
|
/Linux-v4.19/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2.c | 294 solo_dev->kthread = kthread_run(solo_thread, solo_dev, SOLO6X10_NAME "_disp"); in solo_start_thread() 296 if (IS_ERR(solo_dev->kthread)) { in solo_start_thread() 297 ret = PTR_ERR(solo_dev->kthread); in solo_start_thread() 298 solo_dev->kthread = NULL; in solo_start_thread() 308 if (!solo_dev->kthread) in solo_stop_thread() 312 kthread_stop(solo_dev->kthread); in solo_stop_thread() 313 solo_dev->kthread = NULL; in solo_stop_thread()
|
/Linux-v4.19/drivers/media/pci/pt1/ |
D | pt1.c | 88 struct task_struct *kthread; member 657 if (!pt1->kthread) { in pt1_start_polling() 658 pt1->kthread = kthread_run(pt1_thread, pt1, "earth-pt1"); in pt1_start_polling() 659 if (IS_ERR(pt1->kthread)) { in pt1_start_polling() 660 ret = PTR_ERR(pt1->kthread); in pt1_start_polling() 661 pt1->kthread = NULL; in pt1_start_polling() 691 if (count == 0 && pt1->kthread) { in pt1_stop_polling() 692 kthread_stop(pt1->kthread); in pt1_stop_polling() 693 pt1->kthread = NULL; in pt1_stop_polling() 1287 if (pt1->kthread) in pt1_remove() [all …]
|
/Linux-v4.19/samples/bpf/ |
D | xdp_redirect_cpu_user.c | 127 struct record kthread; member 194 rec->kthread.cpu = alloc_record_per_cpu(); in alloc_stats_record() 209 free(r->kthread.cpu); in free_stats_record() 351 rec = &stats_rec->kthread; in stats_print() 352 prev = &stats_prev->kthread; in stats_print() 438 map_collect_percpu(fd, 0, &rec->kthread); in stats_collect()
|
/Linux-v4.19/Documentation/driver-api/ |
D | basics.rst | 76 .. kernel-doc:: include/linux/kthread.h 79 .. kernel-doc:: kernel/kthread.c
|
/Linux-v4.19/arch/um/kernel/ |
D | process.c | 160 int kthread = current->flags & PF_KTHREAD; in copy_thread() local 165 if (!kthread) { in copy_thread() 184 if (!kthread) { in copy_thread()
|
/Linux-v4.19/Documentation/RCU/ |
D | stallwarn.txt | 40 This message will include information on when the kthread last 42 result in the "rcu_.*kthread starved for" console-log message, 213 detection passes that the grace-period kthread has made across this 255 …All QSes seen, last rcu_preempt kthread activity 23807 (4297905177-4297881370), jiffies_till_next_… 258 since the grace-period kthread ran. The "jiffies_till_next_fqs" 259 indicates how frequently that kthread should run, giving the number 264 If the relevant grace-period kthread has been unable to run prior to 268 kthread starved for 23807 jiffies! g7075 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x1 ->cpu=5 274 to the grace-period kthread, the "RCU_GP_WAIT_FQS" indicates that the 275 kthread is waiting for a short timeout, the "state" precedes value of the [all …]
|
/Linux-v4.19/tools/testing/selftests/proc/ |
D | .gitignore | 3 /fd-003-kthread
|
D | Makefile | 7 TEST_GEN_PROGS += fd-003-kthread
|
/Linux-v4.19/fs/ecryptfs/ |
D | Makefile | 8 crypto.o keystore.o kthread.o debug.o
|
/Linux-v4.19/drivers/iio/trigger/ |
D | Kconfig | 48 tristate "A kthread based hammering loop trigger" 53 Uses a tight loop in a kthread. Will only work with lower half only
|
/Linux-v4.19/drivers/media/i2c/ |
D | msp3400-driver.c | 314 if (NULL == state->kthread) in msp_wake_thread() 860 state->kthread = kthread_run(thread_func, client, "msp34xx"); in msp_probe() 862 if (IS_ERR(state->kthread)) in msp_probe() 875 if (state->kthread) { in msp_remove() 877 kthread_stop(state->kthread); in msp_remove()
|
D | msp3400-driver.h | 103 struct task_struct *kthread; member
|
/Linux-v4.19/drivers/crypto/ |
D | sahara.c | 201 struct task_struct *kthread; member 657 wake_up_process(dev->kthread); in sahara_aes_crypt() 1115 wake_up_process(dev->kthread); in sahara_sha_enqueue() 1489 dev->kthread = kthread_run(sahara_queue_manage, dev, "sahara_crypto"); in sahara_probe() 1490 if (IS_ERR(dev->kthread)) { in sahara_probe() 1491 return PTR_ERR(dev->kthread); in sahara_probe() 1538 kthread_stop(dev->kthread); in sahara_probe() 1551 kthread_stop(dev->kthread); in sahara_remove()
|