Home
last modified time | relevance | path

Searched refs:scf_instance_t (Results 1 – 25 of 58) sorted by relevance

123

/illumos-gate/usr/src/cmd/svc/startd/
H A Dstartd.h344 int32_t libscf_get_stn_tset(scf_instance_t *);
451 scf_instance_t *ri_m_inst;
590 int expand_method_tokens(const char *, scf_instance_t *,
618 int dgraph_add_instance(const char *, scf_instance_t *, boolean_t);
621 int refresh_vertex(graph_vertex_t *, scf_instance_t *);
636 int libscf_instance_get_fmri(scf_instance_t *, char **);
637 int libscf_fmri_get_instance(scf_handle_t *, const char *, scf_instance_t **);
638 int libscf_lookup_instance(const char *, scf_instance_t *);
640 scf_snapshot_t *libscf_get_or_make_running_snapshot(scf_instance_t *,
642 int libscf_inst_set_count_prop(scf_instance_t *, const char *,
[all …]
H A Dlibscf.c108 libscf_get_running_snapshot(scf_instance_t *inst) in libscf_get_running_snapshot()
133 libscf_get_or_make_running_snapshot(scf_instance_t *inst, const char *fmri, in libscf_get_or_make_running_snapshot()
193 scf_instance_t *inst = NULL; in libscf_snapshots_poststart()
336 libscf_snapshots_refresh(scf_instance_t *inst, const char *fmri) in libscf_snapshots_refresh()
427 libscf_get_stn_tset(scf_instance_t *inst) in libscf_get_stn_tset()
482 scf_instance_t *inst = scf_instance_create(h); in libscf_get_global_stn_tset()
958 libscf_instance_get_fmri(scf_instance_t *inst, char **retp) in libscf_instance_get_fmri()
995 scf_instance_t **instp) in libscf_fmri_get_instance()
997 scf_instance_t *inst; in libscf_fmri_get_instance()
1013 libscf_lookup_instance(const char *fmri, scf_instance_t *inst) in libscf_lookup_instance()
[all …]
H A Dexpand.c105 get_prop(const scf_instance_t *inst, scf_snapshot_t *snap, in get_prop()
153 get_prop_val_str(const scf_instance_t *inst, scf_snapshot_t *snap, in get_prop_val_str()
159 scf_instance_t *tmpinst = NULL; in get_prop_val_str()
355 expand_token(const char *str, scf_instance_t *inst, scf_snapshot_t *snap, in expand_token()
554 expand_method_tokens(const char *str, scf_instance_t *inst, in expand_method_tokens()
H A Dgraph.c1826 scf_instance_t *scf_inst = safe_scf_instance_create(h); in offline_vertex()
2020 static int configure_vertex(graph_vertex_t *, scf_instance_t *);
2106 scf_instance_t *inst; in graph_change_restarter()
2162 scf_instance_t *inst; in add_service()
2319 scf_instance_t *inst; in process_dependency_fmri()
2668 set_dependencies(graph_vertex_t *v, scf_instance_t *inst, int **pathp) in set_dependencies()
2891 scf_instance_t *inst; in eval_subgraph()
2987 refresh_vertex(graph_vertex_t *v, scf_instance_t *inst) in refresh_vertex()
3119 configure_vertex(graph_vertex_t *v, scf_instance_t *inst) in configure_vertex()
3877 scf_instance_t *inst; in single_user_thread()
[all …]
H A Drestarter.c252 scf_instance_t *scf_inst) in check_contract()
322 scf_instance_t *scf_inst; in restarter_insert_inst()
940 scf_instance_t *sinst = NULL; in restarter_take_pending_snapshots()
1269 scf_instance_t *inst; in unmaintain_instance()
1568 scf_instance_t *inst; in event_from_tty()
1583 scf_instance_t *inst; in restart_dump()
1601 scf_instance_t *scf_inst = NULL; in maintain_instance()
1678 scf_instance_t *inst; in refresh_instance()
1758 scf_instance_t *scf_inst = NULL; in degrade_instance()
/illumos-gate/usr/src/lib/librestart/common/
H A Dlibrestart.h266 int restarter_store_contract(scf_instance_t *, ctid_t,
268 int restarter_remove_contract(scf_instance_t *, ctid_t,
320 mc_error_t *restarter_get_method_context(uint_t, scf_instance_t *,
332 int restarter_inst_validate_ractions_aux_fmri(scf_instance_t *);
335 int restarter_inst_reset_ractions_aux_fmri(scf_instance_t *);
338 int restarter_inst_ractions_from_tty(scf_instance_t *);
341 int restarter_inst_reset_aux_fmri(scf_instance_t *);
344 int restarter_inst_dump(scf_instance_t *);
350 int restarter_inst_set_aux_fmri(scf_instance_t *);
/illumos-gate/usr/src/lib/libscf/inc/
H A Dlibscf.h53 typedef struct scf_instance scf_instance_t; typedef
546 int scf_iter_instance_pgs(scf_iter_t *, const scf_instance_t *);
547 int scf_iter_instance_pgs_composed(scf_iter_t *, const scf_instance_t *,
551 int scf_iter_instance_pgs_typed(scf_iter_t *, const scf_instance_t *,
553 int scf_iter_instance_pgs_typed_composed(scf_iter_t *, const scf_instance_t *,
558 int scf_iter_instance_snapshots(scf_iter_t *, const scf_instance_t *);
564 int scf_iter_next_instance(scf_iter_t *, scf_instance_t *);
594 scf_instance_t *scf_instance_create(scf_handle_t *);
595 scf_handle_t *scf_instance_handle(const scf_instance_t *);
596 void scf_instance_destroy(scf_instance_t *);
[all …]
H A Dlibscf_priv.h188 int _scf_snapshot_take_new(scf_instance_t *, const char *, scf_snapshot_t *);
189 int _scf_snapshot_take_new_named(scf_instance_t *,
191 int _scf_snapshot_take_attach(scf_instance_t *, scf_snapshot_t *);
218 int _smf_refresh_instance_i(scf_instance_t *);
223 scf_instance_t *inst;
311 scf_instance_t *inst;
537 scf_instance_delete_prop(scf_instance_t *, const char *, const char *);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/
H A Drouteadm.c426 static int ra_get_pg(scf_handle_t *, scf_instance_t *, const char *,
428 static int ra_get_boolean_prop(scf_handle_t *, scf_instance_t *,
430 static int ra_get_single_prop_as_string(scf_handle_t *, scf_instance_t *,
432 static int ra_get_prop_as_string(scf_handle_t *, scf_instance_t *,
436 static int ra_set_boolean_prop(scf_handle_t *, scf_instance_t *,
438 static int ra_set_prop_from_string(scf_handle_t *, scf_instance_t *,
896 scf_instance_t *inst = wip->inst; in ra_upgrade_legacy_daemons_cb()
1341 scf_instance_t *inst = wip->inst; in ra_routing_opt_set_unset_cb()
1369 scf_instance_t *inst = wip->inst; in ra_get_set_opt_common_cb()
1572 scf_instance_t *inst = wip->inst; in ra_set_default_opt_cb()
[all …]
/illumos-gate/usr/src/cmd/svc/svcadm/
H A Dsynch.c53 extern int inst_get_state(scf_instance_t *, char *, const char *,
61 int has_potential(scf_instance_t *, int);
69 is_enabled(scf_instance_t *inst) in is_enabled()
244 inst_has_potential(scf_instance_t *inst, int enabled, int optional, int exclude) in inst_has_potential()
298 scf_instance_t *inst; in fmri_has_potential()
449 has_potential(scf_instance_t *inst, int restarter_only) in has_potential()
H A Dsvcadm.c136 extern int is_enabled(scf_instance_t *);
137 extern int has_potential(scf_instance_t *, int);
456 pg_get_or_add(const scf_instance_t *inst, const char *pgname, in pg_get_or_add()
519 restarter_setup(const char *fmri, const scf_instance_t *inst) in restarter_setup()
595 delete_prop(const char *fmri, scf_instance_t *inst, const char *pgname, in delete_prop()
733 set_inst_enabled(const char *fmri, scf_instance_t *inst, enable_data_t *ed) in set_inst_enabled()
930 get_inst_mult(const char *fmri, scf_instance_t *inst) in get_inst_mult()
935 scf_instance_t *inst2; in get_inst_mult()
1035 get_inst(const char *fmri, scf_instance_t *inst) in get_inst()
1049 inst_get_fmri(const scf_instance_t *inst) in inst_get_fmri()
[all …]
/illumos-gate/usr/src/lib/libscf/common/
H A Dnotify_params.c191 get_pg(scf_service_t *s, scf_instance_t *i, const char *n, in get_pg()
241 get_or_add_pg(scf_service_t *s, scf_instance_t *i, const char *n, const char *t, in get_or_add_pg()
283 del_pg(scf_service_t *s, scf_instance_t *i, const char *n, in del_pg()
835 scf_instance_t **i) in decode_fmri()
1271 scf_instance_t *i = scf_instance_create(h); in smf_notify_set_params()
1508 get_stn_pg(scf_service_t *s, scf_instance_t *i, scf_instance_t *g, in get_stn_pg()
1582 scf_instance_t *i = scf_instance_create(h); in _scf_get_svc_notify_params()
1583 scf_instance_t *g = scf_instance_create(h); in _scf_get_svc_notify_params()
1706 scf_instance_t *i = scf_instance_create(h); in _scf_get_fma_notify_params()
1882 scf_instance_t *i = scf_instance_create(h); in smf_notify_del_params()
H A Dmidlevel.c480 get_inst_enabled(const scf_instance_t *inst, const char *pgname) in get_inst_enabled()
521 set_inst_enabled(const scf_instance_t *inst, uint8_t desired, in set_inst_enabled()
683 delete_inst_enabled(const scf_instance_t *inst, const char *pgname) in delete_inst_enabled()
763 set_inst_action_inst(scf_instance_t *inst, const char *action) in set_inst_action_inst()
971 scf_instance_t *inst; in set_inst_action()
1013 get_inst_state(scf_instance_t *inst, scf_handle_t *h) in get_inst_state()
1069 set_inst_enabled_atboot(scf_instance_t *inst, uint8_t desired, in set_inst_enabled_atboot()
1112 scf_instance_t *inst; in set_inst_enabled_flags()
1222 _smf_refresh_instance_i(scf_instance_t *inst) in _smf_refresh_instance_i()
1231 scf_instance_t *i = scf_instance_create(h); in _smf_refresh_all_instances()
[all …]
H A Dlowlevel.c1352 scf_instance_t *inst; in handle_unrefed()
2562 scf_iter_next_instance(scf_iter_t *iter, scf_instance_t *out) in scf_iter_next_instance()
2582 scf_iter_instance_snapshots(scf_iter_t *iter, const scf_instance_t *inst) in scf_iter_instance_snapshots()
2595 scf_iter_instance_pgs(scf_iter_t *iter, const scf_instance_t *inst) in scf_iter_instance_pgs()
2602 scf_iter_instance_pgs_typed(scf_iter_t *iter, const scf_instance_t *inst, in scf_iter_instance_pgs_typed()
2609 scf_iter_instance_pgs_composed(scf_iter_t *iter, const scf_instance_t *inst, in scf_iter_instance_pgs_composed()
2621 const scf_instance_t *inst, const scf_snapshot_t *snap, const char *type) in scf_iter_instance_pgs_typed_composed()
2797 scf_instance_delete(scf_instance_t *inst) in scf_instance_delete()
2831 scf_instance_t *instance) in scf_service_add_instance()
2846 scf_instance_t *inst) in scf_service_get_instance()
[all …]
H A Dscf_tmpl.c93 scf_instance_t *pt_orig_inst;
94 scf_instance_t *pt_inst;
109 scf_instance_t *pw_inst;
120 scf_instance_t *_inst, pg_tmpl_walk_t *p);
910 _get_snapshot(scf_instance_t *inst, const char *snapshot, in _get_snapshot()
984 static scf_instance_t *
986 scf_instance_t *inst, scf_snapshot_t *s) in _get_restarter_inst()
989 scf_instance_t *ri = NULL; in _get_restarter_inst()
1114 static scf_instance_t *
1117 scf_instance_t *ri; in _get_global_inst()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetadm/
H A Dinetadm.c186 modify_prop(const scf_instance_t *inst, const char *pg, const char *prop, in modify_prop()
318 delete_prop(const scf_instance_t *inst, const char *pg, const char *prop) in delete_prop()
384 commit_props(const scf_instance_t *inst, inetd_prop_t *mod, boolean_t defaults) in commit_props()
440 list_callback(scf_handle_t *hin, scf_instance_t *inst, void *buf) in list_callback()
753 scf_instance_t *inst = wip->inst; in modify_inst_props_cb()
885 scf_instance_t *inst; in modify_defaults()
/illumos-gate/usr/src/cmd/ipf/svc/
H A Dipfd.c97 static scf_instance_t *inst;
361 service_is_rpc(const scf_instance_t *inst) in service_is_rpc()
419 instance_has_firewall(scf_instance_t *inst) in instance_has_firewall()
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.h61 int inst_get_single_val(scf_instance_t *, const char *, const char *,
H A Dsvcs.c485 get_running_snapshot(scf_instance_t *inst) in get_running_snapshot()
511 inst_get_single_val(scf_instance_t *inst, const char *pgname, in inst_get_single_val()
535 instance_enabled(scf_instance_t *inst, boolean_t temp) in instance_enabled()
552 get_restarter_string_prop(scf_instance_t *inst, const char *pname, in get_restarter_string_prop()
561 get_restarter_time_prop(scf_instance_t *inst, const char *pname, in get_restarter_time_prop()
573 get_restarter_count_prop(scf_instance_t *inst, const char *pname, uint64_t *cp, in get_restarter_count_prop()
676 check_for_restarter(scf_instance_t *inst, const char *restarter) in check_for_restarter()
725 common_by_restarter(scf_instance_t *inst, const char *fmri, in common_by_restarter()
869 pids_by_restarter(scf_instance_t *inst, const char *fmri, in pids_by_restarter()
914 instance_processes(scf_instance_t *inst, const char *fmri, in instance_processes()
[all …]
/illumos-gate/usr/src/lib/libshare/common/
H A Dscfutil.h47 scf_instance_t *instance;
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dsmfcfg.h59 scf_instance_t *fs_instance;
H A Dsmfcfg.c157 scf_instance_t *inst; in fs_smf_set_prop()
291 scf_instance_t *inst; in fs_smf_get_prop()
473 scf_instance_t *inst; in nfs_upgrade_server_vers()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_scm.c183 scf_instance_t *inst) in svcctl_scm_get_running_snapshot()
211 svcctl_scm_inst_get_val(svcctl_manager_context_t *mgr_ctx, scf_instance_t *inst, in svcctl_scm_inst_get_val()
244 scf_instance_t *inst, const char *pname, char *buf, size_t buf_sz) in svcctl_scm_get_restarter_string_prop()
258 scf_instance_t *inst) in svcctl_scm_svc_transitioning()
/illumos-gate/usr/src/lib/libshare/smbfs/
H A Dlibshare_smbfs.h104 scf_instance_t *scf_instance;
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmap_config.h59 scf_instance_t *instance;

123