Searched refs:pgname (Results 1 - 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_prop.c76 pgroup_get(tnode_t *node, const char *pgname) argument
84 if (strcmp(pg->tpg_info->tpi_name, pgname) == 0) {
174 prop_get(tnode_t *node, const char *pgname, const char *pname, nvlist_t *pargs, argument
179 if ((pv = propval_get(pgroup_get(node, pgname), pname)) == NULL) {
204 prop_getval(tnode_t *node, const char *pgname, const char *pname, void *val, argument
212 if ((pv = prop_get(node, pgname, pname, NULL, err))
393 topo_prop_get_int32(tnode_t *node, const char *pgname, const char *pname, argument
396 return (prop_getval(node, pgname, pname, (void *)val, TOPO_TYPE_INT32,
401 topo_prop_get_uint32(tnode_t *node, const char *pgname, const char *pname, argument
404 return (prop_getval(node, pgname, pnam
409 topo_prop_get_int64(tnode_t *node, const char *pgname, const char *pname, int64_t *val, int *err) argument
417 topo_prop_get_uint64(tnode_t *node, const char *pgname, const char *pname, uint64_t *val, int *err) argument
425 topo_prop_get_double(tnode_t *node, const char *pgname, const char *pname, double *val, int *err) argument
433 topo_prop_get_string(tnode_t *node, const char *pgname, const char *pname, char **val, int *err) argument
441 topo_prop_get_fmri(tnode_t *node, const char *pgname, const char *pname, nvlist_t **val, int *err) argument
449 topo_prop_get_int32_array(tnode_t *node, const char *pgname, const char *pname, int32_t **val, uint_t *nelem, int *err) argument
457 topo_prop_get_uint32_array(tnode_t *node, const char *pgname, const char *pname, uint32_t **val, uint_t *nelem, int *err) argument
465 topo_prop_get_int64_array(tnode_t *node, const char *pgname, const char *pname, int64_t **val, uint_t *nelem, int *err) argument
473 topo_prop_get_uint64_array(tnode_t *node, const char *pgname, const char *pname, uint64_t **val, uint_t *nelem, int *err) argument
481 topo_prop_get_string_array(tnode_t *node, const char *pgname, const char *pname, char ***val, uint_t *nelem, int *err) argument
489 topo_prop_get_fmri_array(tnode_t *node, const char *pgname, const char *pname, nvlist_t ***val, uint_t *nelem, int *err) argument
515 prop_create(tnode_t *node, const char *pgname, const char *pname, topo_type_t type, int flag, int *err) argument
565 topo_prop_set(tnode_t *node, const char *pgname, const char *pname, topo_type_t type, int flag, void *val, int nelems, int *err) argument
657 topo_prop_set_int32(tnode_t *node, const char *pgname, const char *pname, int flag, int32_t val, int *err) argument
665 topo_prop_set_uint32(tnode_t *node, const char *pgname, const char *pname, int flag, uint32_t val, int *err) argument
673 topo_prop_set_int64(tnode_t *node, const char *pgname, const char *pname, int flag, int64_t val, int *err) argument
681 topo_prop_set_uint64(tnode_t *node, const char *pgname, const char *pname, int flag, uint64_t val, int *err) argument
689 topo_prop_set_double(tnode_t *node, const char *pgname, const char *pname, int flag, double val, int *err) argument
697 topo_prop_set_string(tnode_t *node, const char *pgname, const char *pname, int flag, const char *val, int *err) argument
705 topo_prop_set_fmri(tnode_t *node, const char *pgname, const char *pname, int flag, const nvlist_t *fmri, int *err) argument
713 topo_prop_set_int32_array(tnode_t *node, const char *pgname, const char *pname, int flag, int32_t *val, uint_t nelems, int *err) argument
721 topo_prop_set_uint32_array(tnode_t *node, const char *pgname, const char *pname, int flag, uint32_t *val, uint_t nelems, int *err) argument
729 topo_prop_set_int64_array(tnode_t *node, const char *pgname, const char *pname, int flag, int64_t *val, uint_t nelems, int *err) argument
737 topo_prop_set_uint64_array(tnode_t *node, const char *pgname, const char *pname, int flag, uint64_t *val, uint_t nelems, int *err) argument
745 topo_prop_set_string_array(tnode_t *node, const char *pgname, const char *pname, int flag, const char **val, uint_t nelems, int *err) argument
753 topo_prop_set_fmri_array(tnode_t *node, const char *pgname, const char *pname, int flag, const nvlist_t **fmri, uint_t nelems, int *err) argument
764 topo_prop_setprop(tnode_t *node, const char *pgname, nvlist_t *prop, int flag, nvlist_t *pargs, int *err) argument
869 prop_method_register(tnode_t *node, const char *pgname, const char *pname, topo_type_t ptype, const char *mname, topo_version_t version, const nvlist_t *args, int *err) argument
929 topo_prop_method_register(tnode_t *node, const char *pgname, const char *pname, topo_type_t ptype, const char *mname, const nvlist_t *args, int *err) argument
947 topo_prop_method_version_register(tnode_t *node, const char *pgname, const char *pname, topo_type_t ptype, const char *mname, topo_version_t version, const nvlist_t *args, int *err) argument
973 topo_prop_method_unregister(tnode_t *node, const char *pgname, const char *pname) argument
1011 topo_prop_setmutable(tnode_t *node, const char *pgname, const char *pname, int *err) argument
1039 topo_prop_setnonvolatile(tnode_t *node, const char *pgname, const char *pname, int *err) argument
1070 topo_prop_inherit(tnode_t *node, const char *pgname, const char *name, int *err) argument
1123 topo_pgroup_info(tnode_t *node, const char *pgname, int *err) argument
1355 topo_prop_getprop(tnode_t *node, const char *pgname, const char *pname, nvlist_t *args, nvlist_t **prop, int *err) argument
1409 topo_prop_getpgrp(tnode_t *node, const char *pgname, nvlist_t **pgrp, int *err) argument
[all...]
H A Dtopo_2xml.c121 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname, argument
132 if (topo_prop_get_int32(node, pgname, pv->tp_name, &val,
144 if (topo_prop_get_uint32(node, pgname, pv->tp_name,
156 if (topo_prop_get_int64(node, pgname, pv->tp_name, &val,
168 if (topo_prop_get_uint64(node, pgname, pv->tp_name,
181 if (topo_prop_get_double(node, pgname, pv->tp_name,
199 if (topo_prop_get_string(node, pgname, pv->tp_name,
212 if (topo_prop_get_fmri(node, pgname, pv->tp_name, &val,
227 if (topo_prop_get_int32_array(node, pgname,
247 if (topo_prop_get_uint32_array(node, pgname,
[all...]
H A Dtopo_mod.h105 extern int topo_prop_setmutable(tnode_t *node, const char *pgname,
107 extern int topo_prop_setnonvolatile(tnode_t *node, const char *pgname,
/illumos-gate/usr/src/lib/libvscan/common/
H A Dlibvscan.c317 char pgname[VS_PGNAME_ENGINE_LEN]; local
338 vs_engid_to_pgname(engid, pgname);
339 rc = vs_scf_values_get(pgname, &prop_hd);
379 char pgname[VS_PGNAME_ENGINE_LEN]; local
393 vs_engid_to_pgname(engid, pgname);
403 if ((rc = vs_scf_values_get(pgname, &prop_hd)) != VS_ERR_NONE)
413 return (vs_scf_values_set(pgname, &prop_hd));
424 char pgname[VS_PGNAME_ENGINE_LEN]; local
440 vs_engid_to_pgname(engid, pgname);
454 return (vs_scf_pg_create(pgname,
464 char pgname[VS_PGNAME_ENGINE_LEN]; local
589 vs_scf_values_get(const char *pgname, vs_prop_hd_t *prop_hd) argument
749 vs_scf_pg_create(const char *pgname, vs_prop_hd_t *prop_hd) argument
794 vs_scf_pg_delete(const char *pgname) argument
853 vs_scf_values_set(const char *pgname, vs_prop_hd_t *prop_hd) argument
1489 char pgname[VS_PGNAME_ENGINE_LEN]; local
1562 vs_engid_to_pgname(const char *engid, char pgname[VS_PGNAME_ENGINE_LEN]) argument
[all...]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_prop.c114 char *pgname; local
120 if (ndmp_smf_get_pg_name(handle, prop, &pgname)) {
125 if (ndmp_smf_create_service_pgroup(handle, pgname)) {
149 char *pgname; local
155 if (ndmp_smf_get_pg_name(handle, env, &pgname)) {
161 if (ndmp_smf_create_service_pgroup(handle, pgname)) {
183 ndmp_smf_get_pg_name(ndmp_scfhandle_t *h, const char *pname, char **pgname) argument
211 *pgname = ndmp_pg[i];
/illumos-gate/usr/src/cmd/svc/svcadm/
H A Dsvcadm.c432 pg_get_or_add(const scf_instance_t *inst, const char *pgname, argument
436 if (scf_instance_get_pg(inst, pgname, pg) == 0)
442 if (scf_instance_add_pg(inst, pgname, pgtype, pgflags, pg) == 0)
582 const char *pgname = NULL; /* For emsg_pg_perm_denied */ local
597 pgname = SCF_PG_GENERAL;
598 if (pg_get_or_add(inst, pgname, SCF_PG_GENERAL_TYPE,
630 pgname = SCF_PG_GENERAL_OVR;
631 if (pg_get_or_add(inst, pgname, SCF_PG_GENERAL_OVR_TYPE,
670 if (pg_get_or_add(inst, pgname, SCF_PG_GENERAL_TYPE,
719 pgname
915 dep_get_astring(const char *fmri, const char *pgname, const scf_propertygroup_t *pg, const char *propname, scf_property_t *prop, scf_value_t *v, char *buf, size_t bufsz) argument
1026 char *buf, *pgname; local
1554 set_astring_prop(const char *fmri, const char *pgname, const char *pgtype, uint32_t pgflags, const char *propname, const char *str) argument
[all...]
/illumos-gate/usr/src/lib/libscf/common/
H A Dnotify_params.c82 * Mapping of state transition to pgname.
149 * Allocates and builds the pgname for an FMA dotted class.
150 * The pgname will be of the form "class.class1.class2,SCF_NOTIFY_PG_POSTFIX"
159 char *pgname = NULL; local
168 if ((pgname = malloc(sz)) == NULL) {
173 if (snprintf(pgname, sz, "%.*s,%s", (int)n, class,
178 return (pgname);
181 free(pgname);
182 pgname = NULL;
184 return (pgname);
1275 char *pgname = NULL; local
1508 get_stn_pg(scf_service_t *s, scf_instance_t *i, scf_instance_t *g, const char *pgname, scf_propertygroup_t *pg) argument
1590 const char *pgname; local
1710 char *pgname = NULL; local
1885 char *pgname = NULL; local
[all...]
H A Dmidlevel.c136 fill_prop(scf_property_t *prop, const char *pgname, const char *propname, argument
155 if (pgname == NULL)
158 ret->pr_pgname = strdup(pgname);
360 insert_app_props(scf_iter_t *propiter, char *pgname, char *propname, struct argument
383 if ((newprop = fill_prop(prop, pgname,
404 if ((newprop = fill_prop(prop, pgname, propname, h)) ==
479 get_inst_enabled(const scf_instance_t *inst, const char *pgname) argument
496 if (scf_instance_get_pg(inst, pgname, gpg) ||
518 const char *pgname, uint32_t pgflags)
553 if (strcmp(pgname, SCF_PG_GENERA
517 set_inst_enabled(const scf_instance_t *inst, uint8_t desired, const char *pgname, uint32_t pgflags) argument
650 delete_inst_enabled(const scf_instance_t *inst, const char *pgname) argument
1651 scf_simple_prop_get(scf_handle_t *hin, const char *instance, const char *pgname, const char *propname) argument
1799 char *propname = NULL, *pgname = NULL, *sys_fmri; local
2230 scf_simple_app_props_search(const scf_simple_app_props_t *propblock, const char *pgname, const char *propname) argument
2591 scf_read_propvec(const char *fmri, const char *pgname, boolean_t running, scf_propvec_t *properties, scf_propvec_t **badprop) argument
2757 scf_write_propvec(const char *fmri, const char *pgname, scf_propvec_t *properties, scf_propvec_t **badprop) argument
2920 scf_instance_delete_prop(scf_instance_t *inst, const char *pgname, const char *pname) argument
[all...]
H A Dhighlevel.c115 scf_fmri_pg_get_or_add(const char *fmri, const char *pgname, argument
131 rc = scf_instance_add_pg(inst, pgname, pgtype, pgflags, NULL);
138 rc = scf_instance_get_pg(inst, pgname, NULL);
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dsmfcfg.c122 const char *pgname; local
163 pgname = AUTOFS_PROPS_PGNAME;
165 pgname = NFS_PROPS_PGNAME;
167 if (scf_instance_get_pg(inst, pgname,
252 const char *pgname; local
292 pgname = AUTOFS_PROPS_PGNAME;
294 pgname = NFS_PROPS_PGNAME;
296 if (scf_instance_get_pg(inst, pgname, pg) != -1) {
/illumos-gate/usr/src/lib/libshare/smbfs/
H A Dlibshare_smbfs.c372 char *lastpgname = NULL, *pgname = NULL; local
388 pgname = scf_simple_prop_pgname(prop);
389 if (strncmp("S-", pgname, 2) != 0)
399 if (lastpgname == NULL || strcmp(lastpgname, pgname) != 0) {
400 sect = sa_create_section(NULL, pgname+2);
406 lastpgname = strdup(pgname);
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_subr.c73 nvprop_add(topo_mod_t *mod, nvpair_t *nvp, const char *pgname, tnode_t *node) argument
84 topo_prop_set_string(node, pgname, pname,
94 topo_prop_set_uint32(node, pgname, pname,
104 topo_prop_set_uint64(node, pgname, pname,
115 nelem > 0 && topo_prop_set_uint32_array(node, pgname, pname,
125 topo_prop_set_string(node, pgname, pname,
134 nvpair_type(nvp), pname, pgname, topo_node_name(node));
143 * as property named pname in the given property group pgname on the indicated
149 const char *pgname, const char *pname, const char **pvalp)
157 if (topo_prop_set_string(node, pgname, pnam
148 add_nvlist_strprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, const char *pgname, const char *pname, const char **pvalp) argument
175 add_nvlist_longprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, const char *pgname, const char *pname, int32_t *pvalp) argument
202 add_nvlist_longprops(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, const char *pgname, int32_t *pvalap, ...) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/
H A Drouteadm.c1881 ra_get_pg(scf_handle_t *h, scf_instance_t *inst, const char *pgname, argument
1886 scf_instance_get_pg_composed(inst, NULL, pgname, *pg) != 0) ||
1887 (!composed && scf_instance_get_pg(inst, pgname, *pg) != 0)) {
1892 myname, pgname);
1906 const char *pgname, const char *propname, boolean_t composed,
1911 if (ra_get_single_prop_as_string(h, inst, pgname, propname,
1921 const char *pgname, const char *propname, boolean_t composed,
1927 if (ra_get_prop_as_string(h, inst, pgname, propname, composed, required,
1942 const char *pgname, const char *propname, boolean_t composed,
1952 if (ra_get_pg(h, inst, pgname, compose
1905 ra_get_boolean_prop(scf_handle_t *h, scf_instance_t *inst, const char *pgname, const char *propname, boolean_t composed, boolean_t required, boolean_t *val) argument
1920 ra_get_single_prop_as_string(scf_handle_t *h, scf_instance_t *inst, const char *pgname, const char *propname, boolean_t composed, boolean_t required, scf_type_t *type, char **value) argument
1941 ra_get_prop_as_string(scf_handle_t *h, scf_instance_t *inst, const char *pgname, const char *propname, boolean_t composed, boolean_t required, scf_type_t *type, int *numvalues, char ***values) argument
2055 ra_set_boolean_prop(scf_handle_t *h, scf_instance_t *inst, const char *pgname, const char *prop, boolean_t create, boolean_t propval) argument
2070 ra_set_prop_from_string(scf_handle_t *h, scf_instance_t *inst, const char *pgname, const char *propname, scf_type_t proptype, boolean_t create, int numpropvals, const char **propvals) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_sun4u.c81 do_prominfo(int syserrlog, char *pgname, int log_flag, int prt_flag) argument
89 progname = pgname;
H A Dpdevinfo_sun4v.c81 do_prominfo(int syserrlog, char *pgname, int log_flag, int prt_flag) argument
97 progname = pgname;
H A Dlibdevinfo_sun4u.c52 int do_devinfo(int syserrlog, char *pgname, int log_flag,
411 do_devinfo(int syserrlog, char *pgname, int log_flag, int prt_flag) argument
420 progname = pgname;
/illumos-gate/usr/src/lib/fm/libfmnotify/common/
H A Dlibfmnotify.c141 const char *pgname)
160 scf_service_get_pg(svc, pgname, pg) != -1)
173 nd_get_astring_prop(nd_hdl_t *nhdl, const char *svcname, const char *pgname, argument
186 if ((pg = nd_get_pg(nhdl, handle, svcname, pgname)) == NULL) {
188 "property group for %s", pgname, svcname);
217 nd_get_boolean_prop(nd_hdl_t *nhdl, const char *svcname, const char *pgname, argument
229 if ((pg = nd_get_pg(nhdl, handle, svcname, pgname)) == NULL) {
231 "property group for %s", pgname, svcname);
140 nd_get_pg(nd_hdl_t *nhdl, scf_handle_t *handle, const char *svcname, const char *pgname) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_scf.c178 ilbd_name_to_scfpgname(ilbd_scf_pg_type_t pg_type, const char *pgname, argument
184 ILBD_PG_NAME_RULE "%s", pgname);
188 ILBD_PG_NAME_SG "%s", pgname);
192 ILBD_PG_NAME_HC "%s", pgname);
197 pg_type, pgname);
260 ilbd_scf_retrieve_pg(const char *pgname, scf_propertygroup_t **pg, argument
276 if (scf_instance_get_pg(inst, pgname, *pg) != 0) {
299 if (scf_instance_add_pg(inst, pgname,
740 char *pgname; local
752 pgname
838 ilbd_destroy_pg(ilbd_scf_pg_type_t pg_t, const char *pgname) argument
[all...]
/illumos-gate/usr/src/cmd/acctadm/
H A Daconf.c448 aconf_get_string(const char *pgname, const char *propname, char *buf, argument
459 if (scf_instance_get_pg_composed(inst, NULL, pgname, pg) == -1) {
478 aconf_get_bool(const char *pgname, const char *propname, uint8_t *rval) argument
488 if (scf_instance_get_pg_composed(inst, NULL, pgname, pg) == -1) {
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_xml.c1542 lxml_get_event(entity_t *entity, const char *pgname, xmlNodePtr np) argument
1547 pgrp = internal_pgroup_find_or_create(entity, pgname,
1575 char *pgname = NULL; local
1619 pgname = safe_malloc(sz);
1621 if (snprintf(pgname, sz, "%s,%s", de_tag(*p),
1626 lxml_get_event(entity, pgname, np);
1650 free(pgname);
2083 char *pgname; local
2105 pgname = lxml_label_to_groupname(SCF_PG_TM_MAN_PREFIX, name);
2106 pg = internal_pgroup_find(service, pgname, SCF_GROUP_TEMPLAT
2145 char *pgname; local
[all...]
H A Dsvccfg_internal.c1337 prop_equal(property_t *p1, property_t *p2, const char *fmri, const char *pgname, argument
1347 assert((fmri == NULL) == (pgname == NULL));
1367 "type).\n"), fmri, pgname,
1372 "type).\n"), fmri, pgname,
1382 pgname, p1->sc_property_name);
1395 fmri, pgname, p1->sc_property_name);
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c1566 * Given a `pgname'/`pname', it retrieves the value based on `ptype' and
1570 ipmgmt_get_scfprop(scf_resources_t *res, const char *pgname, const char *pname, argument
1576 prop = scf_simple_prop_get(res->sr_handle, IPMGMTD_FMRI, pgname, pname);
1594 * It stores the `pval' for given `pgname'/`pname' property group in SCF.
1597 ipmgmt_set_scfprop(scf_resources_t *res, const char *pgname, const char *pname, argument
1608 if (scf_instance_add_pg(res->sr_inst, pgname, SCF_GROUP_APPLICATION,
1613 pgname, pname, scf_strerror(err));
1620 if (scf_instance_get_pg_composed(res->sr_inst, NULL, pgname,
1623 "of the property group '%s/%s': %s", pgname, pname,
/illumos-gate/usr/src/cmd/svc/startd/
H A Dlibscf.c430 char *pgname = NULL; local
435 pgname = startd_alloc(max_scf_fmri_size);
444 (void) strcpy(pgname, SCF_STN_PREFIX_TO);
445 (void) strlcat(pgname, smf_state_to_string(t),
448 if (scf_instance_get_pg_composed(inst, NULL, pgname, pg) ==
457 (void) strcpy(pgname, SCF_STN_PREFIX_FROM);
458 (void) strlcat(pgname, smf_state_to_string(t),
461 if (scf_instance_get_pg_composed(inst, NULL, pgname, pg) ==
473 startd_free(pgname, max_scf_fmri_size);
1546 libscf_inst_set_boolean_prop(scf_instance_t *inst, const char *pgname, argument
1607 libscf_inst_set_count_prop(scf_instance_t *inst, const char *pgname, const char *pgtype, uint32_t pgflags, const char *pname, uint64_t count) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/
H A Dworkfile.c55 char *pgname,
390 do_prominfo(int syserrlog, char *pgname, int log_flag, int prt_flag) argument
392 (void) do_devinfo(syserrlog, pgname, log_flag, prt_flag);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/daktari/common/
H A Dworkfile.c112 int do_prominfo(int syserrlog, char *pgname, int log_flag, int prt_flag);
253 do_prominfo(int syserrlog, char *pgname, int log_flag, int prt_flag) argument
255 return (do_devinfo(syserrlog, pgname, log_flag, prt_flag));

Completed in 300 milliseconds

12