Lines Matching refs:newsvc
2333 ds_svc_t *newsvc; in ds_alloc_svc() local
2367 if ((newsvc = ds_svcs.tbl[idx]) == NULL) { in ds_alloc_svc()
2369 newsvc = DS_MALLOC(sizeof (ds_svc_t)); in ds_alloc_svc()
2370 ds_svcs.tbl[idx] = newsvc; in ds_alloc_svc()
2374 newsvc->hdl = DS_ALLOC_HDL(idx, DS_HDL2COUNT(newsvc->hdl)); in ds_alloc_svc()
2375 newsvc->state = DS_SVC_FREE; /* Mark as free temporarily */ in ds_alloc_svc()
2377 return (newsvc); in ds_alloc_svc()
3193 ds_svc_t *newsvc; in ds_svc_clone() local
3198 newsvc = ds_alloc_svc(); in ds_svc_clone()
3201 hdl = newsvc->hdl | DS_HDL_ISCLIENT_BIT; in ds_svc_clone()
3205 (void) memcpy(newsvc, svc, sizeof (ds_svc_t)); in ds_svc_clone()
3206 newsvc->hdl = hdl; in ds_svc_clone()
3207 newsvc->flags &= ~DSSF_LOOPBACK; in ds_svc_clone()
3208 newsvc->port = NULL; in ds_svc_clone()
3209 newsvc->svc_hdl = DS_BADHDL2; in ds_svc_clone()
3210 newsvc->cap.svc_id = ds_strdup(svc->cap.svc_id); in ds_svc_clone()
3211 newsvc->cap.vers = DS_MALLOC(svc->cap.nvers * sizeof (ds_ver_t)); in ds_svc_clone()
3212 (void) memcpy(newsvc->cap.vers, svc->cap.vers, in ds_svc_clone()
3220 if (newsvc->flags & DSSF_ISUSER) { in ds_svc_clone()
3221 newsvc->ops.cb_arg = (ds_cb_arg_t)(newsvc); in ds_svc_clone()
3223 return (newsvc); in ds_svc_clone()