summaryrefslogtreecommitdiffstats
path: root/sys/net/pfil.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-05-29 10:52:37 +0000
committerrwatson <rwatson@FreeBSD.org>2009-05-29 10:52:37 +0000
commit52ba25996039c990d61c87ec08ee18c634d5e1ae (patch)
treebcd8f26df00704f44c24b12794f3b744baf80489 /sys/net/pfil.h
parentbe2772a684b761a0e896a5808a48c30e67fdbbe5 (diff)
downloadFreeBSD-src-52ba25996039c990d61c87ec08ee18c634d5e1ae.zip
FreeBSD-src-52ba25996039c990d61c87ec08ee18c634d5e1ae.tar.gz
Make the rmlock(9) interface a bit more like the rwlock(9) interface:
- Add rm_init_flags() and accept extended options only for that variation. - Add a flags space specifically for rm_init_flags(), rather than borrowing the lock_init() flag space. - Define flag RM_RECURSE to use instead of LO_RECURSABLE. - Define flag RM_NOWITNESS to allow an rmlock to be exempt from WITNESS checking; this wasn't possible previously as rm_init() always passed LO_WITNESS when initializing an rmlock's struct lock. - Add RM_SYSINIT_FLAGS(). - Rename embedded mutex in rmlocks to make it more obvious what it is. - Update consumers. - Update man page.
Diffstat (limited to 'sys/net/pfil.h')
-rw-r--r--sys/net/pfil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/pfil.h b/sys/net/pfil.h
index 5db9e55..48b1db8 100644
--- a/sys/net/pfil.h
+++ b/sys/net/pfil.h
@@ -95,7 +95,7 @@ struct pfil_head *pfil_head_get(int, u_long);
#define PFIL_HOOKED(p) ((p)->ph_nhooks > 0)
#define PFIL_LOCK_INIT(p) \
- rm_init(&(p)->ph_lock, "PFil hook read/write mutex", LO_RECURSABLE)
+ rm_init_flags(&(p)->ph_lock, "PFil hook read/write mutex", RM_RECURSE)
#define PFIL_LOCK_DESTROY(p) rm_destroy(&(p)->ph_lock)
#define PFIL_RLOCK(p, t) rm_rlock(&(p)->ph_lock, (t))
#define PFIL_WLOCK(p) rm_wlock(&(p)->ph_lock)
OpenPOWER on IntegriCloud