kill.c File Reference

Provides: kill. More...

#include <thread.h>
#include <queue.h>
#include <memory.h>

Include dependency graph for kill.c:

Go to the source code of this file.

Functions

void xdone (void)
 Print system completion message as last thread exits.
syscall kill (int tid)
 Kill a thread and remove it from the system.


Detailed Description

Provides: kill.

Id
kill.c 1521 2008-08-27 21:51:17Z mschul

Definition in file kill.c.


Function Documentation

syscall kill ( int  tid  ) 

Kill a thread and remove it from the system.

Parameters:
tid target thread
Returns:
OK on success, SYSERR otherwise

Definition at line 21 of file kill.c.

References disable, getitem(), NULLTHREAD, OK, resched(), restore, send(), SYSERR, thrcount, THRCURR, THRFREE, THRREADY, THRSLEEP, THRWAIT, and xdone().

Referenced by test_preempt(), userret(), xsh_exit(), and xsh_kill().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Fri Sep 19 13:40:29 2008 for Embedded XINU by  doxygen 1.5.6