mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Add VM_OBJECT_TRYLOCK().
This commit is contained in:
parent
88e9362de9
commit
bc73ee3fe7
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue