Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/system/sleep.c File Reference

#include <kernel.h>
#include <proc.h>
#include <queue.h>
#include <clock.h>

Include dependency graph for sleep.c:

Go to the source code of this file.

Functions

syscall sleep (int ms)


Detailed Description

sleep

Id
sleep.c 226 2007-07-12 01:18:27Z mschul

Definition in file sleep.c.


Function Documentation

syscall sleep ( int  ms  ) 

Delay the calling process n milliseconds.

Parameters:
ms number of milliseconds to sleep
Returns:
OK if process is sleeping, SYSERR if no clock

Definition at line 19 of file sleep.c.

References ASSERT, currpid, disable(), insertd(), OK, proctab, PRSLEEP, resched(), restore(), sleepq, pentry::state, and SYSERR.

Referenced by shell(), testItem(), xsh_exit(), xsh_kill(), and xsh_sleep().


Generated on Thu Oct 9 22:35:14 2008 for xinu by  doxygen 1.5.5