Syscall to forcefully terminate a task * * @param uspace_taskid Pointer to task ID in user space. * * @return 0 on success or an error code from @ref errno.h. * */
| 404 | * |
| 405 | */ |
| 406 | sys_errno_t sys_task_kill(uspace_ptr_task_id_t uspace_taskid) |
| 407 | { |
| 408 | task_id_t taskid; |
| 409 | errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(taskid)); |
| 410 | if (rc != EOK) |
| 411 | return (sys_errno_t) rc; |
| 412 | |
| 413 | return (sys_errno_t) task_kill(taskid); |
| 414 | } |
| 415 | |
| 416 | /** Find task structure corresponding to task ID. |
| 417 | * |
nothing calls this directly
no test coverage detected