util_semaphore_init() function
Initialize a semaphore. This routine initializes a semaphore object, prior to its first use.
Arguments
sem
Address of the semaphore.
initial_count
Initial semaphore count.
limit
Maximum permitted semaphore count.
Return value
0 Creat a semaphore succcess