Searched refs:am_lock (Results 1 – 10 of 10) sorted by relevance
162 KASSERT(amap->am_lock != NULL); in amap_alloc1()166 if (rw_obj_refcnt(amap->am_lock) > 1) { in amap_alloc1()169 oldlock = amap->am_lock; in amap_alloc1()171 amap->am_lock = newlock; in amap_alloc1()265 amap->am_lock = rw_obj_tryalloc(); in amap_ctor()266 if (amap->am_lock == NULL) { in amap_ctor()270 amap->am_lock = rw_obj_alloc(); in amap_ctor()296 rw_obj_free(amap->am_lock); in amap_dtor()710 KASSERT(rw_write_held(amap->am_lock)); in amap_share_protect()761 KASSERT(rw_write_held(amap->am_lock)); in amap_wipeout()[all …]
154 krwlock_t *am_lock; /* lock [locks all vm_amap fields] */ member254 #define amap_lock(AMAP, OP) rw_enter((AMAP)->am_lock, (OP))255 #define amap_lock_try(AMAP, OP) rw_tryenter((AMAP)->am_lock, (OP))257 #define amap_unlock(AMAP) rw_exit((AMAP)->am_lock)
280 KASSERT(anon->an_lock == amap->am_lock); in uvmfault_anonget()581 KASSERT(rw_write_held(amap->am_lock)); in uvmfault_promote()582 KASSERT(oanon == NULL || amap->am_lock == oanon->an_lock); in uvmfault_promote()601 anon->an_lock = amap->am_lock; in uvmfault_promote()1190 rw_lock_op(amap->am_lock) == flt->upper_lock_type); in uvm_fault_check()1248 KASSERT(flt->upper_lock_type == rw_lock_op(amap->am_lock)); in uvm_fault_upper_upgrade()1265 if (__predict_false(!rw_tryupgrade(amap->am_lock))) { in uvm_fault_upper_upgrade()1272 KASSERT(flt->upper_lock_type == rw_lock_op(amap->am_lock)); in uvm_fault_upper_upgrade()1301 rw_lock_op(amap->am_lock) == flt->upper_lock_type); in uvm_fault_upper_lookup()1334 KASSERT(anon->an_lock == amap->am_lock); in uvm_fault_upper_lookup()[all …]
281 KASSERT(anon->an_lock == amap->am_lock); in uvm_anon_pagein()
183 !rw_write_held(aref->ar_amap->am_lock)); in uvm_loanentry()
4039 KASSERT(anon->an_lock == amap->am_lock); in uvm_map_clean() 5120 found_anon: KASSERT(anon->an_lock == entry->aref.ar_amap->am_lock); in uvm_voaddr_release()
277 mutex_enter(&->am_lock); in autofs_lookup() 281 mutex_exit(&->am_lock); in autofs_lookup() 286 mutex_exit(&->am_lock); in autofs_lookup() 294 mutex_exit(&->am_lock); in autofs_lookup() 385 mutex_enter(&->am_lock); in autofs_mkdir() 389 mutex_exit(&->am_lock); in autofs_mkdir() 392 mutex_exit(&->am_lock); in autofs_mkdir() 518 mutex_enter(&->am_lock); in autofs_readdir() 533 mutex_exit(&->am_lock); in autofs_readdir() 540 mutex_exit(&->am_lock); in autofs_readdir() [all...]
156 mutex_init(&->am_lock, MUTEX_DEFAULT, IPL_NONE); in autofs_mount()159 mutex_enter(&->am_lock); in autofs_mount()161 mutex_exit(&->am_lock); in autofs_mount()179 mutex_destroy(&->am_lock); in autofs_mount()231 mutex_enter(&->am_lock); in autofs_unmount()246 mutex_exit(&->am_lock); in autofs_unmount()248 mutex_destroy(&->am_lock); in autofs_unmount()
209 KASSERT(!mutex_owned(&->am_lock)); in autofs_cached()221 mutex_enter(&->am_lock); in autofs_cached()223 mutex_exit(&->am_lock); in autofs_cached()245 mutex_enter(&->am_lock); in autofs_flush()250 mutex_exit(&->am_lock); in autofs_flush()
117 kmutex_t am_lock; member