Lines Matching refs:ghbn_cache
106 } ghbn_cache[GHBN_NUM];
269 if ((iarg >= 0) && (iarg < GHBN_NUM) && (ghbn_cache[iarg].order > 0)) {
273 *p = ghbn_cache[iarg].name;
274 ghbn_cache[iarg].name[128] = '\0';
281 ghbn_cache[i].order = 0;
395 if (low > ghbn_cache[i].order) {
396 low = ghbn_cache[i].order;
399 if (ghbn_cache[i].order > 0) {
400 if (strncmp(name, ghbn_cache[i].name, 128) == 0)
434 if (ghbn_cache[lowi].ent != NULL)
435 ghbn_free(ghbn_cache[lowi].ent); /* XXX not thread-safe */
436 ghbn_cache[lowi].name[0] = '\0';
438 if ((ret = ghbn_cache[lowi].ent = ghbn_dup(ret)) == NULL) {
442 strncpy(ghbn_cache[lowi].name, name, 128);
443 ghbn_cache[lowi].order = BIO_ghbn_miss + BIO_ghbn_hits;
446 ret = ghbn_cache[i].ent;
447 ghbn_cache[i].order = BIO_ghbn_miss + BIO_ghbn_hits;