Lines Matching defs:uid2sid_winname

168 	pid2sid_winname_cache_t	uid2sid_winname;
301 avl_create(&idmap_cache.uid2sid_winname.tree,
304 (void) pthread_mutex_init(&idmap_cache.uid2sid_winname.mutex, NULL);
305 idmap_cache.uid2sid_winname.head.flink =
306 &idmap_cache.uid2sid_winname.head;
307 idmap_cache.uid2sid_winname.head.blink =
308 &idmap_cache.uid2sid_winname.head;
309 idmap_cache.uid2sid_winname.prev = NULL;
310 idmap_cache.uid2sid_winname.purge_time = 0;
311 idmap_cache.uid2sid_winname.sid_num = 0;
312 idmap_cache.uid2sid_winname.winname_num = 0;
346 pid2sid_winname_t *uid2sid_winname;
372 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex);
374 while ((uid2sid_winname = avl_destroy_nodes(
375 &idmap_cache.uid2sid_winname.tree, &cookie)) != NULL) {
376 free((char *)uid2sid_winname->sid_prefix);
377 free((char *)uid2sid_winname->winname);
378 if (uid2sid_winname->windomain != NULL)
379 free((char *)uid2sid_winname->windomain);
380 free(uid2sid_winname);
382 avl_destroy(&idmap_cache.uid2sid_winname.tree);
383 avl_create(&idmap_cache.uid2sid_winname.tree,
386 idmap_cache.uid2sid_winname.head.flink =
387 &idmap_cache.uid2sid_winname.head;
388 idmap_cache.uid2sid_winname.head.blink =
389 &idmap_cache.uid2sid_winname.head;
390 idmap_cache.uid2sid_winname.prev = NULL;
391 idmap_cache.uid2sid_winname.purge_time = 0;
392 idmap_cache.uid2sid_winname.sid_num = 0;
393 idmap_cache.uid2sid_winname.winname_num = 0;
394 (void) pthread_mutex_unlock(&idmap_cache.uid2sid_winname.mutex);
459 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex);
460 *sidbyuid = idmap_cache.uid2sid_winname.sid_num;
461 *winnamebyuid = idmap_cache.uid2sid_winname.winname_num;
462 (void) pthread_mutex_unlock(&idmap_cache.uid2sid_winname.mutex);
588 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex);
590 result = avl_find(&idmap_cache.uid2sid_winname.tree, &entry, &where);
592 list_move(&idmap_cache.uid2sid_winname.head, result);
603 (void) pthread_mutex_unlock(&idmap_cache.uid2sid_winname.mutex);
652 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex);
654 result = avl_find(&idmap_cache.uid2sid_winname.tree, &entry, &where);
656 list_move(&idmap_cache.uid2sid_winname.head, result);
680 (void) pthread_mutex_unlock(&idmap_cache.uid2sid_winname.mutex);
856 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex);
857 result = avl_find(&idmap_cache.uid2sid_winname.tree, &find,
864 idmap_cache.uid2sid_winname.sid_num++;
882 idmap_cache.uid2sid_winname.sid_num ++;
884 list_insert(&idmap_cache.uid2sid_winname.head, new);
885 avl_insert(&idmap_cache.uid2sid_winname.tree, new,
888 if ((avl_numnodes(&idmap_cache.uid2sid_winname.tree) >
890 (idmap_cache.uid2sid_winname.purge_time +
893 &idmap_cache.uid2sid_winname,
898 (void) pthread_mutex_unlock(&idmap_cache.uid2sid_winname.mutex);
1098 &idmap_cache.uid2sid_winname.mutex);
1099 result = avl_find(&idmap_cache.uid2sid_winname.tree,
1107 idmap_cache.uid2sid_winname.sid_num++;
1124 idmap_cache.uid2sid_winname.sid_num++;
1126 list_insert(&idmap_cache.uid2sid_winname.head,
1128 avl_insert(&idmap_cache.uid2sid_winname.tree,
1131 if ((avl_numnodes(&idmap_cache.uid2sid_winname.tree) >
1133 (idmap_cache.uid2sid_winname.purge_time +
1136 &idmap_cache.uid2sid_winname,
1141 &idmap_cache.uid2sid_winname.mutex);
1266 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex);
1267 result = avl_find(&idmap_cache.uid2sid_winname.tree, &find,
1276 idmap_cache.uid2sid_winname.winname_num++;
1301 idmap_cache.uid2sid_winname.winname_num ++;
1303 list_insert(&idmap_cache.uid2sid_winname.head, new);
1304 avl_insert(&idmap_cache.uid2sid_winname.tree, new,
1307 if ((avl_numnodes(&idmap_cache.uid2sid_winname.tree) >
1309 (idmap_cache.uid2sid_winname.purge_time +
1312 &idmap_cache.uid2sid_winname,
1315 (void) pthread_mutex_unlock(&idmap_cache.uid2sid_winname.mutex);