| 
    UbixOS V2
    2.0
    
   | 
 


Go to the source code of this file.
Data Structures | |
| struct | sys_sem | 
Typedefs | |
| typedef uint32_t | semID_t | 
| typedef struct sys_sem | sys_sem_t | 
Functions | |
| int | sem_close (semID_t id) | 
| int | sem_destroy (sys_sem_t **) | 
| int | sem_getvalue (semID_t id, int *val) | 
| int | sem_init (sys_sem_t **, uint8_t) | 
| int | sem_open (semID_t *id, const char *name, int oflag, mode_t mode, unsigned int value) | 
| int | sem_post (semID_t id) | 
| int | sem_timedwait (semID_t id, const struct timespec *) | 
| int | sem_trywait (semID_t id) | 
| int | sem_unlink (const char *name) | 
| int | sem_wait (semID_t id) | 
| int sem_destroy | ( | sys_sem_t ** | ) | 
Definition at line 87 of file sem.c.
References sys_sem::cond, EINVAL, ENOERR, kfree(), sys_sem::mutex, NULL, ubthread_cond_destroy(), and ubthread_mutex_destroy().
Referenced by sys_sem_free().

Definition at line 56 of file sem.c.
References sys_sem::cond, ENOERR, kmalloc(), kprintf(), sys_sem::mutex, NULL, sys_sem::signaled, ubthread_cond_init(), and ubthread_mutex_init().
Referenced by sys_sem_new().
