[PATCH 23/34] doc: add documentation for 'meminfo' command

Robert Schwebel r.schwebel at pengutronix.de
Wed Dec 15 06:51:37 EST 2010


Signed-off-by: Robert Schwebel <r.schwebel at pengutronix.de>
---
 Documentation/commands.dox |    2 +-
 commands/meminfo.c         |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Documentation/commands.dox b/Documentation/commands.dox
index c26abc2..907818e 100644
--- a/Documentation/commands.dox
+++ b/Documentation/commands.dox
@@ -68,7 +68,7 @@ available in @a Barebox:
 @li @subpage lsmod_command
 @li @subpage md
 @li @subpage memcmp
- at li @subpage meminfo
+ at li @subpage meminfo_command
 @li @subpage memset
 @li @subpage menu
 @li @subpage mkdir_command
diff --git a/commands/meminfo.c b/commands/meminfo.c
index abbaf9c..176a636 100644
--- a/commands/meminfo.c
+++ b/commands/meminfo.c
@@ -30,6 +30,11 @@ static int do_meminfo(struct command *cmdtp, int argc, char *argv[])
 	return 0;
 }
 
+BAREBOX_CMD_HELP_START(meminfo)
+BAREBOX_CMD_HELP_USAGE("meminfo\n")
+BAREBOX_CMD_HELP_SHORT("Print info about memory usage.\n")
+BAREBOX_CMD_HELP_END
+
 BAREBOX_CMD_START(meminfo)
 	.cmd		= do_meminfo,
 	.usage		= "print info about memory usage",
-- 
1.7.2.3




More information about the barebox mailing list