Lines Matching defs:refcnt
269 * and initialize those structures. The refcnt is set to 1.
373 int refcnt;
393 refcnt = vm->vm_refcnt;
394 if (refcnt > 1 && p->p_vmspace != &vmspace0) {
401 } while (!atomic_cmpset_int(&vm->vm_refcnt, refcnt, refcnt - 1));
402 if (refcnt == 1) {
430 int refcnt;
439 refcnt = vm->vm_refcnt;
440 if (refcnt <= 0) { /* Avoid 0->1 transition */
444 } while (!atomic_cmpset_int(&vm->vm_refcnt, refcnt, refcnt + 1));