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

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

Include dependency graph for wait.c:

Go to the source code of this file.

Functions

syscall wait (semaphore sem)


Detailed Description

wait

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

Definition in file wait.c.


Function Documentation

syscall wait ( semaphore  sem  ) 

wait - make current process wait on a semaphore

Parameters:
sem semaphore for which to wait
Returns:
OK on success, SYSERR on failure

Definition at line 19 of file wait.c.

References sentry::count, currpid, disable(), enqueue(), isbadsem, OK, proctab, PRWAIT, sentry::queue, resched(), restore(), pentry::sem, semtab, pentry::state, and SYSERR.

Referenced by test_semWaiter(), uartRead(), and uartWrite().


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