mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 18:04:03 +00:00
doc: add cmd line param section to modules.rst
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
This commit is contained in:
parent
06a5959f10
commit
9e2f406adb
@ -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
|
There's also the ``frr_module`` symbol in modules, pretty much a
|
||||||
standard entry point for loadable modules.
|
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
|
Hooks
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user