• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/unbound/services/cache/

Lines Matching refs:rrset

2  * services/cache/rrset.h - Resource record set cache.
39 * This file contains the rrset cache.
53 * The rrset cache
62 * Create rrset cache
64 * @param alloc: initial default rrset key allocation.
71 * Delete rrset cache
72 * @param r: rrset cache to delete.
80 * @param r: rrset cache to adjust (like realloc).
82 * @param alloc: initial default rrset key allocation.
83 * @return 0 on error, or new rrset cache pointer on success.
89 * Touch rrset, with given pointer and id.
90 * Caller may not hold a lock on ANY rrset, this could give deadlock.
97 * @param r: rrset cache.
98 * @param key: rrset key. Marked recently used (if it was not deleted
108 * Update an rrset in the rrset cache. Stores the information for later use.
109 * Will lookup if the rrset is in the cache and perform an update if necessary.
113 * A superior rrset is:
114 * o rrset with better trust value.
115 * o same trust value, different rdata, newly passed rrset is inserted.
118 * @param r: the rrset cache.
119 * @param ref: reference (ptr and id) to the rrset. Pass reference setup for
120 * the new rrset. The reference may be changed if the cached rrset is
122 * Before calling the rrset is presumed newly allocated and changeable.
123 * Afer calling you do not hold a lock, and the rrset is inserted in
125 * @param alloc: how to allocate (and deallocate) the special rrset key.
137 * Update or add an rrset in the rrset cache using a wildcard dname.
139 * encloser. Will lookup if the rrset is in the cache and perform an update if
142 * @param rrset_cache: the rrset cache.
143 * @param rrset: which rrset to cache as wildcard. This rrset is left
147 * @param alloc: how to allocate (and deallocate) the special rrset key.
151 struct ub_packed_rrset_key* rrset, uint8_t* ce, size_t ce_len,
155 * Lookup rrset. You obtain read/write lock. You must unlock before lookup
157 * @param r: the rrset cache.
158 * @param qname: name of rrset to lookup.
159 * @param qnamelen: length of name of rrset to lookup.
160 * @param qtype: type of rrset to lookup (host order).
161 * @param qclass: class of rrset to lookup (host order).
162 * @param flags: rrset flags, or 0.
165 * @return packed rrset key pointer. Remember to unlock the key.entry.lock.
173 * Obtain readlock on a (sorted) list of rrset references.
175 * @param ref: array of rrset references (key pointer and ID value).
187 * Unlock array (sorted) of rrset references.
188 * @param ref: array of rrset references (key pointer and ID value).
195 * Unlock array (sorted) of rrset references and at the same time
198 * @param r: the rrset cache. In this cache LRU is updated.
202 * @param ref: array of rrset references (key pointer and ID value).
210 * Update security status of an rrset. Looks up the rrset.
212 * If so, it will update the security, trust and rrset-ttl values.
214 * @param r: the rrset cache.
215 * @param rrset: which rrset to attempt to update. This rrset is left
216 * untouched. The rrset in the cache is updated in-place.
220 struct ub_packed_rrset_key* rrset, time_t now);
223 * Looks up security status of an rrset. Looks up the rrset.
225 * If so, it will update the security, trust and rrset-ttl values.
226 * @param r: the rrset cache.
227 * @param rrset: This rrset may change security status due to the cache.
232 struct ub_packed_rrset_key* rrset, time_t now);
235 * Remove an rrset from the cache, by name and type and flags
236 * @param r: rrset cache
237 * @param nm: name of rrset
239 * @param type: type of rrset
240 * @param dclass: class of rrset, host order
241 * @param flags: flags of rrset, host order
246 /** mark rrset to be deleted, set id=0 */