lgrp_root
root = (jlong) lgrp_root(getCookie(env, clazz, obj));
root = lgrp_root(cookie);
lgrpid = lgrp_root(cookie);
root = lgrp_root(cookie);
if (lgrp->lgrp_childcnt && lgrp != lgrp_root) {
if (! (is_copy_rename && (lgrp_root->lgrp_mnodes == mnodes_mask)) &&
lgrp_root->lgrp_mnodes & mnodes_mask) {
lgrp_t *lgrp_root = NULL;
(lgrp == lgrp_root) && (lgrp->lgrp_mnodes == mnodes_mask))
ASSERT(lgrp_root->lgrp_nmnodes > 0);
!(is_copy_rename && (my_lgrp == lgrp_root) &&
lpl_root = &cp->cp_lgrploads[lgrp_root->lgrp_id];
ASSERT(LGRP_EXISTS(lgrp_root) && (lpl_root->lpl_ncpu > 0));
if ((lgrp_cur == lgrp_root) ||
lgrp_root = &lroot;
lgrp_root->lgrp_cpu = NULL;
lgrp_root->lgrp_mnodes = 0;
lgrp_root->lgrp_nmnodes = 0;
return (&cpupart->cp_lgrploads[lgrp_root->lgrp_id]);
lgrp_root->lgrp_plathand = hand;
lgrp_root->lgrp_id = id;
lgrp_root->lgrp_cpucnt = 0;
lgrp_root->lgrp_childcnt = 0;
klgrpset_clear(lgrp_root->lgrp_children);
klgrpset_clear(lgrp_root->lgrp_leaves);
lgrp_root->lgrp_parent = NULL;
lgrp_root->lgrp_latency = lgrp_plat_latency(hand, hand);
klgrpset_clear(lgrp_root->lgrp_set[i]);
lgrp_root->lgrp_kstat = NULL;
lgrp_table[id] = lgrp_root;
if (lgrp_table[newlpl->lpl_lgrpid] == lgrp_root)
return (lgrp_root);
if (lgrp == lgrp_root)
lgrp = lgrp_root;
if (lgrp != lgrp_root) {
lgrpset = lgrp_root->lgrp_set[LGRP_RSRC_MEM];
lgrp = lgrp_root;
lgrp = lgrp_root;
lgrpset = lgrp_root->lgrp_set[LGRP_RSRC_MEM];
lgrp_table[i] != lgrp_root)
lgrp_root->lgrp_childcnt = 0;
klgrpset_clear(lgrp_root->lgrp_children);
klgrpset_clear(lgrp_root->lgrp_leaves);
klgrpset_add(lgrp_root->lgrp_leaves, LGRP_ROOTID);
klgrpset_clear(lgrp_root->lgrp_set[LGRP_RSRC_MEM]);
klgrpset_add(lgrp_root->lgrp_set[LGRP_RSRC_MEM], LGRP_ROOTID);
if (klgrpset_isempty(lgrp_root->lgrp_set[LGRP_RSRC_CPU])) {
leaf->lgrp_parent = lgrp_root;
lgrp_root->lgrp_childcnt++;
klgrpset_add(lgrp_root->lgrp_children, leaf->lgrp_id);
klgrpset_or(lgrp_root->lgrp_leaves, leaf->lgrp_leaves);
lgrp_rsets_add(leaf->lgrp_set, lgrp_root->lgrp_set);
lgrp_root->lgrp_set);
klgrpset_add(*changed, lgrp_root->lgrp_id);
lgrp_root->lgrp_latency = lgrp_plat_latency(lgrp_root->lgrp_plathand,
lgrp_root->lgrp_plathand);
if (lgrp == lgrp_root) {
} else if (lgrp->lgrp_parent != lgrp_root) {
klgrpset_add(*changed, lgrp_root->lgrp_id);
lgrp->lgrp_parent = lgrp_root;
klgrpset_add(lgrp_root->lgrp_children, lgrp->lgrp_id);
lgrp_root->lgrp_childcnt++;
klgrpset_add(lgrp_root->lgrp_leaves, lgrp->lgrp_id);
klgrpset_add(lgrp_root->lgrp_set[i],
lgrp_root->lgrp_id);
klgrpset_add(lgrp_root->lgrp_leaves, lgrp_root->lgrp_id);
lgrp_print(lgrp_root);
siblings = lgrp_root->lgrp_children;
while (cur && cur != lgrp_root) {
target == lgrp_root || target->lgrp_childcnt == 0 ||
if (lgrp == lgrp_root) {
keep = lgrp_root;
if (parent == NULL || parent->lgrp_childcnt < 2 || parent == lgrp_root)
if (parent == lgrp_root) {
extern lgrp_t *lgrp_root; /* root lgroup */
lgrp_id_t lgrp_root(lgrp_cookie_t cookie);