MCPcopy Create free account
hub / github.com/HelenOS/helenos / sys_task_kill

Function sys_task_kill

kernel/generic/src/proc/task.c:406–414  ·  view source on GitHub ↗

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. * */

Source from the content-addressed store, hash-verified

404 *
405 */
406sys_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 *

Callers

nothing calls this directly

Calls 2

copy_from_uspaceFunction · 0.85
task_killFunction · 0.70

Tested by

no test coverage detected