Lines Matching refs:ncu
98 nwamd_ncu_t *ncu = obj->nwamd_object_data; in nwamd_dlpi_add_link() local
104 ncu, obj->nwamd_object_name, ncu != NULL ? ncu->ncu_type : -1); in nwamd_dlpi_add_link()
106 assert(ncu != NULL && ncu->ncu_type == NWAM_NCU_TYPE_LINK); in nwamd_dlpi_add_link()
108 link = &ncu->ncu_link; in nwamd_dlpi_add_link()
117 rc = dlpi_open(ncu->ncu_name, &link->nwamd_link_dhp, 0); in nwamd_dlpi_add_link()
120 ncu->ncu_name, dlpi_strerror(rc)); in nwamd_dlpi_add_link()
124 nwamd_set_unset_link_properties(ncu, B_TRUE); in nwamd_dlpi_add_link()
128 ncu->ncu_name, &id); in nwamd_dlpi_add_link()
154 nwamd_ncu_t *ncu = obj->nwamd_object_data; in nwamd_dlpi_delete_link() local
157 ncu, obj->nwamd_object_name, ncu != NULL ? ncu->ncu_type : -1); in nwamd_dlpi_delete_link()
159 if (ncu->ncu_link.nwamd_link_dlpi_thread != 0) { in nwamd_dlpi_delete_link()
161 ncu->ncu_link.nwamd_link_dlpi_thread); in nwamd_dlpi_delete_link()
162 (void) pthread_join(ncu->ncu_link.nwamd_link_dlpi_thread, NULL); in nwamd_dlpi_delete_link()
163 ncu->ncu_link.nwamd_link_dlpi_thread = 0; in nwamd_dlpi_delete_link()
165 nwamd_set_unset_link_properties(ncu, B_FALSE); in nwamd_dlpi_delete_link()
168 dlpi_close(ncu->ncu_link.nwamd_link_dhp); in nwamd_dlpi_delete_link()
169 ncu->ncu_link.nwamd_link_dhp = NULL; in nwamd_dlpi_delete_link()