Lines Matching refs:dbentry
103 typedef struct dbentry {
104 ISC_LINK(struct dbentry) link;
465 dbentry_t *dbentry;
478 for (dbentry = ISC_LIST_HEAD(acache->dbbucket[bucket]);
479 dbentry != NULL;
480 dbentry = ISC_LIST_NEXT(dbentry, link)) {
481 if (dbentry->db == db)
485 *dbentryp = dbentry;
487 if (dbentry == NULL)
1236 dbentry_t *dbentry;
1246 dbentry = NULL;
1247 result = finddbent(acache, db, &dbentry);
1254 dbentry = isc_mem_get(acache->mctx, sizeof(*dbentry));
1255 if (dbentry == NULL) {
1260 ISC_LINK_INIT(dbentry, link);
1261 ISC_LIST_INIT(dbentry->originlist);
1262 ISC_LIST_INIT(dbentry->referlist);
1264 dbentry->db = NULL;
1265 dns_db_attach(db, &dbentry->db);
1270 ISC_LIST_APPEND(acache->dbbucket[bucket], dbentry, link);
1284 dbentry_t *dbentry;
1294 dbentry = NULL;
1295 result = finddbent(acache, db, &dbentry);
1310 while ((entry = ISC_LIST_HEAD(dbentry->originlist)) != NULL) {
1318 ISC_LIST_UNLINK(dbentry->originlist, entry, olink);
1333 while ((entry = ISC_LIST_HEAD(dbentry->referlist)) != NULL) {
1337 ISC_LIST_UNLINK(dbentry->referlist, entry, rlink);
1353 INSIST(ISC_LIST_EMPTY(dbentry->originlist) &&
1354 ISC_LIST_EMPTY(dbentry->referlist));
1358 ISC_LIST_UNLINK(acache->dbbucket[bucket], dbentry, link);
1359 dns_db_detach(&dbentry->db);
1361 isc_mem_put(acache->mctx, dbentry, sizeof(*dbentry));