summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-06-04 19:59:23 +0000
committeralc <alc@FreeBSD.org>2003-06-04 19:59:23 +0000
commitf9029b703d104ae6fb2f946ae455719a0d92dc8a (patch)
treeb8f0925b606614863b8e6abca761be20c0d4258a /sys/vm/vm_object.h
parent3ff867a2512efc453a46319094c35f1b7b78c54e (diff)
downloadFreeBSD-src-f9029b703d104ae6fb2f946ae455719a0d92dc8a.zip
FreeBSD-src-f9029b703d104ae6fb2f946ae455719a0d92dc8a.tar.gz
- Add VM_OBJECT_TRYLOCK().
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 73d5d65..d07f183 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -180,6 +180,7 @@ extern struct vm_object kmem_object_store;
NULL, MTX_DEF | MTX_DUPOK)
#define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx)
#define VM_OBJECT_MTX(object) (&(object)->mtx)
+#define VM_OBJECT_TRYLOCK(object) mtx_trylock(&(object)->mtx)
#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
void vm_object_set_flag(vm_object_t object, u_short bits);
OpenPOWER on IntegriCloud