diff options
author | attilio <attilio@FreeBSD.org> | 2013-02-26 18:11:43 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-02-26 18:11:43 +0000 |
commit | 134623836d0dcb10f5bc79c883bd239098952cca (patch) | |
tree | 53b8f81bf2dd71d981f19cb4460f54d0cd525234 /sys/vm/vm_object.h | |
parent | cff31deb1a197b29ab976c135fdd01dfb6951a6a (diff) | |
parent | 49f99b72515864c7f48e1d57295de7c122876049 (diff) | |
download | FreeBSD-src-134623836d0dcb10f5bc79c883bd239098952cca.zip FreeBSD-src-134623836d0dcb10f5bc79c883bd239098952cca.tar.gz |
MFC
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r-- | sys/vm/vm_object.h | 4 |
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) |