]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Explain hook action calling order in more detail
authorMatthijs Mekking <matthijs@isc.org>
Tue, 5 Feb 2019 14:31:35 +0000 (15:31 +0100)
committerMichał Kępień <michal@isc.org>
Wed, 6 Feb 2019 09:09:38 +0000 (10:09 +0100)
lib/ns/include/ns/hooks.h

index 0f6ff88c4c2fa5686f859962d71550216e4786d4..d2d310183ce88abe9a8dc6152530b272832c97f9 100644 (file)
  * In order for a hook action to be called for a given hook, a pointer to that
  * action function (along with an optional pointer to action-specific data) has
  * to be inserted into the relevant hook table entry for that hook using an
- * ns_hook_add() call.  If multiple actions are set up at a single hook point,
- * they are processed in FIFO order.
+ * ns_hook_add() call.  If multiple actions are set up at a single hook point
+ * (e.g. by multiple plugin modules), they are processed in FIFO order, that is
+ * they are performed in the same order in which their relevant ns_hook_add()
+ * calls were issued.  Since the configuration is loaded from a single thread,
+ * this means that multiple actions at a single hook point are determined by
+ * the order in which the relevant plugin modules were declared in the
+ * configuration file(s).  The hook API currently does not support changing
+ * this order.
  *
  * As an example, consider the following hypothetical function in query.c:
  *