source: rtems/doc/shell/memory.t @ dc1c4308

4.104.114.95
Last change on this file since dc1c4308 was dc1c4308, checked in by Joel Sherrill <joel.sherrill@…>, on 02/21/08 at 23:56:30

2008-02-21 Joel Sherrill <joel.sherrill@…>

  • shell/file.t, shell/general.t, shell/memory.t, shell/network.t, shell/rtems.t: More descriptions and examples added.
  • Property mode set to 100644
File size: 8.1 KB
Line 
1@c
2@c  COPYRIGHT (c) 1988-2008.
3@c  On-Line Applications Research Corporation (OAR).
4@c  All rights reserved.
5@c
6@c  $Id$
7@c
8
9@chapter Memory Commands
10
11@section Introduction
12
13The RTEMS shell has the following memory commands:
14
15@itemize @bullet
16
17@item @code{mdump} - Display contents of memory
18@item @code{wdump} - Display contents of memory (word)
19@item @code{medit} - Modify contents of memory
20@item @code{mfill} - File memory with pattern
21@item @code{mmove} - Move contents of memory
22@item @code{malloc} - Obtain information on C Program Heap
23
24@end itemize
25
26@section Commands
27
28@c
29@c
30@c
31@page
32@subsection mdump - display contents of memory
33
34@pgindex mdump
35
36@subheading SYNOPSYS:
37
38@example
39mdump [addr [size]]
40@end example
41
42@subheading DESCRIPTION:
43
44This command XXX
45
46@subheading EXIT STATUS:
47
48This command returns 0 on success and non-zero if an error is encountered.
49
50@subheading NOTES:
51
52NONE
53
54@subheading EXAMPLES:
55
56The following is an example of how to use @code{mdump}:
57
58@example
59EXAMPLE_TBD
60@end example
61
62@subheading CONFIGURATION:
63
64@findex CONFIGURE_SHELL_NO_COMMAND_MDUMP
65@findex CONFIGURE_SHELL_COMMAND_MDUMP
66
67This command is included in the default shell command set. 
68When building a custom command set, define
69@code{CONFIGURE_SHELL_COMMAND_MDUMP} to have this
70command included.
71
72This command can be excluded from the shell command set by
73defining @code{CONFIGURE_SHELL_NO_COMMAND_MDUMP} when all
74shell commands have been configured.
75
76@subheading PROGRAMMING INFORMATION:
77
78@findex rtems_shell_rtems_main_mdump
79
80The @code{mdump} is implemented by a C language function
81which has the following prototype:
82
83@example
84int rtems_shell_rtems_main_mdump(
85  int    argc,
86  char **argv
87);
88@end example
89
90The configuration structure for the @code{mdump} has the
91following prototype:
92
93@example
94extern rtems_shell_cmd_t rtems_shell_MDUMP_Command;
95@end example
96
97@c
98@c
99@c
100@page
101@subsection wdump - display contents of memory (word)
102
103@pgindex wdump
104
105@subheading SYNOPSYS:
106
107@example
108wdump [addr [size]]
109@end example
110
111@subheading DESCRIPTION:
112
113This command XXX
114
115@subheading EXIT STATUS:
116
117This command returns 0 on success and non-zero if an error is encountered.
118
119@subheading NOTES:
120
121NONE
122
123@subheading EXAMPLES:
124
125The following is an example of how to use @code{wdump}:
126
127@example
128EXAMPLE_TBD
129@end example
130
131@subheading CONFIGURATION:
132
133@findex CONFIGURE_SHELL_NO_COMMAND_WDUMP
134@findex CONFIGURE_SHELL_COMMAND_WDUMP
135
136This command is included in the default shell command set. 
137When building a custom command set, define
138@code{CONFIGURE_SHELL_COMMAND_WDUMP} to have this
139command included.
140
141This command can be excluded from the shell command set by
142defining @code{CONFIGURE_SHELL_NO_COMMAND_WDUMP} when all
143shell commands have been configured.
144
145@subheading PROGRAMMING INFORMATION:
146
147@findex rtems_shell_rtems_main_wdump
148
149The @code{wdump} is implemented by a C language function
150which has the following prototype:
151
152@example
153int rtems_shell_rtems_main_wdump(
154  int    argc,
155  char **argv
156);
157@end example
158
159The configuration structure for the @code{wdump} has the
160following prototype:
161
162@example
163extern rtems_shell_cmd_t rtems_shell_WDUMP_Command;
164@end example
165
166@c
167@c
168@c
169@page
170@subsection medit - modify contents of memory
171
172@pgindex medit
173
174@subheading SYNOPSYS:
175
176@example
177medit addr value [value ...]
178@end example
179
180@subheading DESCRIPTION:
181
182This command XXX
183
184@subheading EXIT STATUS:
185
186This command returns 0 on success and non-zero if an error is encountered.
187
188@subheading NOTES:
189
190NONE
191
192@subheading EXAMPLES:
193
194The following is an example of how to use @code{medit}:
195
196@example
197EXAMPLE_TBD
198@end example
199
200@subheading CONFIGURATION:
201
202@findex CONFIGURE_SHELL_NO_COMMAND_MEDIT
203@findex CONFIGURE_SHELL_COMMAND_MEDIT
204
205This command is included in the default shell command set. 
206When building a custom command set, define
207@code{CONFIGURE_SHELL_COMMAND_MEDIT} to have this
208command included.
209
210This command can be excluded from the shell command set by
211defining @code{CONFIGURE_SHELL_NO_COMMAND_MEDIT} when all
212shell commands have been configured.
213
214@subheading PROGRAMMING INFORMATION:
215
216@findex rtems_shell_rtems_main_medit
217
218The @code{medit} is implemented by a C language function
219which has the following prototype:
220
221@example
222int rtems_shell_rtems_main_medit(
223  int    argc,
224  char **argv
225);
226@end example
227
228The configuration structure for the @code{medit} has the
229following prototype:
230
231@example
232extern rtems_shell_cmd_t rtems_shell_MEDIT_Command;
233@end example
234
235@c
236@c
237@c
238@page
239@subsection mfill - file memory with pattern
240
241@pgindex mfill
242
243@subheading SYNOPSYS:
244
245@example
246mfill addr size value
247@end example
248
249@subheading DESCRIPTION:
250
251This command XXX
252
253@subheading EXIT STATUS:
254
255This command returns 0 on success and non-zero if an error is encountered.
256
257@subheading NOTES:
258
259NONE
260
261@subheading EXAMPLES:
262
263The following is an example of how to use @code{mfill}:
264
265@example
266EXAMPLE_TBD
267@end example
268
269@subheading CONFIGURATION:
270
271@findex CONFIGURE_SHELL_NO_COMMAND_MFILL
272@findex CONFIGURE_SHELL_COMMAND_MFILL
273
274This command is included in the default shell command set. 
275When building a custom command set, define
276@code{CONFIGURE_SHELL_COMMAND_MFILL} to have this
277command included.
278
279This command can be excluded from the shell command set by
280defining @code{CONFIGURE_SHELL_NO_COMMAND_MFILL} when all
281shell commands have been configured.
282
283@subheading PROGRAMMING INFORMATION:
284
285@findex rtems_shell_rtems_main_mfill
286
287The @code{mfill} is implemented by a C language function
288which has the following prototype:
289
290@example
291int rtems_shell_rtems_main_mfill(
292  int    argc,
293  char **argv
294);
295@end example
296
297The configuration structure for the @code{mfill} has the
298following prototype:
299
300@example
301extern rtems_shell_cmd_t rtems_shell_MFILL_Command;
302@end example
303
304@c
305@c
306@c
307@page
308@subsection mmove - move contents of memory
309
310@pgindex mmove
311
312@subheading SYNOPSYS:
313
314@example
315mmove dst src size
316@end example
317
318@subheading DESCRIPTION:
319
320This command XXX
321
322@subheading EXIT STATUS:
323
324This command returns 0 on success and non-zero if an error is encountered.
325
326@subheading NOTES:
327
328NONE
329
330@subheading EXAMPLES:
331
332The following is an example of how to use @code{mmove}:
333
334@example
335EXAMPLE_TBD
336@end example
337
338@subheading CONFIGURATION:
339
340@findex CONFIGURE_SHELL_NO_COMMAND_MMOVE
341@findex CONFIGURE_SHELL_COMMAND_MMOVE
342
343This command is included in the default shell command set. 
344When building a custom command set, define
345@code{CONFIGURE_SHELL_COMMAND_MMOVE} to have this
346command included.
347
348This command can be excluded from the shell command set by
349defining @code{CONFIGURE_SHELL_NO_COMMAND_MMOVE} when all
350shell commands have been configured.
351
352@subheading PROGRAMMING INFORMATION:
353
354@findex rtems_shell_rtems_main_mmove
355
356The @code{mmove} is implemented by a C language function
357which has the following prototype:
358
359@example
360int rtems_shell_rtems_main_mmove(
361  int    argc,
362  char **argv
363);
364@end example
365
366The configuration structure for the @code{mmove} has the
367following prototype:
368
369@example
370extern rtems_shell_cmd_t rtems_shell_MMOVE_Command;
371@end example
372
373@c
374@c
375@c
376@page
377@subsection malloc - obtain information on c program heap
378
379@pgindex malloc
380
381@subheading SYNOPSYS:
382
383@example
384malloc [info|stats]
385@end example
386
387@subheading DESCRIPTION:
388
389This command XXX
390
391@subheading EXIT STATUS:
392
393This command returns 0 on success and non-zero if an error is encountered.
394
395@subheading NOTES:
396
397NONE
398
399@subheading EXAMPLES:
400
401The following is an example of how to use @code{malloc}:
402
403@example
404EXAMPLE_TBD
405@end example
406
407@subheading CONFIGURATION:
408
409@findex CONFIGURE_SHELL_NO_COMMAND_MALLOC
410@findex CONFIGURE_SHELL_COMMAND_MALLOC
411
412This command is included in the default shell command set. 
413When building a custom command set, define
414@code{CONFIGURE_SHELL_COMMAND_MALLOC} to have this
415command included.
416
417This command can be excluded from the shell command set by
418defining @code{CONFIGURE_SHELL_NO_COMMAND_MALLOC} when all
419shell commands have been configured.
420
421@subheading PROGRAMMING INFORMATION:
422
423@findex rtems_shell_rtems_main_malloc
424
425The @code{malloc} is implemented by a C language function
426which has the following prototype:
427
428@example
429int rtems_shell_rtems_main_malloc(
430  int    argc,
431  char **argv
432);
433@end example
434
435The configuration structure for the @code{malloc} has the
436following prototype:
437
438@example
439extern rtems_shell_cmd_t rtems_shell_MALLOC_Command;
440@end example
441
Note: See TracBrowser for help on using the repository browser.