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

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

Include dependency graph for freesem.c:

Go to the source code of this file.


syscall freesem (semaphore sem)

Detailed Description


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

Definition in file freesem.c.

Function Documentation

syscall freesem ( semaphore  sem  ) 

freesem - deallocate a semaphore. Reset the semaphore count, releasing any processes in the waiting queue. Deallocate entry in global semaphore table.

sem id of semaphore to be released
OK on success, SYSERR on failure

Definition at line 21 of file freesem.c.

References sentry::count, dequeue(), disable(), isbadsem, nonempty, OK, sentry::queue, ready(), RESCHED_NO, restore(), semtab, SFREE, sentry::state, and SYSERR.

Referenced by test_deltaQueue(), test_procQueue(), test_semaphore(), test_semaphore2(), test_semaphore3(), and test_semaphore4().

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