Selaa lähdekoodia

cookbooks/devel/pseudovariables: note that $shv(...) can be set via rpc

Daniel-Constantin Mierla 9 kuukautta sitten
vanhempi
commit
f9a41ae648
1 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 9 1
      docs/cookbooks/devel/pseudovariables.md

+ 9 - 1
docs/cookbooks/devel/pseudovariables.md

@@ -1379,8 +1379,9 @@ processes. Each “shv” has single value and it is initialised to integer
 shared variable. The module exports a set of RPC functions to get/set
 shared variable. The module exports a set of RPC functions to get/set
 the value of shared variables.
 the value of shared variables.
 
 
-Example - shv(name) pseudo-variable usage:
+Example - $shv(name) pseudo-variable usage:
 
 
+```
     ...
     ...
     modparam("pv", "shvset", "debug=i:1")
     modparam("pv", "shvset", "debug=i:1")
     ...
     ...
@@ -1388,6 +1389,13 @@ Example - shv(name) pseudo-variable usage:
         xlog("request: $rm from $fu to $ru\n");
         xlog("request: $rm from $fu to $ru\n");
     }
     }
     ...
     ...
+```
+
+These variables can be set also via RPC:
+
+```
+ksmctl rpc pv.shvSet debug int 2
+```
 
 
 🔥**IMPORTANT**: It is R/W variable (you can assign values to it directly in
 🔥**IMPORTANT**: It is R/W variable (you can assign values to it directly in
 configuration file)
 configuration file)