diff options
author | Attilio Rao <attilio@FreeBSD.org> | 2007-11-18 14:43:53 +0000 |
---|---|---|
committer | Attilio Rao <attilio@FreeBSD.org> | 2007-11-18 14:43:53 +0000 |
commit | f9721b43ed506f2ab7b1a60c6b92a9e4a360c6aa (patch) | |
tree | 85188d6cc1153cc1df464313f1de2d46f0d4f067 /sys/kern/kern_rmlock.c | |
parent | 7c7454fe95c01eb79bb11d19e1c97ac6a932594a (diff) | |
download | src-f9721b43ed506f2ab7b1a60c6b92a9e4a360c6aa.tar.gz src-f9721b43ed506f2ab7b1a60c6b92a9e4a360c6aa.zip |
Notes
Diffstat (limited to 'sys/kern/kern_rmlock.c')
-rw-r--r-- | sys/kern/kern_rmlock.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/kern_rmlock.c b/sys/kern/kern_rmlock.c index 276aee62606c..cbf5cc5c955b 100644 --- a/sys/kern/kern_rmlock.c +++ b/sys/kern/kern_rmlock.c @@ -71,12 +71,14 @@ static __inline void compiler_memory_barrier(void) { __asm __volatile("":::"memory"); } +static void assert_rm(struct lock_object *lock, int what); static void lock_rm(struct lock_object *lock, int how); static int unlock_rm(struct lock_object *lock); struct lock_class lock_class_rm = { .lc_name = "rm", .lc_flags = LC_SLEEPLOCK | LC_RECURSABLE, + .lc_assert = assert_rm, #if 0 #ifdef DDB .lc_ddb_show = db_show_rwlock, @@ -87,6 +89,13 @@ struct lock_class lock_class_rm = { }; static void +assert_rm(struct lock_object *lock, int what) +{ + + panic("assert_rm called"); +} + +static void lock_rm(struct lock_object *lock, int how) { panic("lock_rm called"); } |