UbixOS
2.0
|
#include <ubixos/sem.h>
#include <sys/types.h>
#include <ubixos/errno.h>
#include <ubixos/time.h>
#include <ubixos/kpanic.h>
#include <lib/kmalloc.h>
Go to the source code of this file.
Functions | |
int | sem_close (semID_t id) |
err_t | sem_destroy (sys_sem_t **sem) |
int | sem_getvalue (semID_t id, int *val) |
err_t | sem_init (sys_sem_t **sem, uint8_t count) |
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 *ts) |
int | sem_trywait (semID_t id) |
int | sem_unlink (const char *name) |
int | sem_wait (semID_t id) |
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().