PERFORCE change 108764 for review
Paolo Pisati
piso at FreeBSD.org
Mon Oct 30 17:21:01 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=108764
Change 108764 by piso at piso_newluxor on 2006/10/30 17:20:34
Rename LIBALIAS_LOCK_INIT and LIBALIAS_LOCK_DESTROY to
LIBALIAS_RWLOCK_INIT and LIBALIAS_RWLOCK_DESTROY to avoid
name clashes.
Affected files ...
.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#25 edit
Differences ...
==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#25 (text+ko) ====
@@ -60,9 +60,9 @@
#ifdef _KERNEL
-#define LIBALIAS_LOCK_INIT() \
+#define LIBALIAS_RWLOCK_INIT() \
rw_init(&handler_rw, "Libalias_modules_rwlock")
-#define LIBALIAS_LOCK_DESTROY() rw_destroy(&handler_rw)
+#define LIBALIAS_RWLOCK_DESTROY() rw_destroy(&handler_rw)
#define LIBALIAS_WLOCK_ASSERT() \
rw_assert(&handler_rw, RA_WLOCKED)
@@ -95,7 +95,7 @@
{
if (!rw_initialized(&handler_rw))
- LIBALIAS_LOCK_INIT();
+ LIBALIAS_RWLOCK_INIT();
}
static void
@@ -103,12 +103,12 @@
{
if (rw_initialized(&handler_rw))
- LIBALIAS_LOCK_DESTROY();
+ LIBALIAS_RWLOCK_DESTROY();
}
#else
-#define LIBALIAS_LOCK_INIT() ;
-#define LIBALIAS_LOCK_DESTROY() ;
+#define LIBALIAS_RWLOCK_INIT() ;
+#define LIBALIAS_RWLOCK_DESTROY() ;
#define LIBALIAS_WLOCK_ASSERT() ;
#define LIBALIAS_RLOCK() ;
#define LIBALIAS_RUNLOCK() ;
More information about the p4-projects
mailing list