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 07a6c2f1050 Documentation/nxinit: describe pmconfig
07a6c2f1050 is described below
commit 07a6c2f10507370efdf4ed7625b1819e084f23b7
Author: wangjianyu3 <[email protected]>
AuthorDate: Sun Nov 22 22:08:47 2026 +0800
Documentation/nxinit: describe pmconfig
NXInit now has the pmconfig command. Give its syntax and say that the
query form of the NSH command is not implemented.
Assisted-by: OpenCode:mimo-v2.6-pro
Co-authored-by: multica-agent <[email protected]>
Signed-off-by: wangjianyu3 <[email protected]>
---
Documentation/applications/system/nxinit/index.rst | 24 ++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/Documentation/applications/system/nxinit/index.rst
b/Documentation/applications/system/nxinit/index.rst
index e0121a12ac8..a92ad36e377 100644
--- a/Documentation/applications/system/nxinit/index.rst
+++ b/Documentation/applications/system/nxinit/index.rst
@@ -236,10 +236,10 @@ These are the built-in commands of NXInit:
- Programs: ``exec -- <program> [<argument>]*`` (run a program and wait until
it exits).
- Others: ``trigger`` (trigger an event), and ``netinit``, ``boot``,
- ``start_cpu``, ``board_finalinit`` and ``rptun`` when their configuration
- options are on (``CONFIG_NETUTILS_NETINIT``, ``CONFIG_BOARDCTL_BOOT_IMAGE``,
- ``CONFIG_BOARDCTL_START_CPU``, ``CONFIG_BOARDCTL_FINALINIT``,
- ``CONFIG_RPTUN``).
+ ``start_cpu``, ``board_finalinit``, ``rptun`` and ``pmconfig`` when
+ their configuration options are on (``CONFIG_NETUTILS_NETINIT``,
+ ``CONFIG_BOARDCTL_BOOT_IMAGE``, ``CONFIG_BOARDCTL_START_CPU``,
+ ``CONFIG_BOARDCTL_FINALINIT``, ``CONFIG_RPTUN``, ``CONFIG_PM``).
Mounting File Systems
---------------------
@@ -268,6 +268,22 @@ mount point. For example:
A ``mount`` line in neither form fails. With ``CONFIG_DISABLE_MOUNTPOINT``,
NXInit has no ``mount`` and ``umount`` commands.
+Setting Power States
+--------------------
+
+.. code-block::
+
+ pmconfig stay|relax <state> [<domain>]
+
+``pmconfig`` has the same syntax as the NSH command: ``stay`` requests to
+keep the power state of the domain at or above ``<state>``, and ``relax``
+removes the request. ``<state>`` is ``normal``, ``idle``, ``standby`` or
+``sleep``, and ``<domain>`` is a PM activity domain number (0 to
+``CONFIG_PM_NDOMAINS`` - 1) and defaults to 0. The NSH command without
+arguments dumps the PM statistics; NXInit does not have that form, which
+init does not need. With ``CONFIG_PM`` disabled, NXInit has no
+``pmconfig`` command.
+
Compound Commands
------------------