#[unsafe(no_mangle)]pub unsafe extern "C" fn sys_sem_post(sem: *mut sem_t) -> i32Expand description
Release a semaphore.
This function can be used to allow the next blocked waiter to access this semaphore.
It will notify the next waiter that sem is available.
The semaphore is not deallocated after being released.
Returns 0 on success, or -EINVAL if sem is null.