patch-2.4.19 linux-2.4.19/include/asm-mips64/semaphore.h
Next file: linux-2.4.19/include/asm-mips64/serial.h
Previous file: linux-2.4.19/include/asm-mips64/scatterlist.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/asm-mips64/semaphore.h
- Orig date:
Wed Jul 4 11:50:39 2001
diff -urN linux-2.4.18/include/asm-mips64/semaphore.h linux-2.4.19/include/asm-mips64/semaphore.h
@@ -89,6 +89,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;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)