Searched refs:mgr_ctx (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | svcctl_scm.c | 98 svcctl_scm_pg_get_val(svcctl_manager_context_t *mgr_ctx, in svcctl_scm_pg_get_val() argument 107 if (scf_pg_get_property(pg, propname, mgr_ctx->mc_scf_gprop) == -1) in svcctl_scm_pg_get_val() 110 if (scf_property_is_type(mgr_ctx->mc_scf_gprop, ty) != SCF_SUCCESS) in svcctl_scm_pg_get_val() 113 if (scf_property_get_value(mgr_ctx->mc_scf_gprop, in svcctl_scm_pg_get_val() 114 mgr_ctx->mc_scf_gval) != SCF_SUCCESS) { in svcctl_scm_pg_get_val() 135 (mgr_ctx->mc_scf_gval, vp, sz) > 0 ? SCF_SUCCESS : -1; in svcctl_scm_pg_get_val() 139 r = scf_value_get_boolean(mgr_ctx->mc_scf_gval, (uint8_t *)vp); in svcctl_scm_pg_get_val() 143 r = scf_value_get_count(mgr_ctx->mc_scf_gval, (uint64_t *)vp); in svcctl_scm_pg_get_val() 147 r = scf_value_get_integer(mgr_ctx->mc_scf_gval, (int64_t *)vp); in svcctl_scm_pg_get_val() 153 r = scf_value_get_time(mgr_ctx->mc_scf_gval, &sec, &ns); in svcctl_scm_pg_get_val() [all …]
|
H A D | svcctl_svc.c | 177 svcctl_manager_context_t *mgr_ctx; in svcctl_hdfree() local 185 mgr_ctx = ctx->c_ctx.uc_mgr; in svcctl_hdfree() 186 svcctl_scm_fini(mgr_ctx); in svcctl_hdfree() 187 svcctl_scm_scf_handle_fini(mgr_ctx); in svcctl_hdfree() 188 free(mgr_ctx); in svcctl_hdfree() 216 svcctl_manager_context_t *mgr_ctx; in svcctl_mgr_hdalloc() local 222 if ((mgr_ctx = malloc(sizeof (svcctl_manager_context_t))) == NULL) { in svcctl_mgr_hdalloc() 226 bzero(mgr_ctx, sizeof (svcctl_manager_context_t)); in svcctl_mgr_hdalloc() 228 if (svcctl_scm_scf_handle_init(mgr_ctx) < 0) { in svcctl_mgr_hdalloc() 229 free(mgr_ctx); in svcctl_mgr_hdalloc() [all …]
|