#include <kernel.h>
#include <proc.h>
#include <queue.h>
#include <semaphore.h>
Go to the source code of this file.
Functions | |
syscall | wait (semaphore sem) |
Definition in file wait.c.
syscall wait | ( | semaphore | sem | ) |
wait - make current process wait on a semaphore
sem | semaphore for which to wait |
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().