0209230bf1261579beab4f55226bb509e6b850cbgjelinek * CDDL HEADER START
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * The contents of this file are subject to the terms of the
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * Common Development and Distribution License (the "License").
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * You may not use this file except in compliance with the License.
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * See the License for the specific language governing permissions
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * and limitations under the License.
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * When distributing Covered Code, include this CDDL HEADER in each
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * If applicable, add the following below this CDDL HEADER, with the
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * fields enclosed by brackets "[]" replaced with your own identifying
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * information: Portions Copyright [yyyy] [name of copyright owner]
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * CDDL HEADER END
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * Use is subject to license terms.
0209230bf1261579beab4f55226bb509e6b850cbgjelinek#pragma ident "%Z%%M% %I% %E% SMI"
0209230bf1261579beab4f55226bb509e6b850cbgjelinek /* round up to next y = 2^n */
0209230bf1261579beab4f55226bb509e6b850cbgjelinek#define ROUNDUP(x, y) (((x) + ((y) - 1)) & ~((y) - 1))
0209230bf1261579beab4f55226bb509e6b850cbgjelinek void(*update_notification_cb)(char *, char *, int, uint64_t, int) =
0209230bf1261579beab4f55226bb509e6b850cbgjelinek (void(*)(char *, char *, int, uint64_t, int))walk_data;
0209230bf1261579beab4f55226bb509e6b850cbgjelinek if (zone_getattr(zent->zid, ZONE_ATTR_PHYS_MCAP, &mcap,
0209230bf1261579beab4f55226bb509e6b850cbgjelinek lcol = lcollection_insert_update(&colid, max_rss, zent->zname,
0209230bf1261579beab4f55226bb509e6b850cbgjelinek update_notification_cb("zone", zent->zname, changes, max_rss,
0209230bf1261579beab4f55226bb509e6b850cbgjelinek/* ARGSUSED */
0209230bf1261579beab4f55226bb509e6b850cbgjelineklcollection_update_zone(lcollection_update_type_t ut,
0209230bf1261579beab4f55226bb509e6b850cbgjelinek void(*update_notification_cb)(char *, char *, int, uint64_t, int))
0209230bf1261579beab4f55226bb509e6b850cbgjelinek * Enumerate running zones.
0209230bf1261579beab4f55226bb509e6b850cbgjelinek for (i = 0; i < nzents; i++) {