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()
635 if (scf_pg_get_property(pg, spn->spn_comp1, prop) == 0) { in process_pg()
637 display_prop(pg, prop); in process_pg()
648 if (scf_pg_to_fmri(pg, buf, max_scf_fmri_length + 1) == in process_pg()
667 process_prop(scf_propertygroup_t *pg, scf_property_t *prop) in process_prop() argument
678 display_prop(pg, prop); in process_prop()
693 process_prop(wip->pg, wip->prop); in process_fmri()
694 } else if (wip->pg != NULL) { in process_fmri()
695 process_pg(wip->pg); in process_fmri()
773 scf_propertygroup_t *lpg, *pg; in do_wait() local
787 pg = wip->pg; in do_wait()
792 } else if (wip->pg != NULL) { in do_wait()
804 if (scf_pg_get_property(wip->pg, propname, prop) != in do_wait()
825 pg = wip->pg; in do_wait()
872 pg = lpg; in do_wait()
920 pg = lpg; in do_wait()
930 ret = _scf_pg_wait(pg, -1); in do_wait()
934 ret = scf_pg_update(pg); in do_wait()
946 if (scf_pg_get_property(pg, propname, prop) == SCF_SUCCESS) { in do_wait()
948 display_prop(pg, prop); in do_wait()
960 display_pg(pg); in do_wait()