zephyr::raw

Function k_sem_reset

source
pub unsafe extern "C" fn k_sem_reset(sem: *mut k_sem)
Expand description

@brief Resets a semaphore’s count to zero.

This routine sets the count of @a sem to zero. Any outstanding semaphore takes will be aborted with -EAGAIN.

@param sem Address of the semaphore.