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

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

Include dependency graph for signal.c:

Go to the source code of this file.

Functions

syscall signal (semaphore sem)


Detailed Description

signal

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

Definition in file signal.c.


Function Documentation

syscall signal ( semaphore  sem  ) 

signal - signal a semaphore, releasing one waiting process, and block

Parameters:
sem id of semaphore to signal
Returns:
OK on success, SYSERR on failure

Definition at line 18 of file signal.c.

References sentry::count, dequeue(), disable(), isbadsem, OK, sentry::queue, ready(), RESCHED_YES, restore(), semtab, and SYSERR.

Referenced by test_semaphore(), test_semaphore2(), and test_semaphore3().


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