Lines Matching defs:pg

77 #define	scf_entity_get_pg(ent, name, pg) \
78 (ent.type ? scf_service_get_pg(ent.u.svc, name, pg) : \
79 scf_instance_get_pg(ent.u.inst, name, pg))
220 * identification (the FMRI if fmris is true, pg/prop otherwise) and the type
224 display_prop(scf_propertygroup_t *pg, scf_property_t *prop)
251 if (scf_pg_get_name(pg, buf, buf_sz) < 0)
307 display_pg(scf_propertygroup_t *pg)
319 if (scf_iter_pg_properties(iter, pg) == -1)
323 display_prop(pg, prop);
409 * display_{pg,prop}() the named property groups and/or properties. Otherwise
416 scf_propertygroup_t *pg;
426 if ((pg = scf_pg_create(hndl)) == NULL ||
444 while ((ret = scf_iter_next_pg(iter, pg)) == 1)
445 display_pg(pg);
452 * pg's.
459 while ((ret = scf_iter_next_pg(iter, pg)) == 1) {
462 if (scf_pg_get_flags(pg, &flags) == -1)
465 display_pg(pg);
472 scf_pg_destroy(pg);
477 if ((pg = scf_pg_create(hndl)) == NULL ||
490 spn->spn_comp1, pg);
493 snap, spn->spn_comp1, pg);
498 * the current values if the pg is nonpersistent.
504 pg);
509 if (scf_pg_get_flags(pg, &flags) == -1)
527 ret = scf_entity_get_pg(ent, spn->spn_comp1, pg);
556 display_pg(pg);
560 if (scf_pg_get_property(pg, spn->spn_comp2, prop) == -1) {
587 display_prop(pg, prop);
591 scf_pg_destroy(pg);
601 process_pg(scf_propertygroup_t *pg)
610 display_pg(pg);
625 if (scf_pg_to_fmri(pg, buf, max_scf_fmri_length + 1) ==
637 if (scf_pg_get_property(pg, spn->spn_comp1, prop) == 0) {
639 display_prop(pg, prop);
650 if (scf_pg_to_fmri(pg, buf, max_scf_fmri_length + 1) ==
669 process_prop(scf_propertygroup_t *pg, scf_property_t *prop)
680 display_prop(pg, prop);
695 process_prop(wip->pg, wip->prop);
696 } else if (wip->pg != NULL) {
697 process_pg(wip->pg);
766 * Extract a pg and optionally a property name from fmri & prop_list.
767 * _scf_pg_wait() for the pg, and display_pg(pg) or display_prop(pg, prop)
775 scf_propertygroup_t *lpg, *pg;
789 pg = wip->pg;
794 } else if (wip->pg != NULL) {
806 if (scf_pg_get_property(wip->pg, propname, prop) !=
829 pg = wip->pg;
878 pg = lpg;
927 pg = lpg;
937 ret = _scf_pg_wait(pg, -1);
941 ret = scf_pg_update(pg);
953 if (scf_pg_get_property(pg, propname, prop) == SCF_SUCCESS) {
955 display_prop(pg, prop);
967 display_pg(pg);