Lines Matching defs:iser_svc
320 iser_svc_t *iser_svc;
324 iser_svc = kmem_zalloc(sizeof (iser_svc_t), KM_SLEEP);
325 is->is_iser_svc = (void *)iser_svc;
327 idm_refcnt_init(&iser_svc->is_refcnt, iser_svc);
329 list_create(&iser_svc->is_sbindlist, sizeof (iser_sbind_t),
331 iser_svc->is_svcid = ibt_get_ip_sid(IPPROTO_TCP, sr->sr_port);
335 * and set the iser_svc structure in the idm_svc handle.
341 (void) ibt_release_ip_sid(iser_svc->is_svcid);
342 list_destroy(&iser_svc->is_sbindlist);
343 idm_refcnt_destroy(&iser_svc->is_refcnt);
344 kmem_free(iser_svc, sizeof (iser_svc_t));
371 iser_svc_t *iser_svc;
373 iser_svc = (iser_svc_t *)is->is_iser_svc;
377 * the iser_svc structure from the idm_svc handle.
382 idm_refcnt_wait_ref(&iser_svc->is_refcnt);
384 list_destroy(&iser_svc->is_sbindlist);
386 idm_refcnt_destroy(&iser_svc->is_refcnt);
388 kmem_free(iser_svc, sizeof (iser_svc_t));