Home | History | Annotate | Download | only in include

Lines Matching refs:sem

73 #define DECLARE_INIT_SEMAPHORE(sem, cnt)	\
74 struct semaphore sem = { \
77 .next = &sem.list, \
78 .prev = &sem.list \
94 static inline void sem_set_invalid(struct semaphore *sem)
96 if (!!sem)
97 sem->list.next = NULL;
103 static inline bool sem_is_valid(struct semaphore *sem)
105 return ((!!sem) && (!!sem->list.next));