aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2025-11-12 12:08:39 +0100
committerKarel Zak <kzak@redhat.com>2025-11-12 12:08:39 +0100
commit1d1d9cd8ae2e86ed3206b12be3c61905f7a140de (patch)
treed364cd4c0e682433e7e31d4e6f0b1437979a11d0 /bash-completion
parenta4d8a0dc9bdb2cf19602b1cc20acf91c0333829c (diff)
parentc4d255b8ba067cdcd504f85dfac2e1c454c5e6b1 (diff)
downloadutil-linux-1d1d9cd8ae2e86ed3206b12be3c61905f7a140de.tar.gz
Merge branch 'PR/chmem-dynamic-configuration' of https://github.com/karelzak/util-linux-work
* 'PR/chmem-dynamic-configuration' of https://github.com/karelzak/util-linux-work: tests: update lsmem outputs lsmem: use xstrncpy() lsmem,chmem: add configure/deconfigure bash completion options lsmem: add doc for dynamic (de)configuration and memmap-on-memory support chmem: add chmem documentation for dynamic (de)configuration of memory chmem: add support for dynamic (de)configuration of hotplug memory lsmem: add support to display dynamic (de)configuration of memory lsmem: display global memmap on memory parameter
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/chmem3
-rw-r--r--bash-completion/lsmem2
2 files changed, 4 insertions, 1 deletions
diff --git a/bash-completion/chmem b/bash-completion/chmem
index 3e3af87aca..f10646677e 100644
--- a/bash-completion/chmem
+++ b/bash-completion/chmem
@@ -14,6 +14,9 @@ _chmem_module()
OPTS="
--enable
--disable
+ --configure
+ --deconfigure
+ --memmap-on-memory
--blocks
--verbose
--zone
diff --git a/bash-completion/lsmem b/bash-completion/lsmem
index 216b7aced3..27793e743e 100644
--- a/bash-completion/lsmem
+++ b/bash-completion/lsmem
@@ -9,7 +9,7 @@ _lsmem_module()
local prefix realcur OUTPUT_ALL OUTPUT
realcur="${cur##*,}"
prefix="${cur%$realcur}"
- OUTPUT_ALL='RANGE SIZE STATE REMOVABLE BLOCK NODE ZONES'
+ OUTPUT_ALL='RANGE SIZE STATE REMOVABLE BLOCK NODE ZONES CONFIGURED MEMMAP-ON-MEMORY'
for WORD in $OUTPUT_ALL; do
if ! [[ $prefix == *"$WORD"* ]]; then
OUTPUT="$WORD ${OUTPUT:-""}"