Lines Matching refs:zone
45 #include <sys/zone.h>
54 * the process, the task, the project, and the zone. (In principle, only
573 e->rcep_p.zone = p->p_zone;
2498 en = "zone";
2876 * zone. If proj is non-NULL the project must be held by the
2877 * caller; if it is NULL the proj and zone of proc_t p are used.
2925 e.rcep_p.zone = zonep;
2956 * zone. If proj is non-NULL the project must be held by the
2957 * caller; if it is NULL the proj and zone of proc_t p are used.
2996 * Increments the swap charge on the specified zone.
3000 * on the zone.
3007 rctl_incr_swap(proc_t *proc, zone_t *zone, size_t swap)
3013 e.rcep_p.zone = zone;
3016 mutex_enter(&zone->zone_mem_lock);
3019 if ((zone->zone_max_swap + swap) < zone->zone_max_swap) {
3020 mutex_exit(&zone->zone_mem_lock);
3023 if ((zone->zone_max_swap + swap) >
3024 zone->zone_max_swap_ctl) {
3026 if (rctl_test_entity(rc_zone_max_swap, zone->zone_rctls,
3028 mutex_exit(&zone->zone_mem_lock);
3032 zone->zone_max_swap += swap;
3033 mutex_exit(&zone->zone_mem_lock);
3041 * Decrements the swap charge on the specified zone.
3050 rctl_decr_swap(zone_t *zone, size_t swap)
3053 mutex_enter(&zone->zone_mem_lock);
3054 ASSERT(zone->zone_max_swap >= swap);
3055 zone->zone_max_swap -= swap;
3056 mutex_exit(&zone->zone_mem_lock);
3063 * Increments the number of lofi devices for the zone.
3067 * on the zone.
3073 rctl_incr_lofi(proc_t *proc, zone_t *zone, size_t incr)
3080 e.rcep_p.zone = zone;
3083 mutex_enter(&zone->zone_rctl_lock);
3086 if ((zone->zone_max_lofi + incr) < zone->zone_max_lofi) {
3087 mutex_exit(&zone->zone_rctl_lock);
3090 if ((zone->zone_max_lofi + incr) > zone->zone_max_lofi_ctl) {
3091 if (rctl_test_entity(rc_zone_max_lofi, zone->zone_rctls,
3093 mutex_exit(&zone->zone_rctl_lock);
3097 zone->zone_max_lofi += incr;
3098 mutex_exit(&zone->zone_rctl_lock);
3106 * Decrements the number of lofi devices for the zone.
3109 rctl_decr_lofi(zone_t *zone, size_t decr)
3111 mutex_enter(&zone->zone_rctl_lock);
3112 ASSERT(zone->zone_max_lofi >= decr);
3113 zone->zone_max_lofi -= decr;
3114 mutex_exit(&zone->zone_rctl_lock);
3139 * Create zone-specific resource kstat
3142 rctl_kstat_create_zone(zone_t *zone, char *ks_name, uchar_t ks_type,
3149 return (rctl_kstat_create_common(name, zone->zone_id, "zone_caps",
3150 ks_type, ks_ndata, ks_flags, zone->zone_id));