semaphore
include/sync/semaphore.h View source View on GitHubStructs
Section titled “Structs”semaphore
Section titled “semaphore” struct semaphore (4 fields) source
Functions
Section titled “Functions”semaphore_init
Section titled “semaphore_init”void semaphore_init(struct semaphore *s, int value, bool irq_disable) source semaphore_post
Section titled “semaphore_post”semaphore_postn
Section titled “semaphore_postn”Macros
Section titled “Macros”SEMAPHORE_INIT_IRQ_DISABLE
Section titled “SEMAPHORE_INIT_IRQ_DISABLE”#define SEMAPHORE_INIT_IRQ_DISABLE true source These are for the underlying spinlock
SEMAPHORE_INIT_NORMAL
Section titled “SEMAPHORE_INIT_NORMAL”#define SEMAPHORE_INIT_NORMAL false source