1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

- Add VM_OBJECT_TRYLOCK().

This commit is contained in:
Alan Cox 2003-06-04 19:59:23 +00:00
parent 88e9362de9
commit bc73ee3fe7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115853

View File

@ -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);