kernel - add lockowned()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 12 Jun 2010 00:20:11 +0000 (17:20 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 12 Jun 2010 00:20:11 +0000 (17:20 -0700)
commit43903f4c2e5c1228cd4d319329a2c8b1fc5814d0
tree21bec02bc155df9f220cd4f45d9b4a25aa79d5fb
parent9f49bd272b220d77e45585a86017f6ca96b14a69
kernel - add lockowned()

* Add a simple function which returns TRUE if a lockmgr lock is likely
  owned by the caller.  Shared lock ownership can only be approximated.
  Designed for use in assertions.
sys/kern/kern_lock.c
sys/sys/lock.h