Lines Matching defs:lgrp

56 typedef uintptr_t	lgrp_handle_t;	/* lgrp handle */
135 * Define all of the statistics that are kept for lgrp kstats,
140 LGRP_NUM_MIGR, /* # migrations away from this lgrp */
141 LGRP_NUM_ALLOC_FAIL, /* # times alloc fails for chosen lgrp */
142 LGRP_PM_SRC_PGS, /* # pages migrated from this lgrp */
143 LGRP_PM_DEST_PGS, /* # pages migrated to this lgrp */
144 LGRP_PM_FAIL_ALLOC_PGS, /* # pages failed to migrate to this lgrp */
145 LGRP_PM_FAIL_LOCK_PGS, /* # pages failed to migrate from this lgrp */
146 LGRP_PMM_PGS, /* # pages marked to migrate from this lgrp */
147 LGRP_PMM_FAIL_PGS, /* # pages marked to migrate from this lgrp */
165 LGRP_LOADAVG, /* unscaled load average of this lgrp */
226 typedef struct lgrp {
231 struct lgrp *lgrp_parent; /* parent lgroup */
248 uint_t lgrp_cpucnt; /* number of cpus in this lgrp */
249 kstat_t *lgrp_kstat; /* per-lgrp kstats */
260 lgrp_t *lpl_lgrp; /* ptr to lpl's lgrp */
261 struct lgrp_ld *lpl_parent; /* lpl of parent lgrp */
264 uint_t lpl_nrset; /* no. of leaf lpls for lgrp */
267 struct lgrp_ld **lpl_rset; /* leaf lpls for lgrp */
268 /* contains ptr to self for leaf lgrp */
334 LGRP_MEM_POLICY_NEXT_SEG, /* lgrp specified directly by seg */
347 * Cookie used for lgrp mnode selection
350 lgrp_t *lmc_lgrp; /* lgrp under consideration */
351 mnodeset_t lmc_nodes; /* nodes not yet tried in lgrp */
477 #define LGRP_EXISTS(lgrp) \
478 (lgrp != NULL && lgrp->lgrp_id != LGRP_NONE)
481 * Macro for testing if a CPU is contained in an lgrp.
483 #define LGRP_CONTAINS_CPU(lgrp, cpu) \
484 (klgrpset_ismember(lgrp->lgrp_set[LGRP_RSRC_CPU], \
490 #define LGRP_MNODE_COOKIE_INIT(c, lgrp, scope) \
493 (&(c))->lmc_lgrp = lgrp; \
494 (&(c))->lmc_nodes = lgrp->lgrp_mnodes; \
495 (&(c))->lmc_cnt = lgrp->lgrp_nmnodes; \
516 * Return true if lgrp has CPU resources in the cpupart
527 extern int lgrp_topo_initialized; /* lgrp topology constructed */