From e146a9212535582acc1165a3c281e32d10583323 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 5 Jan 2024 16:14:38 +0100 Subject: [PATCH] - fast-reload, helpful comments for hints lookup function return value. --- iterator/iter_hints.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iterator/iter_hints.h b/iterator/iter_hints.h index 23af751ef..f201d8c11 100644 --- a/iterator/iter_hints.h +++ b/iterator/iter_hints.h @@ -101,6 +101,8 @@ int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg); /** * Find root hints for the given class. + * The return value is contents of the hints structure, caller should + * lock and unlock a readlock on the hints structure. * @param hints: hint storage. * @param qclass: class for which root hints are requested. host order. * @return: NULL if no hints, or a ptr to stored hints. @@ -123,6 +125,8 @@ int hints_next_root(struct iter_hints* hints, uint16_t* qclass); * Given a qname/qclass combination, and the delegation point from the cache * for this qname/qclass, determine if this combination indicates that a * stub hint exists and must be primed. + * The return value is contents of the hints structure, caller should + * lock and unlock a readlock on the hints structure. * * @param hints: hint storage. * @param qname: The qname that generated the delegation point. -- 2.47.2