sources/bind9/lib/dns/rbtdb.c
/*%
 * Update the timestamp of a given cache entry and move it to the head
 * of the corresponding LRU list.
 *
 * Caller must hold the node (write) lock.
 *
 * Note that the we do NOT touch the heap here, as the TTL has not changed.
 */
%
Update the timestamp of a given cache entry and move it to the head
of the corresponding LRU list.

Caller must hold the node (write) lock.

Note that the we do NOT touch the heap here, as the TTL has not changed.
% Update the timestamp of a given cache entry and move it to the head of the corresponding LRU list . Caller must hold the node ( write ) lock . Note that the we do NOT touch the heap here as the TTL has not changed .
static void
update_header(dns_rbtdb_t *rbtdb, rdatasetheader_t *header,
	      isc_stdtime_t now)
{
	INSIST(IS_CACHE(rbtdb));
	INSIST(ISC_LINK_LINKED(header, link));
	ISC_LIST_UNLINK(rbtdb->rdatasets[header->node->locknum], header, link);
	header->last_used = now;
	ISC_LIST_PREPEND(rbtdb->rdatasets[header->node->locknum], header, link);
}
static void update_header ( dns_rbtdb_t * rbtdb , rdatasetheader_t * header , isc_stdtime_t now ) { INSIST ( IS_CACHE ( rbtdb ) ) ; INSIST ( ISC_LINK_LINKED ( header , link ) ) ; ISC_LIST_UNLINK ( rbtdb -> rdatasets [ header -> node -> locknum ] , header , link ) ; header -> last_used = now ; ISC_LIST_PREPEND ( rbtdb -> rdatasets [ header -> node -> locknum ] , header , link ) ; }
%
 Update the timestamp of a given cache entry and move it to the head
 of the corresponding LRU list.
% Update the timestamp of a given cache entry and move it to the head of the corresponding LRU list .
/* To be checked: can we really assume this? XXXMLG */