Re: killing a kernel thread with SIGKILL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry my mistake in previous email - no explanation given.   The first
part is actually to show the proper way to send a signal to the kernel
thread (from within the kernel)- not sure if you are doing it that
way?

On 10/4/07, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
> http://www.scs.ch/~frey/linux/kernelthreads.html
>
> /* We need to do a memory barrier here to be sure that
>            the flags are visible on all CPUs.
>         */
>         mb();
>         kill_proc(kthread->thread->pid, SIGKILL, 1);
>
>         /* block till thread terminated */
>         down(&kthread->startstop_sem);

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux