Home
last modified time | relevance | path

Searched refs:pg_name (Results 1 – 25 of 25) sorted by relevance

/titanic_50/usr/src/lib/libscf/common/
H A Dscf_tmpl.c848 char *name = NULL, *pg_name = NULL; in _tmpl_prop_name() local
862 if ((pg_name = _scf_get_pg_name(t->pt_pg)) == NULL) { in _tmpl_prop_name()
868 if (strncmp(pg_name, SCF_PG_TM_PG_PAT_BASE, prefix_size) != 0) { in _tmpl_prop_name()
871 free(pg_name); in _tmpl_prop_name()
876 pg_name + prefix_size, prop); in _tmpl_prop_name()
881 free(pg_name); in _tmpl_prop_name()
884 free(pg_name); in _tmpl_prop_name()
1476 const scf_snapshot_t *snap, const char *pg_name, const char *pg_type, in _find_template_pg_match() argument
1511 *tmpl_pg_name = _tmpl_pg_name(pg_name, pg_type, 1); in _find_template_pg_match()
1532 *tmpl_pg_name = _tmpl_pg_name(pg_name, NULL, 0); in _find_template_pg_match()
[all …]
H A Dmidlevel.c1117 char *pg_name; in get_instance_pg() local
1127 if ((pg_name = malloc(namelen)) == NULL) { in get_instance_pg()
1134 if (scf_pg_get_name(simple_h->running_pg, pg_name, namelen) < 0) { in get_instance_pg()
1142 if (scf_instance_get_pg(simple_h->inst, pg_name, ret_pg) == -1) { in get_instance_pg()
1323 scf_general_pg_setup(const char *fmri, const char *pg_name) in scf_general_pg_setup() argument
1354 if (scf_instance_get_pg_composed(ret->inst, ret->snap, pg_name, in scf_general_pg_setup()
1871 thispg->pg_name = NULL; in scf_simple_app_props_get()
1884 if (thispg->pg_name != NULL) { in scf_simple_app_props_get()
1889 nextpg->pg_name = NULL; in scf_simple_app_props_get()
1899 if ((nextpg->pg_name = malloc(namelen)) == NULL) { in scf_simple_app_props_get()
[all …]
H A Dmidlevel_impl.h65 char *pg_name; member
H A Dlowlevel.c6350 const char *scope_name, *svc_name, *inst_name, *pg_name; in scf_walk_fmri() local
6362 &pg_name, &prop_name) != SCF_SUCCESS) in scf_walk_fmri()
6369 if (pg_name != NULL || prop_name != NULL) { in scf_walk_fmri()
/titanic_50/usr/src/cmd/svc/common/
H A Dr.manifest50 pg_name=`$MFSTSCAN -t $1`
51 if $SVCPROP -q -p $pg_name smf/manifest; then
52 $SVCCFG -s smf/manifest delpg $pg_name
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_tables.c294 phyint_group_lookup(const char *pg_name) in phyint_group_lookup() argument
299 logdebug("phyint_group_lookup(%s)\n", pg_name); in phyint_group_lookup()
302 if (strncmp(pg->pg_name, pg_name, sizeof (pg->pg_name)) == 0) in phyint_group_lookup()
316 logdebug("phyint_insert(%s '%s')\n", pi->pi_name, pg->pg_name); in phyint_insert()
518 (void) strlcpy(pg->pg_name, name, sizeof (pg->pg_name)); in phyint_group_create()
598 char pg_name[LIFNAMSIZ + 1]; in phyint_inst_init_from_k() local
665 (void) strlcpy(pg_name, lifr.lifr_groupname, sizeof (pg_name)); in phyint_inst_init_from_k()
672 if (pg_name[0] == '\0' && !track_all_phyints) { in phyint_inst_init_from_k()
699 if ((pg = phyint_group_lookup(pg_name)) == NULL) { in phyint_inst_init_from_k()
700 if ((pg = phyint_group_create(pg_name)) == NULL) { in phyint_inst_init_from_k()
[all …]
H A Dmpd_tables.h153 char pg_name[LIFGRNAMSIZ]; /* Phyint group name */ member
424 extern struct phyint_group *phyint_group_create(const char *pg_name);
425 extern struct phyint_group *phyint_group_lookup(const char *pg_name);
H A Dmpd_probe.c683 pii->pii_phyint->pi_group->pg_name); in incoming_rtt_reply()
918 pg->pg_name, pg->pg_fdt); in incoming_echo_reply()
937 pii->pii_name, pg->pg_name); in incoming_echo_reply()
1502 pi->pi_name, pi->pi_group->pg_name); in phyint_check_for_repair()
1539 " %s\n", pii->pii_name, pi->pi_group->pg_name); in phyint_inst_check_for_failure()
H A Dmpd_main.c906 pi->pi_group->pg_name); in check_config()
916 pi->pi_group->pg_name); in check_config()
930 pi->pi_name, pi->pi_group->pg_name); in check_config()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/kssl/ksslcfg/
H A Dksslcfg_create.c64 const char *pg_name, const char *pg_type) in add_property_group_to_instance() argument
78 if (scf_instance_add_pg(instance, pg_name, pg_type, 0, pg) != 0) { in add_property_group_to_instance()
177 const char *kssl_entry, const char *pg_name, const char *flags, in add_pg_method() argument
189 pg_name, SCF_GROUP_METHOD); in add_pg_method()
195 KSSL_DEBUG("%s method added\n", pg_name); in add_pg_method()
217 " been deleted.\n"), pg_name); in add_pg_method()
225 if (strcmp(pg_name, "stop") == 0) in add_pg_method()
/titanic_50/usr/src/cmd/svc/startd/
H A Dgraph.c2317 const char *pg_name; /* Name of dependency pg */ member
2358 info->pg_name, info->inst_fmri); in process_dependency_fmri()
2381 info->pg_name, info->inst_fmri); in process_dependency_fmri()
2398 "\"%s\".\n", info->pg_name, info->inst_fmri, in process_dependency_fmri()
2407 "service or instance.\n", info->pg_name, in process_dependency_fmri()
2537 char *fmri, *pg_name; in process_dependency_pg() local
2550 pg_name = startd_alloc(max_scf_name_size); in process_dependency_pg()
2552 len = scf_pg_get_name(pg, pg_name, max_scf_name_size); in process_dependency_pg()
2554 startd_free(pg_name, max_scf_name_size); in process_dependency_pg()
2577 pg_name, info->v->gv_name, scf_strerror(scf_error())); in process_dependency_pg()
[all …]
/titanic_50/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c197 char *pg_name = NULL; in get_start_pg() local
201 if ((pg_name = start_pg_name(script)) == NULL) in get_start_pg()
210 if (scf_service_add_pg(svc, pg_name, SCF_GROUP_FRAMEWORK, in get_start_pg()
213 free(pg_name); in get_start_pg()
239 if (scf_service_get_pg(svc, pg_name, pg) != 0) { in get_start_pg()
290 free(pg_name); in get_start_pg()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_scf.c1356 char *pg_name = NULL; in ilbd_scf_instance_walk_pg() local
1376 if ((pg_name = malloc(scf_name_len)) == NULL) { in ilbd_scf_instance_walk_pg()
1383 if (scf_pg_get_name(newpg, pg_name, scf_name_len) < 0) { in ilbd_scf_instance_walk_pg()
1398 if (strncmp(ILBD_PG_NAME_RULE, pg_name, in ilbd_scf_instance_walk_pg()
1413 &pg_name[strlen(ILBD_PG_NAME_RULE)], in ilbd_scf_instance_walk_pg()
1423 if (strncmp(ILBD_PG_NAME_SG, pg_name, in ilbd_scf_instance_walk_pg()
1440 &pg_name[strlen(ILBD_PG_NAME_SG)], in ilbd_scf_instance_walk_pg()
1471 if (strncmp(ILBD_PG_NAME_HC, pg_name, in ilbd_scf_instance_walk_pg()
1486 &pg_name[strlen(ILBD_PG_NAME_HC)], in ilbd_scf_instance_walk_pg()
1498 if (pg_name != NULL) in ilbd_scf_instance_walk_pg()
[all …]
/titanic_50/usr/src/cmd/ipf/svc/
H A Dipfd.c571 const char *inst_name, *pg_name; in repository_event_wait() local
618 &pg_name, NULL) != SCF_SUCCESS) in repository_event_wait()
621 if (inst_name != NULL && pg_name == NULL) { in repository_event_wait()
/titanic_50/usr/src/cmd/svc/svcs/
H A Dsvcs.c2074 const char *svc_name, *inst_name, *pg_name, *path; in get_fmri_state() local
2106 &pg_name, NULL) != SCF_SUCCESS) { in get_fmri_state()
2114 if (svc_name == NULL || pg_name != NULL) { in get_fmri_state()
2984 const char *scope_name, *svc_name, *inst_name, *pg_name; in list_instance() local
2998 &inst_name, &pg_name, NULL) != SCF_SUCCESS) { in list_instance()
3078 const char *svc_name, *inst_name, *pg_name, *save; in list_svc_or_inst_fmri() local
3084 if (scf_parse_svc_fmri(fmri, NULL, &svc_name, &inst_name, &pg_name, in list_svc_or_inst_fmri()
3100 if (svc_name == NULL || pg_name != NULL) { in list_svc_or_inst_fmri()
3287 const char *scope_name, *svc_name, *inst_name, *pg_name; in check_against_provider() local
3293 &pg_name, NULL) != SCF_SUCCESS) { in check_against_provider()
[all …]
/titanic_50/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_xml.c812 const char *pg_name; member
825 if (topo_prop_method_version_register(ptn, meth->pg_name, in register_method()
832 meth->meth_name, meth->prop_name, meth->pg_name, in register_method()
845 pmeth_record(topo_mod_t *mp, const char *pg_name, xmlNodePtr xn, tnode_t *tn, in pmeth_record() argument
860 "(pgrp=%s)\n", topo_node_name(tn), topo_node_instance(tn), pg_name); in pmeth_record()
944 meth.pg_name = (const char *)pg_name; in pmeth_record()
969 meth.pg_name, meth.prop_name, &err) in pmeth_record()
978 meth.pg_name, meth.prop_name, &err) in pmeth_record()
993 if (topo_prop_setmutable(tn, meth.pg_name, in pmeth_record()
1001 if (topo_prop_setnonvolatile(tn, meth.pg_name, in pmeth_record()
/titanic_50/usr/src/cmd/svc/svccfg/
H A Dsvccfg_xml.c2698 char *pg_name; in lxml_get_tm_prop_pattern() local
2729 pg_name = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_prop_pattern()
2730 if ((extra = snprintf(pg_name, max_scf_name_len + 1, "%s%s_%s", in lxml_get_tm_prop_pattern()
2742 pg = internal_pgroup_create_strict(service, pg_name, in lxml_get_tm_prop_pattern()
2829 free(pg_name); in lxml_get_tm_prop_pattern()
2960 char *pg_name; in lxml_get_tm_pg_pattern() local
2964 pg_name = safe_malloc(max_scf_name_len + 1); in lxml_get_tm_pg_pattern()
2977 if (strlcpy(pg_name, SCF_PG_TM_PG_PATTERN_PREFIX, in lxml_get_tm_pg_pattern()
2987 if ((out_len = snprintf(pg_name, max_scf_name_len + 1, in lxml_get_tm_pg_pattern()
3015 if ((out_len = snprintf(pg_name, max_scf_name_len + 1, "%s%s", in lxml_get_tm_pg_pattern()
[all …]
H A Dsvccfg_tmpl.c2517 char *pg_name; in gen_pg_pattern_pg_name() local
2522 pg_name = safe_malloc(name_size); in gen_pg_pattern_pg_name()
2523 rv = pg_name; in gen_pg_pattern_pg_name()
2536 if (strlcpy(pg_name, SCF_PG_TM_PG_PATTERN_PREFIX, in gen_pg_pattern_pg_name()
2545 if (snprintf(pg_name, name_size, "%s%s", in gen_pg_pattern_pg_name()
2563 if (snprintf(pg_name, name_size, "%s%s", prefix, name) >= in gen_pg_pattern_pg_name()
2571 free(pg_name); in gen_pg_pattern_pg_name()
3339 const char *pg_name; in tmpl_required_pg_present() local
3358 pg_name = find_astring_value_in_pg(pg, SCF_PROPERTY_TM_NAME); in tmpl_required_pg_present()
3362 einfo.ei_u.ei_missing_pg.ei_pg_name = pg_name; in tmpl_required_pg_present()
[all …]
H A Dsvccfg_libscf.c467 get_pg(const char *pg_name, scf_propertygroup_t *pg) in get_pg() argument
472 ret = scf_snaplevel_get_pg(cur_level, pg_name, pg); in get_pg()
474 ret = scf_instance_get_pg(cur_inst, pg_name, pg); in get_pg()
476 ret = scf_service_get_pg(cur_svc, pg_name, pg); in get_pg()
13184 char *pg_name; in display_documentation() local
13190 pg_name = safe_malloc(max_scf_name_len + 1); in display_documentation()
13192 if (scf_pg_get_name(pg, pg_name, max_scf_name_len + 1) == -1) { in display_documentation()
13195 if (strncmp(pg_name, SCF_PG_TM_DOC_PREFIX, doc_len) == 0) { in display_documentation()
13211 } else if (strncmp(pg_name, SCF_PG_TM_MAN_PREFIX, in display_documentation()
13240 free(pg_name); in display_documentation()
[all …]
/titanic_50/usr/src/lib/libscf/inc/
H A Dlibscf_priv.h425 const char *pg_name, const char *prop_name,
/titanic_50/usr/src/cmd/isns/isnsd/
H A Dobj.c1783 uchar_t *pg_name; in make_default_pg() local
1802 pg_name = (uchar_t *)malloc(name->len); in make_default_pg()
1804 if (pg != NULL && pg_name != NULL && pg_addr != NULL) { in make_default_pg()
1805 (void) strcpy((char *)pg_name, (char *)name->value.ptr); in make_default_pg()
1809 attr->value.ptr = pg_name; in make_default_pg()
1840 free(pg_name); in make_default_pg()
/titanic_50/usr/src/lib/libdladm/common/
H A Dlibdlwlan.c1593 const char *pg_name, const char *pg_type) in add_property_group_to_instance() argument
1601 if (scf_instance_add_pg(instance, pg_name, pg_type, 0, pg) != 0) { in add_property_group_to_instance()
1646 const char *pg_name, const char *flags) in add_pg_method() argument
1655 pg_name, SCF_GROUP_METHOD); in add_pg_method()
/titanic_50/usr/src/cmd/svc/svcadm/
H A Dsvcadm.c791 const char *svc_name, *inst_name, *pg_name; in get_inst_mult() local
807 if (scf_parse_svc_fmri(cfmri, NULL, &svc_name, &inst_name, &pg_name, in get_inst_mult()
817 if (svc_name == NULL || pg_name != NULL) { in get_inst_mult()
/titanic_50/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c1042 const char *pg_name) in read_prop() argument
1050 if ((sprop = scf_simple_prop_get(h, inst, pg_name, iprop->ip_name)) == in read_prop()
/titanic_50/usr/src/cmd/svc/configd/
H A Drc_node.c3639 char *pg_name, int status, int return_val, tx_commit_data_t *tx_data, in special_property_event() argument
3648 search_key.api_pg_name = pg_name; in special_property_event()
3765 char pg_name[REP_PROTOCOL_NAME_LEN]; in generate_property_events() local
3789 pg_name[0] = 0; in generate_property_events()
3792 (void) strlcpy(pg_name, cp, sizeof (pg_name)); in generate_property_events()
3823 special_property_event(&audit_data, prop_name, pg_name, in generate_property_events()