kthread_stop(9) centos man page | unix.com

Man Page: kthread_stop

Operating Environment: centos

Section: 9

KTHREAD_STOP(9) 						   Driver Basics						   KTHREAD_STOP(9)

NAME
kthread_stop - stop a thread created by kthread_create.
SYNOPSIS
int kthread_stop(struct task_struct * k);
ARGUMENTS
k thread created by kthread_create.
DESCRIPTION
Sets kthread_should_stop for k to return true, wakes it, and waits for it to exit. This can also be called after kthread_create instead of calling wake_up_process: the thread will exit without calling threadfn. If threadfn may call do_exit itself, the caller must ensure task_struct can't go away. Returns the result of threadfn, or -EINTR if wake_up_process was never called.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 KTHREAD_STOP(9)
Related Man Pages
iv_thread_create(3) - debian
iv_thread(3) - debian
pthread_exit(3t) - hpux
kthread_destroy(9) - netbsd
tapset::irq(3stap) - debian
Similar Topics in the Unix Linux Community
Set hard block limit for user using quota
Best performance UNIX just for HOST Virtualization?
Tar Command
Unsure why access time on a directory change isn't changing
Please Welcome Dave Munro to the Moderator Team!