Initializes semaphore sem with a count of count. Semaphores in the kernel are normally allocated statically (i.e., Semaphore x;) and must be initialized ( semInit(&x, 1);) before they are used.
void semInit(Semaphore *sem, int count)