terminating kernel thread
I have searched over the net but could not find a good explanation of how to terminate a kernel thread.
For an academic project, I have created several kernel thread during system boot, and then try to kill them.
I use do_exit() in thread function to let thread to terminate itself bu I got this error
"unable to handle kernel paging request at virtual address 6f635f6f
I used kill_proc(...) but got the same kind of error.
what is the true way to terminate a kernel thread?