Lines Matching defs:pg
1030 case GVT_GROUP: /* pg dependency */
1854 scf_propertygroup_t *pg = safe_scf_pg_create(h);
1862 if (pg == NULL)
1875 scf_pg_destroy(pg);
1885 r = scf_instance_get_pg(scf_inst, SCF_PG_RESTARTER, pg);
1894 scf_pg_destroy(pg);
1904 r = libscf_read_states(pg, &state, &next_state);
1910 scf_pg_destroy(pg);
1918 scf_pg_destroy(pg);
2318 const char *pg_name; /* Name of dependency pg */
2345 const char *scope, *service, *instance, *pg;
2395 &instance, &pg, NULL) != 0) {
2404 if (service == NULL || pg != NULL) {
2532 process_dependency_pg(scf_propertygroup_t *pg, struct deppg_info *info)
2549 h = scf_pg_handle(pg);
2553 len = scf_pg_get_name(pg, pg_name, max_scf_name_size);
2574 empty = depgroup_empty(h, pg);
2596 /* Validate the pg before modifying the graph */
2597 deptype = depgroup_read_grouping(h, pg);
2607 rerr = depgroup_read_restart(h, pg);
2619 if (scf_pg_get_property(pg, SCF_PROPERTY_ENTITIES, prop) != 0) {
2642 /* Create depgroup vertex for pg */
2654 linfo.type = depgroup_read_scheme(h, pg);
3149 scf_propertygroup_t *pg;
3252 pg = safe_scf_pg_create(h);
3254 if (scf_instance_get_pg(inst, SCF_PG_RESTARTER, pg) != 0) {
3264 scf_pg_destroy(pg);
3269 scf_pg_destroy(pg);
3284 scf_pg_destroy(pg);
3315 scf_pg_destroy(pg);
3321 scf_pg_destroy(pg);
3340 scf_pg_destroy(pg);
4165 * Returns 0 on success, ENOTSUP if the pg's parent is not an instance,
4171 dgraph_update_general(scf_propertygroup_t *pg)
4183 h = scf_pg_handle(pg);
4187 if (scf_pg_get_parent_instance(pg, inst) != 0) {
5201 * ECANCELED - pg was deleted
5204 dgraph_set_runlevel(scf_propertygroup_t *pg, scf_property_t *prop)
5264 h = scf_pg_handle(pg);
5405 switch (r = libscf_clear_runlevel(pg, ms)) {
5896 scf_propertygroup_t *pg;
5898 pg = safe_scf_pg_create(h);
5905 pg);
5932 r = libscf_clear_runlevel(pg, fmri);
5959 scf_pg_destroy(pg);
6278 process_actions(scf_handle_t *h, scf_propertygroup_t *pg, scf_instance_t *inst)
6319 if (scf_pg_get_property(pg, admin_actions[i], prop) != 0) {
6394 r = libscf_unset_action(h, pg, a, action_ts[a]);
6428 /* pg & inst are reset now, so just return. */
6439 r = libscf_unset_action(h, pg, a, action_ts[a]);
6477 process_pg_event(scf_handle_t *h, scf_propertygroup_t *pg, scf_instance_t *inst,
6486 if (scf_pg_get_name(pg, pg_name, max_scf_value_size) < 0) {
6502 r = dgraph_update_general(pg);
6520 if (scf_pg_get_parent_instance(pg, inst) != 0) {
6539 return (process_actions(h, pg, inst));
6552 if (scf_pg_get_parent_instance(pg, inst) != 0) {
6593 info_events_all = libscf_get_info_events_all(pg);
6622 if (scf_instance_get_pg(inst, pg_name, pg) != 0) {
6642 if (scf_pg_get_property(pg, "runlevel", prop) == 0) {
6643 r = dgraph_set_runlevel(pg, prop);
6821 scf_propertygroup_t *pg;
6829 pg = safe_scf_pg_create(h);
6853 res = _scf_notify_wait(pg, fmri, max_scf_fmri_size);
6862 if (scf_pg_update(pg) < 0) {
6881 r = process_pg_event(h, pg, inst, pg_name);
6900 * Service, instance, or pg deleted.