Lines Matching defs:svc_ctx

178 	svcctl_service_context_t *svc_ctx;
192 svc_ctx = ctx->c_ctx.uc_svc;
193 free(svc_ctx->sc_mgrid);
194 free(svc_ctx->sc_svcname);
195 free(svc_ctx);
275 svcctl_service_context_t *svc_ctx;
291 if ((svc_ctx = malloc(sizeof (svcctl_service_context_t))) == NULL) {
296 bzero(svc_ctx, sizeof (svcctl_service_context_t));
298 svc_ctx->sc_mgrid = malloc(sizeof (ndr_hdid_t));
301 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;
1321 svc_ctx = ((svcctl_context_t *)hd->nh_data)->c_ctx.uc_svc;
1322 mgr_ctx = svcctl_get_mgr_ctx(mxa, svc_ctx->sc_mgrid);
1349 svc = svcctl_scm_find_service(mgr_ctx, svc_ctx->sc_svcname);