Lines Matching defs:semaphore
25 struct semaphore {
49 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
54 extern inline void sema_init (struct semaphore *sem, int val)
56 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val);
59 static inline void init_MUTEX (struct semaphore *sem)
64 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
69 static inline int sem_getcount(struct semaphore *sem)
74 asmlinkage void __down(struct semaphore * sem);
75 asmlinkage int __down_interruptible(struct semaphore * sem);
76 asmlinkage void __up(struct semaphore * sem);
79 * interrupts while we're messing with the semaphore. Sorry.
82 extern __inline__ void down(struct semaphore * sem)
97 extern __inline__ int down_interruptible(struct semaphore * sem)
118 extern __inline__ int down_trylock(struct semaphore * sem)
135 * the semaphore was negative (== somebody was waiting on it).
137 extern __inline__ void up(struct semaphore * sem)