diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2007-11-10 15:06:30 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2007-11-10 15:06:30 +0000 |
| commit | 433ea89af4f7413891e69b8c0a94503a82a2bac7 (patch) | |
| tree | ac64fe62a0eb40219166a0ac453eb47a39724315 /sys | |
| parent | 01ea2a88225771d58d58641582e066b897b3638c (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_rmlock.c | 7 | ||||
| -rw-r--r-- | sys/sys/rmlock.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/kern_rmlock.c b/sys/kern/kern_rmlock.c index 5a918111114e9..276aee62606c9 100644 --- a/sys/kern/kern_rmlock.c +++ b/sys/kern/kern_rmlock.c @@ -175,6 +175,13 @@ rm_destroy(struct rmlock *rm) lock_destroy(&rm->lock_object); } +int +rm_wowned(struct rmlock *rm) +{ + + return (mtx_owned(&rm->rm_lock)); +} + void rm_sysinit(void *arg) { diff --git a/sys/sys/rmlock.h b/sys/sys/rmlock.h index 04ccb3820e6b9..ab0b5666fb7d4 100644 --- a/sys/sys/rmlock.h +++ b/sys/sys/rmlock.h @@ -42,6 +42,7 @@ void rm_init(struct rmlock *rm, const char *name, int opts); void rm_destroy(struct rmlock *rm); +int rm_wowned(struct rmlock *rm); void rm_sysinit(void *arg); |
