Skip to main content

Module semaphore

Module semaphore 

Source
Expand description

Semaphore syscall handlers.

Provides capability-enforced semaphore operations: create, wait, try_wait, post, close.

Functionsยง

resolve_sem ๐Ÿ”’
sys_sem_close
SYS_SEM_CLOSE: destroy a semaphore.
sys_sem_create
SYS_SEM_CREATE: create a semaphore with an initial count.
sys_sem_post
SYS_SEM_POST: increment the semaphore (wake a waiter).
sys_sem_trywait
SYS_SEM_TRYWAIT: non-blocking decrement.
sys_sem_wait
SYS_SEM_WAIT: decrement the semaphore (blocking if zero).