Home
last modified time | relevance | path

Searched defs:sema (Results 1 – 3 of 3) sorted by relevance

/f-stack/freebsd/sys/
H A Dsema.h40 struct sema { struct
41 struct mtx sema_mtx; /* General protection lock. */ argument
42 struct cv sema_cv; /* Waiters. */ argument
43 int sema_waiters; /* Number of waiters. */ argument
44 int sema_value; /* Semaphore value. */ argument
57 #define sema_post(sema) _sema_post((sema), LOCK_FILE, LOCK_LINE) argument
58 #define sema_wait(sema) _sema_wait((sema), LOCK_FILE, LOCK_LINE) argument
59 #define sema_timedwait(sema, timo) \ argument
61 #define sema_trywait(sema) _sema_trywait((sema), LOCK_FILE, LOCK_LINE) argument
/f-stack/freebsd/kern/
H A Dkern_sema.c50 sema_init(struct sema *sema, int value, const char *description) in sema_init()
65 sema_destroy(struct sema *sema) in sema_destroy()
78 _sema_post(struct sema *sema, const char *file, int line) in _sema_post()
93 _sema_wait(struct sema *sema, const char *file, int line) in _sema_wait()
111 _sema_timedwait(struct sema *sema, int timo, const char *file, int line) in _sema_timedwait()
145 _sema_trywait(struct sema *sema, const char *file, int line) in _sema_trywait()
170 sema_value(struct sema *sema) in sema_value()
H A Dsysv_sem.c119 static struct semid_kernel *sema; /* semaphore id pool */ variable