Lines Matching refs:dictionary
30 * dict.c - simple dictionary facility
32 * We maintain a dictionary, sorted by name to facilitate rapid id lookup by
35 * Right now, the dictionary is implemented as a sorted linked list which maps
39 * For now, FMRIs are never deleted from the dictionary. A service deletion
41 * id. To implement dictionary entry delete, the locking strategy for graph
55 dictionary_t *dictionary;
79 (void) pthread_mutex_lock(&dictionary->dict_lock);
80 if ((entry = uu_list_find(dictionary->dict_list, &tmp, NULL,
86 (void) pthread_mutex_unlock(&dictionary->dict_lock);
108 (void) pthread_mutex_lock(&dictionary->dict_lock);
110 if ((entry = uu_list_find(dictionary->dict_list, &tmp, NULL,
112 (void) pthread_mutex_unlock(&dictionary->dict_lock);
118 entry->de_id = dictionary->dict_new_id++;
124 uu_list_insert(dictionary->dict_list, entry, idx);
125 (void) pthread_mutex_unlock(&dictionary->dict_lock);
133 dictionary = startd_zalloc(sizeof (dictionary_t));
135 (void) pthread_mutex_init(&dictionary->dict_lock, NULL);
141 dictionary->dict_new_id = 0;
142 dictionary->dict_list = startd_list_create(dict_pool, dictionary,
144 assert(dictionary->dict_list != NULL);