pub unsafe extern "C" fn k_sem_init(
    sem: *mut k_sem,
    initial_count: c_uint,
    limit: c_uint,
) -> c_intExpand description
@brief Initialize a semaphore.
This routine initializes a semaphore object, prior to its first use.
@param sem Address of the semaphore. @param initial_count Initial semaphore count. @param limit Maximum permitted semaphore count.
@see K_SEM_MAX_LIMIT
@retval 0 Semaphore created successfully @retval -EINVAL Invalid values