summaryrefslogtreecommitdiff
path: root/doc/developer
diff options
context:
space:
mode:
Diffstat (limited to 'doc/developer')
-rw-r--r--doc/developer/modules.rst9
-rw-r--r--doc/developer/workflow.rst2
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/developer/modules.rst b/doc/developer/modules.rst
index b832413a6c..bde7682e4e 100644
--- a/doc/developer/modules.rst
+++ b/doc/developer/modules.rst
@@ -100,6 +100,15 @@ a function that removes all of a module's installed hooks.
There's also the ``frr_module`` symbol in modules, pretty much a
standard entry point for loadable modules.
+Command line parameters
+-----------------------
+
+Command line parameters can be passed directly to a module by appending a
+colon to the module name when loading it, e.g. ``-M mymodule:myparameter``.
+The text after the colon will be accessible in the module's code through
+``THIS_MODULE->load_args``. For example, see how the format parameter is
+configured in the ``zfpm_init()`` function inside ``zebra_fpm.c``.
+
Hooks
-----
diff --git a/doc/developer/workflow.rst b/doc/developer/workflow.rst
index cd03d2733d..358cb9ac7b 100644
--- a/doc/developer/workflow.rst
+++ b/doc/developer/workflow.rst
@@ -776,7 +776,7 @@ annotations must be ignored non-development branches. For example:
.. code-block:: c
- #if defined(VERSION_TYPE_DEV) && CONFDATE > 20180403
+ #if CONFDATE > 20180403
CPP_NOTICE("Use of <XYZ> is deprecated, please use <ABC>")
#endif