diff options
author | piso <piso@FreeBSD.org> | 2006-12-15 12:50:06 +0000 |
---|---|---|
committer | piso <piso@FreeBSD.org> | 2006-12-15 12:50:06 +0000 |
commit | 9ddea1329157d5feaa73563a77ab72f0409c9fb9 (patch) | |
tree | 2b90a6b533d7ba83f96147d69fd66948aea8feb3 /sys/netinet/libalias/alias_mod.c | |
parent | 45136271b2d887a9a6bc40220d19459fdb083e7a (diff) | |
download | FreeBSD-src-9ddea1329157d5feaa73563a77ab72f0409c9fb9.zip FreeBSD-src-9ddea1329157d5feaa73563a77ab72f0409c9fb9.tar.gz |
o made in kernel libalias mpsafe
o fixed a comment
o made in kernel libalias a bit less verbose (disabled automatic
logging everytime a new link is added or deleted)
Approved by: glebius (mentor)
Diffstat (limited to 'sys/netinet/libalias/alias_mod.c')
-rw-r--r-- | sys/netinet/libalias/alias_mod.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/libalias/alias_mod.c b/sys/netinet/libalias/alias_mod.c index 03daa1e..643fe5f 100644 --- a/sys/netinet/libalias/alias_mod.c +++ b/sys/netinet/libalias/alias_mod.c @@ -60,9 +60,9 @@ SLIST_HEAD(dll_chain, dll) dll_chain = SLIST_HEAD_INITIALIZER(foo); #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 @@ _handler_chain_init(void) { if (!rw_initialized(&handler_rw)) - LIBALIAS_LOCK_INIT(); + LIBALIAS_RWLOCK_INIT(); } static void @@ -103,12 +103,12 @@ _handler_chain_destroy(void) { 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() ; |