RE: Kernel threads...

Manfred Spraul (Fabian.Frederick@prov-liege.be)
Fri, 19 Nov 1999 16:02:34 +0100


> I need to know if there's a way to terminate a kernel thread
> (friendly,
> killing ...) and a way to attach to it to wait for it's termination.
Both termination & info about it should be thread relevant itself
but common 'sigkilling/try catch' could be applied as well.

> If I try to launch (in kernel land) a kernel thread as follows:
>
> pid_kthread = kernel_thread(mythread, ...);
>
> how can I stop/kill it afterwards (from another process but
> also in kernel
> land)
AFAIK you won't get action from any process over kernel
threads.

> and wait for it having finished? sys_waitpid isn't a
> good solution
> as it expects to be the kernel thread a child of the current
> process..

Maybe you could explain the exact domain concerned as
in many cases you'd get lost in synchronisation using
those controls.

Regards, Fabian

> thanks,
>
> ------------------------------------------------------
> Germán Cancio Meliá IT/DIS CERN CH-1211 Genčve 23
> ------------------------------------------------------
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/