Skip to content

Commit

Permalink
cookbooks/devel/pseudovariables: note that $shv(...) can be set via rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 17, 2024
1 parent fb7089c commit f9a41ae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/cookbooks/devel/pseudovariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / check-format

Fenced code blocks should have a language specified

docs/cookbooks/devel/pseudovariables.md:1384 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/md040.md
...
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

View workflow job for this annotation

GitHub Actions / check-format

Fenced code blocks should have a language specified

docs/cookbooks/devel/pseudovariables.md:1396 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/md040.md
ksmctl rpc pv.shvSet debug int 2
```
🔥**IMPORTANT**: It is R/W variable (you can assign values to it directly in
configuration file)
Expand Down

0 comments on commit f9a41ae

Please sign in to comment.