11#define SYS_SEM_ATTR_PROTOCOL 0x0002
13#define SYS_SEM_ATTR_PSHARED 0x0200
45 lv2syscall4(90,(u64)sem,(u64)attr,initial_val,max_val);
46 return_to_user_prog(s32);
56 return_to_user_prog(s32);
67 lv2syscall2(92,sem,timeout_usec);
68 return_to_user_prog(s32);
79 return_to_user_prog(s32);
89 lv2syscall2(94,sem,count);
90 return_to_user_prog(s32);
100 lv2syscall2(114,sem,(u64)count);
101 return_to_user_prog(s32);
LV2_SYSCALL sysSemTryWait(sys_sem_t sem)
Reserve a semaphore (non-blocking).
LV2_SYSCALL sysSemWait(sys_sem_t sem, u64 timeout_usec)
Wait and reserve a semaphore.
LV2_SYSCALL sysSemDestroy(sys_sem_t sem)
Destroy a semaphore.
LV2_SYSCALL sysSemCreate(sys_sem_t *sem, const sys_sem_attr_t *attr, s32 initial_val, s32 max_val)
Create a semaphore.
struct sys_sem_attr sys_sem_attr_t
Semaphore sttributes data structure.
LV2_SYSCALL sysSemPost(sys_sem_t sem, s32 count)
Release a semaphore.
LV2_SYSCALL sysSemGetValue(sys_sem_t sem, s32 *count)
Get the value of a semaphore.
Semaphore sttributes data structure.
u32 attr_protocol
Management protocol (default is SYS_SEM_ATTR_PROTOCOL)
u32 pad
Unused padding member.
u32 attr_pshared
Sharing policy (default is SYS_SEM_ATTR_PSHARED)
char name[8]
Semaphore name.