This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f7bfa7d101f Documentation/nsh: document CONFIG_NSH_TOP_TASKBUF_SIZE.
f7bfa7d101f is described below
commit f7bfa7d101f2ad48e8f394dd0c8e5c03be821751
Author: yukangzhi <[email protected]>
AuthorDate: Tue Nov 17 13:35:38 2026 +0800
Documentation/nsh: document CONFIG_NSH_TOP_TASKBUF_SIZE.
Document the new CONFIG_NSH_TOP_TASKBUF_SIZE option that sets the size
of the per-task buffer used by the NSH top command.
Assisted-by: Kiro
Signed-off-by: yukangzhi <[email protected]>
---
Documentation/applications/nsh/config.rst | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/applications/nsh/config.rst
b/Documentation/applications/nsh/config.rst
index 01e4bcae1b2..0c4ea7a5c48 100644
--- a/Documentation/applications/nsh/config.rst
+++ b/Documentation/applications/nsh/config.rst
@@ -206,6 +206,11 @@ Configuration Description
``CONFIG_NSH_FILEIOSIZE`` Size of a static I/O buffer used for file
access (ignored if there
is no file system). Default is 1024.
+ ``CONFIG_NSH_TOP_TASKBUF_SIZE`` Size of the per-task buffer used by the
``top`` command. ``top``
+ keeps one buffer per task while it
collects and sorts the
+ tasks, so peak heap usage is about
(number of tasks) * this
+ value. Longer per-task output is
truncated. Default is 512.
+
``CONFIG_NSH_STRERROR`` ``strerror(errno)`` makes more readable
output but
``strerror()`` is very large and will not
be used unless this
setting is *y*. This setting depends upon
the ``strerror()``