Rechercher une page de manuel
kthread_stop
Langue: en
Version: May 2009 (fedora - 06/07/09)
Section: 9 (Appels noyau Linux)
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. Your threadfn must not call do_exit itself if you use this function! This can also be called after kthread_create instead of calling wake_up_process: the thread will exit without calling threadfn.
Returns the result of threadfn, or -EINTR if wake_up_process was never called.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre