aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorStephan Uphoff <ups@FreeBSD.org>2007-11-08 14:47:55 +0000
committerStephan Uphoff <ups@FreeBSD.org>2007-11-08 14:47:55 +0000
commitf53d15fe1b8a7a7df972f253b38c698f6ca45b71 (patch)
treee657852bc96f8f77553f7abb0596889a6b8d5e00 /sys/sys/lock.h
parent0559b904bc69c95a21b7b5a286242091064aa485 (diff)
downloadsrc-f53d15fe1b8a7a7df972f253b38c698f6ca45b71.tar.gz
src-f53d15fe1b8a7a7df972f253b38c698f6ca45b71.zip
Initial checkin for rmlock (read mostly lock) a multi reader single writer
lock optimized for almost exclusive reader access. (see also rmlock.9) TODO: Convert to per cpu variables linkerset as soon as it is available. Optimize UP (single processor) case.
Notes
Notes: svn path=/head/; revision=173444
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 6d35ce58be32..2a9c4aa7ddd2 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -222,6 +222,7 @@ extern struct lock_class lock_class_mtx_sleep;
extern struct lock_class lock_class_mtx_spin;
extern struct lock_class lock_class_sx;
extern struct lock_class lock_class_rw;
+extern struct lock_class lock_class_rm;
extern struct lock_class lock_class_lockmgr;
extern struct lock_class *lock_classes[];