Home | History | Annotate | Download | only in asm-x86

Lines Matching refs:semaphore

14  *                     the original code and to make semaphore waits
21 * also implemented the `trylock' semaphore operation.
35 * /pub/linux/src/semaphore/semaphore-2.0.24.tar.gz.
44 struct semaphore {
59 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
63 static inline void sema_init (struct semaphore *sem, int val)
66 * *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val);
76 static inline void init_MUTEX (struct semaphore *sem)
81 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
94 * routine that actually waits. See arch/i386/kernel/semaphore.c
96 static inline void down(struct semaphore * sem)
112 * Interruptible try to acquire a semaphore. If we obtained
115 static inline int down_interruptible(struct semaphore * sem)
135 * Non-blockingly attempt to down() a semaphore.
138 static inline int down_trylock(struct semaphore * sem)
158 * the semaphore was negative (== somebody was waiting on it).
160 static inline void up(struct semaphore * sem)