[PATCH 3/3] lsmem/chmem: add memory zone awareness to bash-completion
From: Gerald Schaefer <hidden>
Date: 2017-09-27 17:45:17
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Gerald Schaefer <hidden>
Date: 2017-09-27 17:45:17
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Andre Wild <redacted> This patch extends the valid --output values with ZONES for the lsmem bash-completion, and adds the --zone option for the chmem bash-completion. Signed-off-by: Andre Wild <redacted> Signed-off-by: Gerald Schaefer <redacted> --- bash-completion/chmem | 1 + bash-completion/lsmem | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/bash-completion/chmem b/bash-completion/chmem
index 00b870dbd90d..3e3af87acaa5 100644
--- a/bash-completion/chmem
+++ b/bash-completion/chmem@@ -16,6 +16,7 @@ _chmem_module() --disable --blocks --verbose + --zone --help --version "
diff --git a/bash-completion/lsmem b/bash-completion/lsmem
index 8f7a46ec30af..9aa124569d53 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' + OUTPUT_ALL='RANGE SIZE STATE REMOVABLE BLOCK NODE ZONES' for WORD in $OUTPUT_ALL; do if ! [[ $prefix == *"$WORD"* ]]; then OUTPUT="$WORD ${OUTPUT:-""}"
--
2.13.5
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>