diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-13 15:46:22 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-13 15:46:22 +0000 |
commit | 11fd22a2eda480d68fba16748257d64de3ce31fc (patch) | |
tree | 0e30a8d00ee1b4ff1a7176e01c587f81245d2c19 /lib | |
parent | c5e0588509504ef66c639c117c2c55cc2c3f8d3c (diff) |
KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)
This adds a new assertion macro, KERNEL_ASSERT_LOCKED(), to assert that
kernel_lock is held. In the long process of removing kernel_lock, there will
be a lot (hundreds or thousands) of use of this; virtually almost all functions
in !MP-safe subsystems should have this assertion. Thus this assertion should
have a short, good name.
Not only that "KERNEL_ASSERT_LOCKED" is consistent with other KERNEL_* and
SCHED_ASSERT_LOCKED() macros.
Input from dlg@ guenther@ kettenis@.
OK dlg@ guenther@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions