Lines Matching refs:slot
145 int slot;
150 slot = id % cache->size;
151 if (cache->cache[slot].name != NULL) {
152 if (cache->cache[slot].id == id) {
154 if (cache->cache[slot].name == NO_NAME)
156 return (cache->cache[slot].name);
158 if (cache->cache[slot].name != NO_NAME)
159 free((void *)(uintptr_t)cache->cache[slot].name);
160 cache->cache[slot].name = NULL;
166 cache->cache[slot].name = NO_NAME;
167 cache->cache[slot].id = id;
171 cache->cache[slot].name = name;
172 cache->cache[slot].id = id;
173 return (cache->cache[slot].name);