Home
last modified time | relevance | path

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

/linux-4.4.14/kernel/
Dkthread.c41 struct kthread { struct
57 container_of(vfork, struct kthread, exited) argument
59 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread()
64 static struct kthread *to_live_kthread(struct task_struct *k) in to_live_kthread()
151 struct kthread *kthread = to_kthread(task); in probe_kthread_data() local
154 probe_kernel_read(&data, &kthread->data, sizeof(data)); in probe_kthread_data()
158 static void __kthread_parkme(struct kthread *self) in __kthread_parkme()
177 static int kthread(void *_create) in kthread() function
184 struct kthread self; in kthread()
233 pid = kernel_thread(kthread, create, CLONE_FS | CLONE_FILES | SIGCHLD); in create_kthread()
[all …]
DMakefile10 kthread.o sys_ni.o nsproxy.o \
/linux-4.4.14/drivers/net/wimax/i2400m/
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()
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()
Dusb-rx.c436 struct task_struct *kthread; in i2400mu_rx_setup() local
438 kthread = kthread_run(i2400mu_rxd, i2400mu, "%s-rx", in i2400mu_rx_setup()
441 if (IS_ERR(kthread)) { in i2400mu_rx_setup()
442 result = PTR_ERR(kthread); in i2400mu_rx_setup()
454 struct task_struct *kthread; in i2400mu_rx_release() local
457 kthread = i2400mu->rx_kthread; in i2400mu_rx_release()
460 if (kthread) in i2400mu_rx_release()
461 kthread_stop(kthread); in i2400mu_rx_release()
/linux-4.4.14/drivers/crypto/ccp/
Dccp-dev.c135 wake_up_process(ccp->cmd_q[i].kthread); in ccp_enqueue_cmd()
167 wake_up_process(ccp->cmd_q[i].kthread); in ccp_do_cmd_backlog()
414 struct task_struct *kthread; in ccp_init() local
418 kthread = kthread_create(ccp_cmd_queue_thread, cmd_q, in ccp_init()
420 if (IS_ERR(kthread)) { in ccp_init()
422 PTR_ERR(kthread)); in ccp_init()
423 ret = PTR_ERR(kthread); in ccp_init()
427 cmd_q->kthread = kthread; in ccp_init()
428 wake_up_process(kthread); in ccp_init()
450 if (ccp->cmd_q[i].kthread) in ccp_init()
[all …]
Dccp-platform.c182 wake_up_process(ccp->cmd_q[i].kthread); in ccp_platform_suspend()
208 wake_up_process(ccp->cmd_q[i].kthread); in ccp_platform_resume()
Dccp-pci.c279 wake_up_process(ccp->cmd_q[i].kthread); in ccp_pci_suspend()
305 wake_up_process(ccp->cmd_q[i].kthread); in ccp_pci_resume()
Dccp-dev.h160 struct task_struct *kthread; member
/linux-4.4.14/drivers/media/radio/
Dradio-miropcm20.c72 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-4.4.14/drivers/media/platform/vivid/
DMakefile2 vivid-vid-cap.o vivid-vid-out.o vivid-kthread-cap.o vivid-kthread-out.o \
/linux-4.4.14/drivers/misc/sgi-xp/
Dxpc_main.c595 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()
1234 struct task_struct *kthread; in xpc_init() local
1296 kthread = kthread_run(xpc_hb_checker, NULL, XPC_HB_CHECK_THREAD_NAME); in xpc_init()
1297 if (IS_ERR(kthread)) { in xpc_init()
1308 kthread = kthread_run(xpc_initiate_discovery, NULL, in xpc_init()
[all …]
/linux-4.4.14/drivers/media/pci/pt1/
Dpt1.c80 struct task_struct *kthread; member
491 if (!pt1->kthread) { in pt1_start_polling()
492 pt1->kthread = kthread_run(pt1_thread, pt1, "earth-pt1"); in pt1_start_polling()
493 if (IS_ERR(pt1->kthread)) { in pt1_start_polling()
494 ret = PTR_ERR(pt1->kthread); in pt1_start_polling()
495 pt1->kthread = NULL; in pt1_start_polling()
525 if (count == 0 && pt1->kthread) { in pt1_stop_polling()
526 kthread_stop(pt1->kthread); in pt1_stop_polling()
527 pt1->kthread = NULL; in pt1_stop_polling()
1066 if (pt1->kthread) in pt1_remove()
[all …]
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c294 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()
Dsolo6x10.h274 struct task_struct *kthread; member
/linux-4.4.14/arch/um/kernel/
Dprocess.c161 int kthread = current->flags & PF_KTHREAD; in copy_thread() local
166 if (!kthread) { in copy_thread()
185 if (!kthread) { in copy_thread()
/linux-4.4.14/fs/ecryptfs/
DMakefile8 crypto.o keystore.o kthread.o debug.o
/linux-4.4.14/drivers/media/i2c/
Dmsp3400-driver.c319 if (NULL == state->kthread) in msp_wake_thread()
858 state->kthread = kthread_run(thread_func, client, "msp34xx"); in msp_probe()
860 if (IS_ERR(state->kthread)) in msp_probe()
873 if (state->kthread) { in msp_remove()
875 kthread_stop(state->kthread); in msp_remove()
Dmsp3400-driver.h101 struct task_struct *kthread; member
/linux-4.4.14/drivers/crypto/
Dsahara.c206 struct task_struct *kthread; member
659 wake_up_process(dev->kthread); in sahara_aes_crypt()
1099 wake_up_process(dev->kthread); in sahara_sha_enqueue()
1506 dev->kthread = kthread_run(sahara_queue_manage, dev, "sahara_crypto"); in sahara_probe()
1507 if (IS_ERR(dev->kthread)) { in sahara_probe()
1508 return PTR_ERR(dev->kthread); in sahara_probe()
1555 kthread_stop(dev->kthread); in sahara_probe()
1568 kthread_stop(dev->kthread); in sahara_remove()
/linux-4.4.14/Documentation/DocBook/
Ddevice-drivers.xml.db175 API-kthread-run
176 API-kthread-should-stop
177 API-kthread-should-park
178 API-kthread-freezable-should-stop
179 API-kthread-create-on-node
180 API-kthread-bind
181 API-kthread-unpark
182 API-kthread-park
183 API-kthread-stop
184 API-kthread-worker-fn
[all …]
D.device-drivers.xml.cmd2 … kernel/workqueue.c kernel/exit.c kernel/signal.c include/linux/kthread.h kernel/kthread.c lib/kob…
/linux-4.4.14/drivers/media/pci/saa7164/
Dsaa7164-core.c1403 dev->kthread = kthread_run(saa7164_thread_function, dev, in saa7164_initdev()
1405 if (IS_ERR(dev->kthread)) { in saa7164_initdev()
1406 dev->kthread = NULL; in saa7164_initdev()
1441 if (fw_debug && dev->kthread) { in saa7164_finidev()
1442 kthread_stop(dev->kthread); in saa7164_finidev()
1443 dev->kthread = NULL; in saa7164_finidev()
Dsaa7164.h490 struct task_struct *kthread; member
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-video.c1517 core->kthread = kthread_run(cx88_audio_thread, core, "cx88 tvaudio"); in cx8800_initdev()
1518 if (IS_ERR(core->kthread)) { in cx8800_initdev()
1519 err = PTR_ERR(core->kthread); in cx8800_initdev()
1547 if (core->kthread) { in cx8800_finidev()
1548 kthread_stop(core->kthread); in cx8800_finidev()
1549 core->kthread = NULL; in cx8800_finidev()
Dcx88.h384 struct task_struct *kthread; member
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000.h97 struct task_struct *kthread; member
/linux-4.4.14/Documentation/RCU/
Dstallwarn.txt147 If the relevant grace-period kthread has been unable to run prior to
150 rcu_preempt kthread starved for 2023 jiffies!
217 This message will include information on when the kthread last
Dlockdep-splat.txt56 [<ffffffff810975b6>] kthread+0xa6/0xb0
Dtrace.txt226 The number after the final slash is the CPU that the kthread
232 the number of times that this CPU's per-CPU kthread has gone
320 into a kthread. The number in parentheses is the difference
420 callback-offload kthread had to be deferred in order to avoid
Drcu_dereference.txt154 o Prior to kthread creation for kthread code.
/linux-4.4.14/drivers/usb/atm/
Dueagle-atm.c162 struct task_struct *kthread; member
2227 sc->kthread = kthread_create(uea_kthread, sc, "ueagle-atm"); in uea_boot()
2228 if (IS_ERR(sc->kthread)) { in uea_boot()
2254 ret = kthread_stop(sc->kthread); in uea_stop()
2666 wake_up_process(sc->kthread); in uea_probe()
/linux-4.4.14/drivers/block/aoe/
Daoecmd.c1288 kthread(void *vp) in kthread() function
1329 task = kthread_run(kthread, k, "%s", k->name); in aoe_ktstart()
/linux-4.4.14/Documentation/
Dkernel-per-CPU-kthreads.txt108 for example, ensure that at most one runnable kthread is present
Dkernel-parameters.txt3078 wake up the corresponding kthread, but degrades
3152 Set the number of NOCB kthread groups, which
/linux-4.4.14/Documentation/scsi/
DChangeLog.lpfc350 * Added use of wait_event to work with kthread interface.
381 kthread patch.
389 moved to kthread. kthread_stop() is not able to wake up thread
409 kthread interface.
/linux-4.4.14/init/
DKconfig711 For each such CPU, a kthread ("rcuox/N") will be created to
714 "s" for RCU-sched. Nothing prevents this kthread from running
749 callbacks are invoked by a per-CPU kthread whose name begins