summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-26 18:11:43 +0000
committerattilio <attilio@FreeBSD.org>2013-02-26 18:11:43 +0000
commit134623836d0dcb10f5bc79c883bd239098952cca (patch)
tree53b8f81bf2dd71d981f19cb4460f54d0cd525234 /sys/vm/vm_object.h
parentcff31deb1a197b29ab976c135fdd01dfb6951a6a (diff)
parent49f99b72515864c7f48e1d57295de7c122876049 (diff)
downloadFreeBSD-src-134623836d0dcb10f5bc79c883bd239098952cca.zip
FreeBSD-src-134623836d0dcb10f5bc79c883bd239098952cca.tar.gz
MFC
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 7beee59..6d47d17 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -212,7 +212,9 @@ extern struct vm_object kmem_object_store;
mtx_init(&(object)->mtx, "vm object", \
(type), MTX_DEF | MTX_DUPOK)
#define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx)
-#define VM_OBJECT_MTX(object) (&(object)->mtx)
+#define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \
+ msleep((wchan), &(object)->mtx, (pri), \
+ (wmesg), (timo))
#define VM_OBJECT_TRYLOCK(object) mtx_trylock(&(object)->mtx)
#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
OpenPOWER on IntegriCloud