-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cookbooks/devel/pseudovariables: note that $shv(...) can be set via rpc
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1379,15 +1379,23 @@ 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 | ||
the value of shared variables. | ||
Example - shv(name) pseudo-variable usage: | ||
Example - $shv(name) pseudo-variable usage: | ||
``` | ||
Check failure on line 1384 in docs/cookbooks/devel/pseudovariables.md GitHub Actions / check-formatFenced code blocks should have a language specified
|
||
... | ||
modparam("pv", "shvset", "debug=i:1") | ||
... | ||
if ($shv(debug) == 1) { | ||
xlog("request: $rm from $fu to $ru\n"); | ||
} | ||
... | ||
``` | ||
These variables can be set also via RPC: | ||
``` | ||
Check failure on line 1396 in docs/cookbooks/devel/pseudovariables.md GitHub Actions / check-formatFenced code blocks should have a language specified
|
||
ksmctl rpc pv.shvSet debug int 2 | ||
``` | ||
🔥**IMPORTANT**: It is R/W variable (you can assign values to it directly in | ||
configuration file) | ||
|