diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2007-03-09 16:27:11 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2007-03-09 16:27:11 +0000 |
| commit | 6e21afd40ca27a1aaef83296fa1e46fbc5e48017 (patch) | |
| tree | 71366da8c5df1e7210aad9d816166233c0107eff /sys/kern/kern_lock.c | |
| parent | f9feee175baa10825785cf7f2e596170612ae15d (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 85338364399e..02254a48d27e 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -64,22 +64,38 @@ __FBSDID("$FreeBSD$"); #include <ddb/ddb.h> static void db_show_lockmgr(struct lock_object *lock); #endif - +static void lock_lockmgr(struct lock_object *lock, int how); +static int unlock_lockmgr(struct lock_object *lock); struct lock_class lock_class_lockmgr = { .lc_name = "lockmgr", .lc_flags = LC_SLEEPLOCK | LC_SLEEPABLE | LC_RECURSABLE | LC_UPGRADABLE, #ifdef DDB - .lc_ddb_show = db_show_lockmgr + .lc_ddb_show = db_show_lockmgr, #endif + .lc_lock = lock_lockmgr, + .lc_unlock = unlock_lockmgr, }; - /* * Locking primitives implementation. * Locks provide shared/exclusive sychronization. */ +void +lock_lockmgr(struct lock_object *lock, int how) +{ + + panic("lockmgr locks do not support sleep interlocking"); +} + +int +unlock_lockmgr(struct lock_object *lock) +{ + + panic("lockmgr locks do not support sleep interlocking"); +} + #define COUNT(td, x) if ((td)) (td)->td_locks += (x) #define LK_ALL (LK_HAVE_EXCL | LK_WANT_EXCL | LK_WANT_UPGRADE | \ LK_SHARE_NONZERO | LK_WAIT_NONZERO) |
