Lines Matching defs:swap
2996 * Increments the swap charge on the specified zone.
2999 * 0 on success. EAGAIN if swap increment fails due an rctl value
3004 * swap must be even multiple of PAGESIZE
3007 rctl_incr_swap(proc_t *proc, zone_t *zone, size_t swap)
3012 ASSERT((swap & PAGEOFFSET) == 0);
3019 if ((zone->zone_max_swap + swap) < zone->zone_max_swap) {
3023 if ((zone->zone_max_swap + swap) >
3027 proc, &e, swap, 0) & RCT_DENY) {
3032 zone->zone_max_swap += swap;
3041 * Decrements the swap charge on the specified zone.
3047 * swap must be even multiple of PAGESIZE
3050 rctl_decr_swap(zone_t *zone, size_t swap)
3052 ASSERT((swap & PAGEOFFSET) == 0);
3054 ASSERT(zone->zone_max_swap >= swap);
3055 zone->zone_max_swap -= swap;