/illumos-gate/usr/src/uts/common/os/ |
H A D | pghw.c | 34 #include <sys/pg.h> 107 static group_t *pg_hw; /* top level pg hw group */ 226 pghw_init(pghw_t *pg, cpu_t *cp, pghw_type_t hw) argument 237 pghw_set_add(hwset, pg); 238 pg->pghw_hw = hw; 239 pg->pghw_generation = 0; 240 pg->pghw_instance = 242 pghw_kstat_create(pg); 247 switch (pg->pghw_hw) { 249 pg 265 pghw_fini(pghw_t *pg) argument 287 pghw_cmt_fini(pghw_t *pg) argument 332 pghw_t *pg; local 351 pghw_t *pg; local 444 pghw_set_add(group_t *hwset, pghw_t *pg) argument 453 pghw_set_remove(group_t *hwset, pghw_t *pg) argument 497 pghw_kstat_create(pghw_t *pg) argument 554 pghw_t *pg = ksp->ks_private; local 572 pghw_t *pg = ksp->ks_private; local 671 pghw_cpulist_alloc(pghw_t *pg) argument 737 pg_t *pg = (pg_t *)pghw; local [all...] |
H A D | pg.c | 38 #include <sys/pg.h> 63 * (LOGICAL or PHYSICAL), a pointer to a pg may be recast to a "view" of that 149 #define PG_FREE(pg) \ 150 ((pg)->pg_class->pgc_ops->free ? \ 151 (pg)->pg_class->pgc_ops->free(pg) : \ 152 pg_classes[pg_default_cid].pgc_ops->free(pg)) \ 158 #define PG_POLICY_NAME(pg) \ 159 ((pg)->pg_class->pgc_ops->policy_name ? \ 160 (pg) 340 pg_t *pg; local 362 pg_t *pg = itr->pg; local 372 pg_cpu_find(pg_t *pg, cpu_t *cp) argument 384 pg_callback_set_defaults(pg_t *pg) argument 396 pg_t *pg; local 438 pg_destroy(pg_t *pg) argument 462 pg_cpu_add(pg_t *pg, cpu_t *cp, cpu_pg_t *cpu_pg) argument 489 pg_cpu_delete(pg_t *pg, cpu_t *cp, cpu_pg_t *cpu_pg) argument 736 pg_policy_name(pg_t *pg) argument 776 pg_free_default(struct pg *pg) argument 799 pg_t *pg; local 820 pg_t *pg; local [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | setsid.c | 42 int pg; 51 if ((pg = getpid()) == getpgrp()) 56 setpgid(pg, pg); 87 return(pg);
|
/illumos-gate/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_conv.c | 38 __ham_pgin(pg, pp, cookie) 39 db_pgno_t pg; 51 if (pg != PGNO_METADATA && pg != tpgno) { 53 pg, PGNO_INVALID, PGNO_INVALID, 0, P_HASH); 59 return (pg == PGNO_METADATA ? 60 __ham_mswap(pp) : __db_pgin(pg, pginfo->db_pagesize, pp)); 71 __ham_pgout(pg, pp, cookie) 72 db_pgno_t pg; 81 return (pg [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_conv.c | 31 __bam_pgin(pg, pp, cookie) 32 db_pgno_t pg; 41 return (pg == PGNO_METADATA ? 42 __bam_mswap(pp) : __db_pgin(pg, pginfo->db_pagesize, pp)); 53 __bam_pgout(pg, pp, cookie) 54 db_pgno_t pg; 63 return (pg == PGNO_METADATA ? 64 __bam_mswap(pp) : __db_pgout(pg, pginfo->db_pagesize, pp)); 74 __bam_mswap(pg) 75 PAGE *pg; [all...] |
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cmt.c | 89 cmt_lgrp_t *cmt_root = NULL; /* Reference to root cmt pg */ 134 #define IS_CMT_PG(pg) (((pg_t *)(pg))->pg_class->pgc_id == pg_cmt_class_id) 228 pg_cmt_free(pg_t *pg) argument 230 ASSERT(pg != NULL); 231 ASSERT(IS_CMT_PG(pg)); 233 kmem_free((pg_cmt_t *)pg, sizeof (pg_cmt_t)); 300 cmt_callback_init(pg_t *pg) argument 306 if (((pg_cmt_t *)pg)->cmt_policy == CMT_NO_POLICY) 309 switch (((pghw_t *)pg) 331 cmt_hier_promote(pg_cmt_t *pg, cpu_pg_t *pgdata) argument 502 pg_cmt_t *pg; local 772 pg_cmt_t *pg; local 887 pg_t *pg; local 920 pg_t *pg; local 976 pg_cmt_t *pg; local 1046 pg_cmt_t *pg; local 1128 pg_cmt_cpu_belongs(pg_t *pg, cpu_t *cp) argument 1261 pg_cmt_t *pg; local 1313 pg_cmt_t *pg; local 1355 cmt_ev_thread_swtch(pg_t *pg, cpu_t *cp, hrtime_t now, kthread_t *old, kthread_t *new) argument 1377 cmt_ev_thread_swtch_pwr(pg_t *pg, cpu_t *cp, hrtime_t now, kthread_t *old, kthread_t *new) argument 1418 cmt_ev_thread_remain_pwr(pg_t *pg, cpu_t *cp, kthread_t *t) argument 1432 pg_cmt_policy_name(pg_t *pg) argument 1471 pg_cmt_t *pg, *child; local 1744 pg_cmt_t *pg, *pg_next, *pg_bad, *pg_tmp, *parent; local [all...] |
H A D | cmt_policy.c | 125 pg_cmt_t *pg, *pg_tmp, *tpg = NULL; local 147 pg = GROUP_ACCESS(cmt_pgs, level); 151 siblings = pg->cmt_siblings; 178 if (pg_tmp != pg && 196 if (cmt_should_migrate(pg, tpg, pg->cmt_policy, self)) 204 pg = GROUP_ACCESS(cmt_pgs, level); 205 siblings = pg->cmt_siblings;
|
/illumos-gate/usr/src/cmd/pgstat/ |
H A D | pgstat.pl | 101 my @sort_keys = qw(pg hwload swload user sys idle depth breadth); 110 my @pg_list; # -P pg,... - PG arguments 385 foreach my $pg (@pgs) { 386 my $name = $p->sh_name ($pg) || "unknown"; 387 my $level = $p->level($pg) || 0 if $do_levels; 390 my $tags = $p->tags($pg); 392 $name_of_pg{$pg} = $name; 395 $name_of_pg{$pg} = $name; 505 foreach my $pg (@pgs) { 507 get_load($p, $p_dup, $pg); [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | pg.h | 42 int pg(uintptr_t, uint_t, int, const mdb_arg_t *);
|
H A D | pg.c | 31 #include "pg.h" 70 pg(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function 72 pg_t pg; local 77 int is_cmt = 0; /* This is CMT pg */ 103 * Read pg at specified address 105 if (mdb_vread(&pg, sizeof (struct pg), addr) == -1) { 106 mdb_warn("unable to read 'pg' at %p", addr); 111 * In quiet mode just print pg address 119 (uintptr_t)pg [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | db_page.h | 202 #define P_INIT(pg, pg_size, n, pg_prev, pg_next, btl, pg_type) do { \ 203 PGNO(pg) = n; \ 204 PREV_PGNO(pg) = pg_prev; \ 205 NEXT_PGNO(pg) = pg_next; \ 206 NUM_ENT(pg) = 0; \ 207 HOFFSET(pg) = pg_size; \ 208 LEVEL(pg) = btl; \ 209 TYPE(pg) = pg_type; \ 216 #define LOFFSET(pg) (P_OVERHEAD + NUM_ENT(pg) * sizeo [all...] |
/illumos-gate/usr/src/cmd/pginfo/ |
H A D | pginfo.pl | 333 foreach my $pg (@pgs) { 334 my $name = $p->sh_name ($pg) || "unknown"; 335 my $level = $p->level($pg) || 0; 338 my $tags = $p->tags($pg); 404 foreach my $pg (@top_level) { 405 my $children = $pg_tree->{$pg}->{children}; 408 pg_print_tree($p, $pg_tree, $pg, '', '', scalar @children); 420 # pg_print(cookie, pg) 426 my $pg = shift; 427 my $sharing = $p->sh_name($pg); [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | pg.h | 49 struct pg; 65 void (*thread_swtch)(struct pg *, struct cpu *, hrtime_t, 67 void (*thread_remain)(struct pg *, struct cpu *, 74 typedef struct pg { struct 77 struct pg_class *pg_class; /* pg class */ 79 pg_cb_ops_t pg_cb; /* pg events ops vector */ 86 struct pg *(*alloc)(); 87 void (*free)(struct pg *); 96 int (*cpu_belongs)(struct pg *, struct cpu *); 97 char *(*policy_name)(struct pg *); 126 pg_t *pg; member in struct:pg_cpu_itr [all...] |
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Pg/ |
H A D | Pg.pm | 194 scalar @_ == 2 or _usage("cpus(cookie, pg)"); 195 my $pg = _pg_get(shift, shift) or return; 196 my @cpus = @{$pg->{cpus}}; 207 scalar @_ == 2 or _usage("parent(cookie, pg)"); 208 my $pg = _pg_get(shift, shift) or return; 209 my $parent = $pg->{parent}; 220 scalar @_ == 2 or _usage("children(cookie, pg)"); 221 my $pg = _pg_get(shift, shift) or return; 223 my $children = $pg->{children} or return; 234 scalar @_ == 2 or _usage("sh_name(cookie, pg)"); [all...] |
/illumos-gate/usr/src/cmd/svc/lsvcrun/ |
H A D | lsvcrun.c | 198 scf_propertygroup_t *pg = NULL; local 204 if ((pg = scf_pg_create(h)) == NULL) { 211 SCF_PG_FLAG_NONPERSISTENT, pg) == 0) { 214 return (pg); 234 scf_pg_destroy(pg); 235 pg = NULL; 239 if (scf_service_get_pg(svc, pg_name, pg) != 0) { 251 scf_pg_destroy(pg); 252 pg = NULL; 259 scf_pg_destroy(pg); 300 scf_propertygroup_t *pg = NULL; local 397 scf_propertygroup_t *pg; local 437 scf_propertygroup_t *pg = NULL; local 559 cleanup_pg(scf_propertygroup_t *pg) argument 703 set_legacy_service(scf_propertygroup_t *pg, const char *script, ino_t inode) argument 812 scf_propertygroup_t *pg; local [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_overflow.c | 90 db_pgno_t pg; local 94 memmove(&pg, p, sizeof(db_pgno_t)); 99 if (pg == P_INVALID || sz == 0) 115 for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) { 116 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) 141 __ovfl_put(t, dbt, pg) 144 db_pgno_t *pg; 174 *pg = h->pgno; 200 db_pgno_t pg; local 204 memmove(&pg, [all...] |
H A D | bt_delete.c | 102 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) 113 status = __bt_dleaf(t, NULL, h, c->pg.index); 171 if (h->pgno == c->pg.pgno) 180 while (h->pgno != c->pg.pgno) { 220 if (h->pgno == c->pg.pgno) 235 while (h->pgno != c->pg.pgno) { 278 return ((*hp = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL); 385 PAGE *pg; local 405 if ((pg = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) 409 bi = GETBINTERNAL(pg, id 549 PAGE *pg; local 644 PAGE *pg; local [all...] |
H A D | bt_seq.c | 191 db_pgno_t pg; local 213 for (pg = P_ROOT;;) { 214 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) 225 pg = GETBINTERNAL(h, 0)->pgno; 234 for (pg = P_ROOT;;) { 235 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) 246 pg = GETBINTERNAL(h, NEXTINDEX(h) - 1)->pgno; 280 db_pgno_t pg; local 325 c->pg.pgno = ep->page->pgno; 326 c->pg 412 db_pgno_t pg; local 732 db_pgno_t pg; local 829 db_pgno_t pg; local [all...] |
H A D | bt_conv.c | 59 * pg: page number 63 __bt_pgin(t, pg, pp) 65 db_pgno_t pg; 75 if (pg == P_META) { 131 __bt_pgout(t, pg, pp) 133 db_pgno_t pg; 143 if (pg == P_META) { 205 mswap(pg) 206 PAGE *pg; 210 p = (char *)pg; [all...] |
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_xml.c | 837 pgroup_t *pg; local 848 pg = internal_pgroup_find_or_create(entity, (char *)name, (char *)type); 863 (void) lxml_get_pgroup_stability(pg, cursor); 866 (void) lxml_get_property(pg, cursor); 869 (void) lxml_get_propval(pg, cursor); 878 pg->sc_pgroup_delete = (xmlStrcmp(delete, (xmlChar *)true) == 0); 891 lxml_get_method_profile(pgroup_t *pg, xmlNodePtr profile) argument 897 if (internal_attach_property(pg, p) != 0) 900 return (new_str_prop_from_attr(pg, SCF_PROPERTY_PROFILE, 905 lxml_get_method_credential(pgroup_t *pg, xmlNodePt argument 961 lxml_get_method_environment(pgroup_t *pg, xmlNodePtr environment) argument 1001 lxml_get_method_context(pgroup_t *pg, xmlNodePtr ctx) argument 1049 pgroup_t *pg; local 1060 pgroup_t *pg; local 1151 pgroup_t *pg; local 1256 pgroup_t *pg; local 1373 pgroup_t *pg; local 1395 pgroup_t *pg; local 1666 lxml_get_loctext(entity_t *service, pgroup_t *pg, xmlNodePtr loctext, const char *pn_format, const char *source) argument 1747 lxml_get_all_loctext(entity_t *service, pgroup_t *pg, xmlNodePtr container, const char *pn_format, const char *source) argument 1847 lxml_get_tm_cardinality(entity_t *service, pgroup_t *pg, xmlNodePtr cursor) argument 1911 pgroup_t *pg; local 1933 pgroup_t *pg; local 2050 lxml_get_tm_internal_seps(entity_t *service, pgroup_t *pg, xmlNodePtr seps) argument 2081 pgroup_t *pg; local 2143 pgroup_t *pg; local 2204 lxml_get_prop_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor) argument 2221 lxml_get_tm_include_values(entity_t *service, pgroup_t *pg, xmlNodePtr include_values, const char *prop_name) argument 2331 lxml_get_tm_range(entity_t *service, pgroup_t *pg, xmlNodePtr range, const char *prop_name) argument 2429 lxml_get_tm_value_element(entity_t *service, pgroup_t *pg, xmlNodePtr value, char **name_value) argument 2519 lxml_get_tm_choices(entity_t *service, pgroup_t *pg, xmlNodePtr choices) argument 2579 lxml_get_tm_constraints(entity_t *service, pgroup_t *pg, xmlNodePtr constraints) argument 2638 lxml_get_tm_values(entity_t *service, pgroup_t *pg, xmlNodePtr values) argument 2701 pgroup_t *pg; local 2844 lxml_get_pg_pattern_attributes(pgroup_t *pg, xmlNodePtr cursor) argument 2881 verify_pg_pattern_attributes(entity_t *s, pgroup_t *pg) argument 2964 pgroup_t *pg = NULL; local 3155 pgroup_t *pg; local 3211 pgroup_t *pg; local 3323 pgroup_t *pg; local 3366 scf_propertygroup_t *pg = NULL; local 3411 pgroup_t *pg; local [all...] |
H A D | svccfg_internal.c | 186 pgroup_t *pg = v; local 188 (void) printf("pgroup name = %s\n", pg->sc_pgroup_name); 189 (void) printf(" type = %s\n", pg->sc_pgroup_type); 191 (void) uu_list_walk(pg->sc_pgroup_props, internal_property_dump, 325 pgroup_t *pg; local 334 while ((pg = uu_list_teardown(s->sc_pgroups, &cookie)) != NULL) 335 internal_pgroup_free(pg); 338 while ((pg = uu_list_teardown(s->sc_dependents, &cookie)) != NULL) 339 internal_pgroup_free(pg); 370 pgroup_t *pg; local 410 internal_pgroup_free(pgroup_t *pg) argument 430 pgroup_t *pg; local 464 pgroup_t *pg; local 546 internal_property_find(pgroup_t *pg, const char *name) argument 696 internal_attach_dependent(entity_t *ent, pgroup_t *pg) argument 978 load_pg_attrs(const scf_propertygroup_t *pg, pgroup_t **ipgp) argument 1064 load_pg(const scf_propertygroup_t *pg, pgroup_t **ipgp, const char *fmri, const char *snapname) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_prop.c | 78 topo_pgroup_t *pg; local 82 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL; 83 pg = topo_list_next(pg)) { 84 if (strcmp(pg->tpg_info->tpi_name, pgname) == 0) { 85 return (pg); 93 propval_get(topo_pgroup_t *pg, const char *pname) argument 97 if (pg == NULL) 100 for (pvl = topo_list_next(&pg 519 topo_pgroup_t *pg; local 977 topo_pgroup_t *pg; local 1074 topo_pgroup_t *pg; local 1126 topo_pgroup_t *pg; local 1161 pgroup_seterr(tnode_t *node, topo_pgroup_t *pg, topo_ipgroup_info_t *pip, int *err) argument 1183 topo_pgroup_t *pg; local 1232 topo_pgroup_t *pg; local 1272 topo_pgroup_t *pg; local 1415 topo_pgroup_t *pg; local 1486 topo_pgroup_t *pg; local [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_search.c | 75 db_pgno_t pg; local 81 for (pg = P_ROOT, total = 0;;) { 82 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) 96 BT_PUSH(t, pg, idx - 1); 98 pg = r->pgno;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_tables.c | 46 static void phyint_insert(struct phyint *pi, struct phyint_group *pg); 58 static void target_flush_hosts(struct phyint_group *pg); 65 static int phyint_state_event(struct phyint_group *pg, struct phyint *pi); 66 static int phyint_group_state_event(struct phyint_group *pg); 67 static int phyint_group_change_event(struct phyint_group *pg, ipmp_group_op_t); 68 static int phyint_group_member_event(struct phyint_group *pg, struct phyint *pi, 296 struct phyint_group *pg; local 301 for (pg = phyint_groups; pg != NULL; pg 313 phyint_insert(struct phyint *pi, struct phyint_group *pg) argument 370 phyint_create(char *pi_name, struct phyint_group *pg, uint_t ifindex, uint64_t flags) argument 489 phyint_group_insert(struct phyint_group *pg) argument 507 struct phyint_group *pg; local 538 phyint_group_chstate(struct phyint_group *pg, enum pg_state state) argument 606 struct phyint_group *pg; local 819 struct phyint_group *pg; local 1098 phyint_group_delete(struct phyint_group *pg) argument 1138 phyint_group_refresh_state(struct phyint_group *pg) argument 1331 struct phyint_group *pg = pi->pi_group; local 1421 struct phyint_group *pg = pi->pi_group; local 2511 target_flush_hosts(struct phyint_group *pg) argument 2869 groupstate(struct phyint_group *pg) argument 2992 phyint_group_state_event(struct phyint_group *pg) argument 3026 phyint_group_change_event(struct phyint_group *pg, ipmp_group_op_t op) argument 3065 phyint_group_member_event(struct phyint_group *pg, struct phyint *pi, ipmp_if_op_t op) argument 3113 phyint_state_event(struct phyint_group *pg, struct phyint *pi) argument 3179 struct phyint_group *pg; local 3340 struct phyint_group *pg; local 3377 struct phyint_group *pg; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_conv.c | 70 __db_pgin(pg, pagesize, pp) 71 db_pgno_t pg; 75 return (__db_convert(pg, pp, pagesize, 1)); 84 __db_pgout(pg, pagesize, pp) 85 db_pgno_t pg; 89 return (__db_convert(pg, pp, pagesize, 0)); 97 __db_convert(pg, pp, pagesize, pgin) 98 db_pgno_t pg; 111 COMPQUIET(pg, 0);
|