Lines Matching defs:smb_dclocator

55 typedef struct smb_dclocator {
66 static smb_dclocator_t smb_dclocator;
96 smb_ddiscover_service, &smb_dclocator);
132 (void) mutex_lock(&smb_dclocator.sdl_mtx);
134 if (strcmp(smb_dclocator.sdl_domain, domain)) {
135 (void) strlcpy(smb_dclocator.sdl_domain, domain,
136 sizeof (smb_dclocator.sdl_domain));
137 smb_dclocator.sdl_cfg_chg = B_TRUE;
142 if (!smb_dclocator.sdl_locate) {
143 smb_dclocator.sdl_locate = B_TRUE;
144 (void) cond_broadcast(&smb_dclocator.sdl_cv);
147 while (smb_dclocator.sdl_locate) {
150 rc = cond_reltimedwait(&smb_dclocator.sdl_cv,
151 &smb_dclocator.sdl_mtx, &to);
159 if (smb_dclocator.sdl_status != 0) {
161 smb_dclocator.sdl_status);
171 (void) mutex_unlock(&smb_dclocator.sdl_mtx);
192 (void) mutex_lock(&smb_dclocator.sdl_mtx);
194 if (smb_dclocator.sdl_cfg_chg == B_FALSE) {
195 smb_dclocator.sdl_cfg_chg = B_TRUE;
198 if (!smb_dclocator.sdl_locate) {
199 smb_dclocator.sdl_locate = B_TRUE;
200 (void) cond_broadcast(&smb_dclocator.sdl_cv);
203 (void) mutex_unlock(&smb_dclocator.sdl_mtx);
220 (void) mutex_lock(&smb_dclocator.sdl_mtx);
223 smb_dclocator.sdl_dci.dc_name, bad_dc);
225 if (strcmp(smb_dclocator.sdl_dci.dc_name, bad_dc)) {
232 if (smb_dclocator.sdl_bad_dc) {
243 smb_dclocator.sdl_bad_dc = B_TRUE;
246 if (!smb_dclocator.sdl_locate) {
247 smb_dclocator.sdl_locate = B_TRUE;
248 (void) cond_broadcast(&smb_dclocator.sdl_cv);
252 (void) mutex_unlock(&smb_dclocator.sdl_mtx);
264 (void) mutex_lock(&smb_dclocator.sdl_mtx);
266 if (smb_dclocator.sdl_locate) {
269 rc = cond_reltimedwait(&smb_dclocator.sdl_cv,
270 &smb_dclocator.sdl_mtx, &to);
273 (void) mutex_unlock(&smb_dclocator.sdl_mtx);