atomic_load_sint
KASSERT(atomic_load_sint(&uvmexp.swpgonly) <=
atomic_load_sint(&uvmexp.swpages));
atomic_load_sint(&uvmexp.swpages) -
atomic_load_sint(&uvmexp.swpgonly) <= npg))
lim = ptoa(atomic_load_sint(&uvmexp.free));
if (atop(len) > uvmexp.wiredmax - atomic_load_sint(&uvmexp.wired)) {
ptoa(physmem - atomic_load_sint(&uvmexp.wired))));
ptoa((psize_t)physmem - atomic_load_sint(&uvmexp.wired))));
KASSERT(atomic_load_sint(&uvmexp.swpgonly) > 0);
pool_sethiwat(&uvm_anon_pool, atomic_load_sint(&uvmexp.free) / 16);
KASSERT(atomic_load_sint(&uvmexp.swpgonly) >= swpgonlydelta);
limit0->pl_rlimit[RLIMIT_RSS].rlim_cur = ptoa(atomic_load_sint(&uvmexp.free));
totalp->t_free = atomic_load_sint(&uvmexp.free);
totalp->t_vm = uvmexp.npages - atomic_load_sint(&uvmexp.free) +
atomic_load_sint(&uvmexp.swpginuse);
totalp->t_avm = atomic_load_sint(&uvmexp.active) +
atomic_load_sint(&uvmexp.swpginuse); /* XXX */
totalp->t_rm = uvmexp.npages - atomic_load_sint(&uvmexp.free);
totalp->t_arm = atomic_load_sint(&uvmexp.active);
if (atop(size) + atomic_load_sint(&uvmexp.wired) > uvmexp.wiredmax)
if ((atop(size) + atomic_load_sint(&uvmexp.wired)) > uvmexp.wiredmax
shortage = uvmexp.freetarg - atomic_load_sint(&uvmexp.free) +
(atomic_load_sint(&uvmexp.active) +
atomic_load_sint(&uvmexp.inactive)) / 3);
if (atomic_load_sint(&uvmexp.inactarg) <= uvmexp.freetarg) {
atomic_load_sint(&uvmexp.inactarg) -
atomic_load_sint(&uvmexp.inactive) - BUFPAGES_INACT;
if (atomic_load_sint(&uvmexp.free) > uvmexp.reserve_kernel ||
atomic_load_sint(&uvmexp.paging) == 0)
free = atomic_load_sint(&uvmexp.free);
if (atomic_load_sint(&uvmexp.paging) + swapcluster_nused(&swc) >=
if (atomic_load_sint(&uvmexp.paging) > (shortage - freed)) {
if (atomic_load_sint(&uvmexp.zeropages) < UVM_PAGEZERO_TARGET)
if (atomic_load_sint(&uvmexp.zeropages) < UVM_PAGEZERO_TARGET)
if (atomic_load_sint(&uvmexp.zeropages) < UVM_PAGEZERO_TARGET)
while (atomic_load_sint(&uvmexp.zeropages) >= UVM_PAGEZERO_TARGET ||
if ((atomic_load_sint(&uvmexp.free) - BUFPAGES_DEFICIT) < uvmexp.freemin ||
((atomic_load_sint(&uvmexp.free) - BUFPAGES_DEFICIT) <
atomic_load_sint(&uvmexp.freetarg) &&
(atomic_load_sint(&uvmexp.inactive) + BUFPAGES_INACT) <
atomic_load_sint(&uvmexp.inactarg)))
if ((atomic_load_sint(&uvmexp.free) <= uvmexp.reserve_kernel + count) &&
if ((atomic_load_sint(&uvmexp.free) <= uvmexp.reserve_pagedaemon + count) &&
if (atomic_load_sint(&uvmexp.nswapdev) < 1)
KASSERT(atomic_load_sint(&uvmexp.swpginuse) <=
atomic_load_sint(&uvmexp.swpages));
result = (atomic_load_sint(&uvmexp.swpginuse) + SWCLUSTPAGES) >=
atomic_load_sint(&uvmexp.swpages);
KASSERT(atomic_load_sint(&uvmexp.swpgonly) <=
atomic_load_sint(&uvmexp.swpages));
result = (atomic_load_sint(&uvmexp.swpgonly) >=
((long)atomic_load_sint(&uvmexp.swpages) * 99 / 100));
KASSERT(atomic_load_sint(&uvmexp.nswapdev) >= 1);
if (atomic_load_sint(&uvmexp.nswapdev) < 1 || dev != swdevt[0])
*retval = atomic_load_sint(&uvmexp.nswapdev);