Lines Matching refs:pg
77 #define scf_entity_get_pg(ent, name, pg) \ argument
78 (ent.type ? scf_service_get_pg(ent.u.svc, name, pg) : \
79 scf_instance_get_pg(ent.u.inst, name, pg))
224 display_prop(scf_propertygroup_t *pg, scf_property_t *prop) in display_prop() argument
251 if (scf_pg_get_name(pg, buf, buf_sz) < 0) in display_prop()
307 display_pg(scf_propertygroup_t *pg) in display_pg() argument
319 if (scf_iter_pg_properties(iter, pg) == -1) in display_pg()
323 display_prop(pg, prop); in display_pg()
416 scf_propertygroup_t *pg; in process_ent() local
426 if ((pg = scf_pg_create(hndl)) == NULL || in process_ent()
444 while ((ret = scf_iter_next_pg(iter, pg)) == 1) in process_ent()
445 display_pg(pg); in process_ent()
459 while ((ret = scf_iter_next_pg(iter, pg)) == 1) { in process_ent()
462 if (scf_pg_get_flags(pg, &flags) == -1) in process_ent()
465 display_pg(pg); in process_ent()
472 scf_pg_destroy(pg); in process_ent()
477 if ((pg = scf_pg_create(hndl)) == NULL || in process_ent()
490 spn->spn_comp1, pg); in process_ent()
493 snap, spn->spn_comp1, pg); in process_ent()
504 pg); in process_ent()
509 if (scf_pg_get_flags(pg, &flags) == -1) in process_ent()
527 ret = scf_entity_get_pg(ent, spn->spn_comp1, pg); in process_ent()
556 display_pg(pg); in process_ent()
560 if (scf_pg_get_property(pg, spn->spn_comp2, prop) == -1) { in process_ent()
587 display_prop(pg, prop); in process_ent()
591 scf_pg_destroy(pg); in process_ent()
601 process_pg(scf_propertygroup_t *pg) in process_pg() argument
610 display_pg(pg); in process_pg()
625 if (scf_pg_to_fmri(pg, buf, max_scf_fmri_length + 1) == in process_pg()
637 if (scf_pg_get_property(pg, spn->spn_comp1, prop) == 0) { in process_pg()
639 display_prop(pg, prop); in process_pg()
650 if (scf_pg_to_fmri(pg, buf, max_scf_fmri_length + 1) == in process_pg()
669 process_prop(scf_propertygroup_t *pg, scf_property_t *prop) in process_prop() argument
680 display_prop(pg, prop); in process_prop()
695 process_prop(wip->pg, wip->prop); in process_fmri()
696 } else if (wip->pg != NULL) { in process_fmri()
697 process_pg(wip->pg); in process_fmri()
775 scf_propertygroup_t *lpg, *pg; in do_wait() local
789 pg = wip->pg; in do_wait()
794 } else if (wip->pg != NULL) { in do_wait()
806 if (scf_pg_get_property(wip->pg, propname, prop) != in do_wait()
829 pg = wip->pg; in do_wait()
878 pg = lpg; in do_wait()
927 pg = lpg; in do_wait()
937 ret = _scf_pg_wait(pg, -1); in do_wait()
941 ret = scf_pg_update(pg); in do_wait()
953 if (scf_pg_get_property(pg, propname, prop) == SCF_SUCCESS) { in do_wait()
955 display_prop(pg, prop); in do_wait()
967 display_pg(pg); in do_wait()