next up previous contents
Next: Semaphore Functionality Up: Semaphores: Implementation Previous: Usage   Contents

Initialization

int sema_module_init()
This function initializes Semaphore library module. It is typically called from $rtker\_init()$.

int sema_init(struct sema * sem,int count)
Every semaphore variable should be initialized by this function. The count variable is for the number of semaphore resources.



Soumyadeb Mitra 2002-08-07