patch-2.4.20 linux-2.4.20/include/asm-sh/semaphore.h
Next file: linux-2.4.20/include/asm-sh/socket.h
Previous file: linux-2.4.20/include/asm-sh/pgtable-2level.h
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Thu Nov 28 15:53:15 2002
-  Orig file: 
linux-2.4.19/include/asm-sh/semaphore.h
-  Orig date: 
Sat Sep  8 12:29:09 2001
diff -urN linux-2.4.19/include/asm-sh/semaphore.h linux-2.4.20/include/asm-sh/semaphore.h
@@ -135,5 +135,10 @@
 		__up(sem);
 }
 
+static inline int sem_getcount(struct semaphore *sem)
+{
+	return atomic_read(&sem->count);
+}
+
 #endif
 #endif /* __ASM_SH_SEMAPHORE_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)