@samitouri / QOSamiQemu / commits / ca552c4c8f

hmp*hx: Move info docs

Move the docs for the info subcommand from the separate hx into the top level file next to the 'info' command itself. That makes every command in the top level file have a RST section. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20260504174914.122607-2-dave@treblig.org> Signed-off-by: Markus Armbruster <armbru@redhat.com>

Dr. David Alan Gilbert committed May 4, 2026 at 18:49 UTC ca552c4c8f4924d34e07633e6794b960afef44df
2 files changed +18 -18
hmp-commands-info.hx
+1 -8
@@ -8,14 +8,7 @@ HXCOMM
8 HXCOMM In this file, generally SRST fragments should have two extra
9 HXCOMM spaces of indent, so that the documentation list item for "info foo"
10 HXCOMM appears inside the documentation list item for the top level
11 -HXCOMM "info" documentation entry. The exception is the first SRST
12 -HXCOMM fragment that defines that top level entry.
13 -
14 -SRST
15 -``info`` *subcommand*
16 - Show various information about the system state.
17 -
18 -ERST
11 +HXCOMM "info" documentation entry.
12
13 {
14 .name = "version",
hmp-commands.hx
+17 -10
@@ -1814,16 +1814,6 @@ SRST
1814 command.
1815 ERST
1816
1817 - {
1818 - .name = "info",
1819 - .args_type = "item:s?",
1820 - .params = "[subcommand]",
1821 - .help = "show various information about the system state",
1822 - .cmd = hmp_info_help,
1823 - .sub_table = hmp_info_cmds,
1824 - .flags = "p",
1825 - },
1826 -
1817 #if defined(CONFIG_FDT)
1818 {
1819 .name = "dumpdtb",
@@ -1867,3 +1857,20 @@ SRST
1857 List event channels in the guest
1858 ERST
1859 #endif
1860 +
1861 +HXCOMM *** MUST BE LAST ENTRY **
1862 + {
1863 + .name = "info",
1864 + .args_type = "item:s?",
1865 + .params = "[subcommand]",
1866 + .help = "show various information about the system state",
1867 + .cmd = hmp_info_help,
1868 + .sub_table = hmp_info_cmds,
1869 + .flags = "p",
1870 + },
1871 +
1872 +SRST
1873 +``info`` *subcommand*
1874 + Show various information about the system state.
1875 +ERST
1876 +HXCOMM *** MUST BE LAST ENTRY **