diff options
| author | Tom Rini <[email protected]> | 2026-02-07 11:51:43 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-02-07 11:51:43 -0600 |
| commit | b887a1c1a1110582d178faad4397a0197938454e (patch) | |
| tree | 6f902115518ca668333f34095442b95646c71af1 /doc | |
| parent | 2ffab9da9142c03dc0f2ce056ccd2b0f43c02742 (diff) | |
| parent | b4842032d542cfde271aab61b80ab870b27b07b2 (diff) | |
Merge patch series "Add command for getting ramsize in scripts"
Frank Wunderlich <[email protected]> says:
Add command for getting ramsize in scripts
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/usage/cmd/memsize.rst | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/usage/cmd/memsize.rst b/doc/usage/cmd/memsize.rst new file mode 100644 index 00000000000..6e99d7c1d33 --- /dev/null +++ b/doc/usage/cmd/memsize.rst @@ -0,0 +1,43 @@ +.. SPDX-License-Identifier: GPL-2.0+: + +.. index:: + single: memsize (command) + +memsize command +=============== + +Synopsis +-------- + +:: + + memsize [name] + +Description +----------- + +The memsize command shows the amount of RAM in MiB in decimal notation. +Optionally same value can be assigned to an environment variable. + +Examples +-------- + +This first example shows printing of ram size: + +:: + + => memsize + 8192 MiB + +This second example shows assign ram size to environment variable: + +:: + + => memsize memsz + => printenv memsz + memsz=8192 + +Return value +------------ + +The return value is always 0 except error happens on setting environment variable. |
