Lines Matching defs:h
28 #include <sys/contract/process.h>
29 #include <assert.h>
30 #include <errno.h>
31 #include <libscf.h>
32 #include <libscf_priv.h>
33 #include <poll.h>
34 #include <stdlib.h>
35 #include <string.h>
36 #include <unistd.h>
38 #include "startd.h"
73 * SCF_ERROR_INVALID_ARGUMENT, if h is NULL.
76 libscf_object_create(void *f(scf_handle_t *), scf_handle_t *h)
82 o = f(h);
94 o = f(h);
109 scf_handle_t *h;
112 h = scf_instance_handle(inst);
113 if (h == NULL)
116 snap = scf_snapshot_create(h);
135 scf_handle_t *h;
138 h = scf_instance_handle(inst);
140 snap = scf_snapshot_create(h);
190 libscf_snapshots_poststart(scf_handle_t *h, const char *fmri, boolean_t retake)
196 r = libscf_fmri_get_instance(h, fmri, &inst);
212 start = safe_scf_snapshot_create(h);
337 scf_handle_t *h;
341 h = scf_instance_handle(inst);
342 if (h == NULL)
345 snap = scf_snapshot_create(h);
399 libscf_read_single_astring(scf_handle_t *h, scf_property_t *prop, char **ret)
401 scf_value_t *val = safe_scf_value_create(h);
428 scf_handle_t *h = scf_instance_handle(inst);
429 scf_propertygroup_t *pg = scf_pg_create(h);
436 if (h == NULL || pg == NULL) {
479 libscf_get_global_stn_tset(scf_handle_t *h)
481 scf_instance_t *inst = scf_instance_create(h);
488 if (scf_handle_decode_fmri(h, SCF_INSTANCE_GLOBAL, NULL, NULL, inst,
510 scf_handle_t *h;
515 h = scf_pg_handle(pg);
516 prop = safe_scf_property_create(h);
524 ret = libscf_read_single_astring(h, prop, &char_state);
590 depgroup_empty(scf_handle_t *h, scf_propertygroup_t *pg)
597 iter = safe_scf_iter_create(h);
598 prop = safe_scf_property_create(h);
623 depgroup_read_scheme(scf_handle_t *h, scf_propertygroup_t *pg)
629 prop = safe_scf_property_create(h);
632 libscf_read_single_astring(h, prop, &scheme) != 0) {
651 depgroup_read_grouping(scf_handle_t *h, scf_propertygroup_t *pg)
655 scf_property_t *prop = safe_scf_property_create(h);
658 libscf_read_single_astring(h, prop, &grouping) != 0) {
681 depgroup_read_restart(scf_handle_t *h, scf_propertygroup_t *pg)
683 scf_property_t *prop = safe_scf_property_create(h);
688 libscf_read_single_astring(h, prop, &restart_on) != 0) {
725 scf_handle_t *h;
731 h = scf_pg_handle(pg);
732 prop = safe_scf_property_create(h);
733 val = safe_scf_value_create(h);
848 scf_handle_t *h;
853 h = scf_pg_handle(pg);
854 prop = safe_scf_property_create(h);
855 val = safe_scf_value_create(h);
940 get_restarter(scf_handle_t *h, scf_propertygroup_t *pg, char **restarter)
942 scf_property_t *prop = safe_scf_property_create(h);
945 libscf_read_single_astring(h, prop, restarter) != 0)
993 libscf_fmri_get_instance(scf_handle_t *h, const char *fmri,
999 inst = safe_scf_instance_create(h);
1048 libscf_get_deathrow(scf_handle_t *h, scf_instance_t *inst, int *deathrow)
1054 pg = safe_scf_pg_create(h);
1115 libscf_get_basic_instance_data(scf_handle_t *h, scf_instance_t *inst,
1122 pg = safe_scf_pg_create(h);
1228 get_restarter(h, pg, restarter_fmri);
1416 scf_handle_t *h;
1423 h = scf_pg_handle(pg);
1424 tx = safe_scf_transaction_create(h);
1425 e = safe_scf_entry_create(h);
1549 scf_handle_t *h;
1554 h = scf_instance_handle(inst);
1555 pg = safe_scf_pg_create(h);
1556 v = safe_scf_value_create(h);
1610 scf_handle_t *h;
1615 h = scf_instance_handle(inst);
1616 pg = safe_scf_pg_create(h);
1617 v = safe_scf_value_create(h);
1905 scf_handle_t *h;
1913 h = scf_pg_handle(pg);
1914 tx = safe_scf_transaction_create(h);
1915 e_rl = safe_scf_entry_create(h);
1916 e_ms = safe_scf_entry_create(h);
1917 val = safe_scf_value_create(h);
2073 scf_handle_t *h;
2082 h = scf_instance_handle(inst);
2083 pg = safe_scf_pg_create(h);
2084 prop = safe_scf_property_create(h);
2133 if ((r = libscf_read_single_astring(h, prop, &cname)) !=
2169 if ((r = libscf_read_single_astring(h, prop, &c_cname)) != 0) {
2207 scf_handle_t *h;
2214 h = scf_instance_handle(inst);
2215 pg = safe_scf_pg_create(h);
2216 prop = safe_scf_property_create(h);
2267 if ((r = libscf_read_single_astring(h, prop, &style_str))
2285 if ((r = libscf_read_single_astring(h, prop, prefixp)) != 0) {
2329 libscf_read_method_ids(scf_handle_t *h, scf_instance_t *inst, const char *fmri,
2342 pg = safe_scf_pg_create(h);
2343 prop = safe_scf_property_create(h);
2344 val = safe_scf_value_create(h);
2463 scf_handle_t *h;
2469 h = scf_instance_handle(s_inst);
2471 pg = safe_scf_pg_create(h);
2472 t_pid = safe_scf_entry_create(h);
2473 v_pid = safe_scf_value_create(h);
2536 scf_handle_t *h;
2543 h = scf_instance_handle(inst);
2544 pg = safe_scf_pg_create(h);
2545 v = safe_scf_value_create(h);
2613 scf_handle_t *h;
2626 h = scf_instance_handle(s_inst);
2628 pg = safe_scf_pg_create(h);
2629 tx = safe_scf_transaction_create(h);
2630 e_time = safe_scf_entry_create(h);
2631 v_time = safe_scf_value_create(h);
2632 e_stat = safe_scf_entry_create(h);
2633 v_stat = safe_scf_value_create(h);
2794 libscf_populate_graph(scf_handle_t *h)
2802 scope = safe_scf_scope_create(h);
2803 svc = safe_scf_service_create(h);
2804 inst = safe_scf_instance_create(h);
2805 svc_iter = safe_scf_iter_create(h);
2806 inst_iter = safe_scf_iter_create(h);
2810 stn_global = libscf_get_global_stn_tset(h);
2812 if (scf_handle_get_local_scope(h, scope) !=
2857 libscf_get_method(scf_handle_t *h, int type, restarter_inst_t *inst,
2871 scf_inst = safe_scf_instance_create(h);
2872 pg = safe_scf_pg_create(h);
2873 pg_startd = safe_scf_pg_create(h);
2874 prop = safe_scf_property_create(h);
2895 if (scf_handle_decode_fmri(h, inst->ri_i.i_fmri, NULL, NULL, scf_inst,
2920 error = libscf_read_single_astring(h, prop, &method);
2992 error = libscf_read_single_astring(h, prop, &ig);
3073 error = libscf_read_single_astring(h, prop, &restart);
3138 libscf_unset_action(scf_handle_t *h, scf_propertygroup_t *pg,
3148 t = safe_scf_transaction_create(h);
3149 e = safe_scf_entry_create(h);
3150 prop = safe_scf_property_create(h);
3151 val = safe_scf_value_create(h);
3357 libscf_handle_rebind(scf_handle_t *h)
3359 (void) scf_handle_unbind(h);
3367 while (handle_decorate_and_bind(h) != 0)
3381 scf_handle_t *h;
3383 while ((h = scf_handle_create(SCF_VERSION)) == NULL) {
3389 if (handle_decorate_and_bind(h) != 0)
3390 libscf_handle_rebind(h);
3392 return (h);
3405 scf_handle_t *h;
3411 h = scf_instance_handle(inst);
3413 iter = safe_scf_iter_create(h);
3414 pg = safe_scf_pg_create(h);
3488 scf_handle_t *h;
3513 h = scf_property_handle(prop);
3515 val = safe_scf_value_create(h);
3516 iter = safe_scf_iter_create(h);
3584 libscf_create_self(scf_handle_t *h)
3602 scope = safe_scf_scope_create(h);
3603 svc = safe_scf_service_create(h);
3604 inst = safe_scf_instance_create(h);
3606 if (scf_handle_get_scope(h, SCF_SCOPE_LOCAL, scope) != 0) {
3717 switch (r = _restarter_commit_states(h, &idata,
3852 scf_handle_t *h;
3857 h = libscf_handle_create_bound_loop();
3858 inst = safe_scf_instance_create(h);
3859 pg = safe_scf_pg_create(h);
3862 if (scf_handle_decode_fmri(h, SCF_SERVICE_STARTD, NULL, NULL,
3867 libscf_handle_rebind(h);
3891 libscf_handle_rebind(h);
3905 scf_handle_destroy(h);
3917 scf_handle_t *h;
3920 h = scf_instance_handle(inst->ri_m_inst);
3931 libscf_handle_rebind(h);