Lines Matching defs:v

60 gt_enter_uninit(scf_handle_t *h, graph_vertex_t *v,
68 err = libscf_fmri_get_instance(h, v->gv_name, &inst);
85 err = refresh_vertex(v, inst);
87 graph_enable_by_vertex(v, v->gv_flags & GV_ENABLED, 0);
94 v->gv_name);
96 graph_transition_propagate(v, PROPAGATE_STOP, rerr);
105 gt_enter_maint(scf_handle_t *h, graph_vertex_t *v,
108 int to_offline = v->gv_flags & GV_TOOFFLINE;
121 v->gv_flags &= ~GV_TODISABLE;
122 v->gv_flags &= ~GV_TOOFFLINE;
131 v->gv_name);
133 graph_offline_subtree_leaves(v, (void *)h);
137 "%s.\n", v->gv_name);
139 graph_transition_propagate(v, PROPAGATE_STOP, rerr);
142 v->gv_name);
144 graph_transition_propagate(v, PROPAGATE_SAT, rerr);
153 gt_enter_offline(scf_handle_t *h, graph_vertex_t *v,
156 int to_offline = v->gv_flags & GV_TOOFFLINE;
158 v->gv_flags &= ~GV_TOOFFLINE;
166 if (v->gv_flags & GV_ENABLED) {
168 graph_start_if_satisfied(v);
170 if (gt_running(old_state) && v->gv_post_disable_f)
171 v->gv_post_disable_f();
173 vertex_send_event(v, RESTARTER_EVENT_TYPE_DISABLE);
192 v->gv_name);
194 graph_offline_subtree_leaves(v, (void *)h);
198 v->gv_name);
200 graph_transition_propagate(v, PROPAGATE_STOP, rerr);
207 graph_transition_propagate(v, PROPAGATE_SAT, rerr);
210 v->gv_name);
212 graph_transition_propagate(v, PROPAGATE_SAT, rerr);
221 gt_enter_disabled(scf_handle_t *h, graph_vertex_t *v,
224 int to_offline = v->gv_flags & GV_TOOFFLINE;
226 v->gv_flags &= ~GV_TODISABLE;
227 v->gv_flags &= ~GV_TOOFFLINE;
235 if (v->gv_flags & GV_ENABLED) {
236 vertex_send_event(v, RESTARTER_EVENT_TYPE_ENABLE);
237 } else if (gt_running(old_state) && v->gv_post_disable_f) {
238 v->gv_post_disable_f();
255 v->gv_name);
261 graph_offline_subtree_leaves(v, (void *)h);
266 v->gv_name);
268 graph_transition_propagate(v, PROPAGATE_STOP, rerr);
272 v->gv_name);
274 graph_transition_propagate(v, PROPAGATE_SAT, rerr);
282 gt_internal_online_or_degraded(scf_handle_t *h, graph_vertex_t *v,
297 v->gv_post_online_f)
298 v->gv_post_online_f();
300 r = libscf_snapshots_poststart(h, v->gv_name, B_TRUE);
321 if (!(v->gv_flags & GV_ENABLED)) {
322 vertex_send_event(v, RESTARTER_EVENT_TYPE_DISABLE);
323 } else if (v->gv_flags & GV_TOOFFLINE) {
331 offline_vertex(v);
336 v->gv_name);
338 graph_transition_propagate(v, PROPAGATE_START, rerr);
343 v->gv_name);
345 graph_transition_propagate(v, PROPAGATE_STOP, rerr);
352 gt_enter_online(scf_handle_t *h, graph_vertex_t *v,
357 r = gt_internal_online_or_degraded(h, v, old_state, rerr);
366 gt_enter_degraded(scf_handle_t *h, graph_vertex_t *v,
371 r = gt_internal_online_or_degraded(h, v, old_state, rerr);
385 * v->gv_state should be set to the state we're transitioning to before
389 gt_transition(scf_handle_t *h, graph_vertex_t *v, restarter_error_t rerr,
401 err = vertex_subgraph_dependencies_shutdown(h, v, old_state);
417 switch (v->gv_state) {
419 err = gt_enter_uninit(h, v, old_state, rerr);
423 err = gt_enter_disabled(h, v, old_state, rerr);
427 err = gt_enter_offline(h, v, old_state, rerr);
431 err = gt_enter_online(h, v, old_state, rerr);
435 err = gt_enter_degraded(h, v, old_state, rerr);
439 err = gt_enter_maint(h, v, old_state, rerr);
446 v->gv_state);
463 __FILE__, __LINE__, instance_state_str[v->gv_state], err);