Lines Matching refs:svc_ctx

177 	svcctl_service_context_t *svc_ctx;
191 svc_ctx = ctx->c_ctx.uc_svc;
192 free(svc_ctx->sc_mgrid);
193 free(svc_ctx->sc_svcname);
194 free(svc_ctx);
274 svcctl_service_context_t *svc_ctx;
290 if ((svc_ctx = malloc(sizeof (svcctl_service_context_t))) == NULL) {
295 bzero(svc_ctx, sizeof (svcctl_service_context_t));
297 svc_ctx->sc_mgrid = malloc(sizeof (ndr_hdid_t));
300 if ((svc_ctx->sc_mgrid == NULL) || (svcname == NULL)) {
302 free(svc_ctx->sc_mgrid);
303 free(svc_ctx);
309 svc_ctx->sc_svcname = svcname;
311 bcopy(mgr_id, svc_ctx->sc_mgrid, sizeof (ndr_hdid_t));
312 (void) strlcpy(svc_ctx->sc_svcname, svc_name, max_name_sz);
314 ctx->c_ctx.uc_svc = svc_ctx;
353 svcctl_service_context_t *svc_ctx;
363 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
364 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
389 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);
620 svcctl_service_context_t *svc_ctx;
630 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
631 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
638 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);
669 svcctl_service_context_t *svc_ctx;
680 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
681 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
687 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);
826 svcctl_service_context_t *svc_ctx;
838 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
839 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
846 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);
893 svcctl_service_context_t *svc_ctx;
902 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
903 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
909 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);
1194 svcctl_service_context_t *svc_ctx;
1224 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
1225 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
1231 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);
1308 svcctl_service_context_t *svc_ctx;
1322 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
1323 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
1350 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);