Posts a signal to a specified kernel-only thread.
Item | Description |
---|---|
tid | Specifies the target kernel-only thread. If its value is -1, the signal is posted to the calling thread. |
sig | Specifies the signal number to post. |
The kthread_kill kernel service posts the signal sig to the kernel thread specified by the tid parameter. When the service is called from the process environment, the target thread must be in the same process as the calling thread. When the service is called from the interrupt environment, the signal is posted to the target thread, without a permission check.
The kthread_kill kernel service can be called from either the process environment or the interrupt environment.
The kthread_kill kernel service has no return values.