patch-2.4.19 linux-2.4.19/include/asm-mips/semaphore.h
Next file: linux-2.4.19/include/asm-mips/serial.h
Previous file: linux-2.4.19/include/asm-mips/scatterlist.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/asm-mips/semaphore.h
- Orig date:
Sun Sep 9 10:43:01 2001
diff -urN linux-2.4.18/include/asm-mips/semaphore.h linux-2.4.19/include/asm-mips/semaphore.h
@@ -94,6 +94,10 @@
__down(sem);
}
+/*
+ * Interruptible try to acquire a semaphore. If we obtained
+ * it, return zero. If we were interrupted, returns -EINTR
+ */
static inline int down_interruptible(struct semaphore * sem)
{
int ret = 0;
@@ -108,6 +112,10 @@
#ifndef CONFIG_CPU_HAS_LLDSCD
+/*
+ * Non-blockingly attempt to down() a semaphore.
+ * Returns zero if we acquired it
+ */
static inline int down_trylock(struct semaphore * sem)
{
int ret = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)