patch-2.2.18 linux/include/asm-ppc/semaphore.h
Next file: linux/include/asm-ppc/smp.h
Previous file: linux/include/asm-ppc/processor.h
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Fri Sep 1 21:40:34 2000
- Orig file:
v2.2.17/include/asm-ppc/semaphore.h
- Orig date:
Fri Apr 21 12:46:49 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/asm-ppc/semaphore.h linux/include/asm-ppc/semaphore.h
@@ -23,6 +23,11 @@
#define MUTEX_LOCKED ((struct semaphore) \
{ ATOMIC_INIT(0), ATOMIC_INIT(0), NULL })
+#define init_MUTEX(x) *(x)=MUTEX
+#define init_MUTEX_LOCKED(x) *(x)=MUTEX_LOCKED
+#define DECLARE_MUTEX(name) struct semaphore name=MUTEX
+#define DECLARE_MUTEX_LOCKED(name) struct semaphore name=MUTEX_LOCKED
+
extern void __down(struct semaphore * sem);
extern int __down_interruptible(struct semaphore * sem);
extern int __down_trylock(struct semaphore * sem);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)