1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-2008. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | |
---|
6 | @chapter RTEMS Specific Commands |
---|
7 | |
---|
8 | @section Introduction |
---|
9 | |
---|
10 | The RTEMS shell has the following rtems commands: |
---|
11 | |
---|
12 | @itemize @bullet |
---|
13 | |
---|
14 | @item @code{shutdown} - Shutdown the system |
---|
15 | @item @code{cpuuse} - print or reset per thread cpu usage |
---|
16 | @item @code{stackuse} - print per thread stack usage |
---|
17 | @item @code{perioduse} - print or reset per period usage |
---|
18 | @item @code{wkspace} - Display information on Executive Workspace |
---|
19 | @item @code{config} - Show the system configuration. |
---|
20 | @item @code{itask} - List init tasks for the system |
---|
21 | @item @code{extension} - Display information about extensions |
---|
22 | @item @code{task} - Display information about tasks |
---|
23 | @item @code{queue} - Display information about message queues |
---|
24 | @item @code{sema} - display information about semaphores |
---|
25 | @item @code{region} - display information about regions |
---|
26 | @item @code{part} - display information about partitions |
---|
27 | @item @code{object} - Display information about RTEMS objects |
---|
28 | @item @code{driver} - Display the RTEMS device driver table |
---|
29 | @item @code{dname} - Displays information about named drivers |
---|
30 | @item @code{pthread} - Displays information about POSIX threads |
---|
31 | |
---|
32 | @end itemize |
---|
33 | |
---|
34 | @section Commands |
---|
35 | |
---|
36 | This section details the RTEMS Specific Commands available. A |
---|
37 | subsection is dedicated to each of the commands and |
---|
38 | describes the behavior and configuration of that |
---|
39 | command as well as providing an example usage. |
---|
40 | |
---|
41 | @c |
---|
42 | @c |
---|
43 | @c |
---|
44 | @page |
---|
45 | @subsection shutdown - Shutdown the system |
---|
46 | |
---|
47 | @pgindex shutdown |
---|
48 | |
---|
49 | @subheading SYNOPSYS: |
---|
50 | |
---|
51 | @example |
---|
52 | shutdown |
---|
53 | @end example |
---|
54 | |
---|
55 | @subheading DESCRIPTION: |
---|
56 | |
---|
57 | This command is used to shutdown the RTEMS application. |
---|
58 | |
---|
59 | @subheading EXIT STATUS: |
---|
60 | |
---|
61 | This command does not return. |
---|
62 | |
---|
63 | @subheading NOTES: |
---|
64 | |
---|
65 | |
---|
66 | @subheading EXAMPLES: |
---|
67 | |
---|
68 | The following is an example of how to use @code{shutdown}: |
---|
69 | |
---|
70 | @example |
---|
71 | SHLL [/] $ shutdown |
---|
72 | System shutting down at user request |
---|
73 | @end example |
---|
74 | |
---|
75 | The user will not see another prompt and the system will |
---|
76 | shutdown. |
---|
77 | |
---|
78 | @subheading CONFIGURATION: |
---|
79 | |
---|
80 | @findex CONFIGURE_SHELL_NO_COMMAND_SHUTDOWN |
---|
81 | @findex CONFIGURE_SHELL_COMMAND_SHUTDOWN |
---|
82 | |
---|
83 | This command is included in the default shell command set. |
---|
84 | When building a custom command set, define |
---|
85 | @code{CONFIGURE_SHELL_COMMAND_SHUTDOWN} to have this |
---|
86 | command included. |
---|
87 | |
---|
88 | This command can be excluded from the shell command set by |
---|
89 | defining @code{CONFIGURE_SHELL_NO_COMMAND_SHUTDOWN} when all |
---|
90 | shell commands have been configured. |
---|
91 | |
---|
92 | @subheading PROGRAMMING INFORMATION: |
---|
93 | |
---|
94 | The configuration structure for the @code{shutdown} has the |
---|
95 | following prototype: |
---|
96 | |
---|
97 | @example |
---|
98 | extern rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command; |
---|
99 | @end example |
---|
100 | |
---|
101 | @c |
---|
102 | @c |
---|
103 | @c |
---|
104 | @page |
---|
105 | @subsection cpuuse - print or reset per thread cpu usage |
---|
106 | |
---|
107 | @pgindex cpuuse |
---|
108 | |
---|
109 | @subheading SYNOPSYS: |
---|
110 | |
---|
111 | @example |
---|
112 | cpuuse [-r] |
---|
113 | @end example |
---|
114 | |
---|
115 | @subheading DESCRIPTION: |
---|
116 | |
---|
117 | This command may be used to print a report on the per thread |
---|
118 | cpu usage or to reset the per thread CPU usage statistics. When |
---|
119 | invoked with the @code{-r} option, the CPU usage statistics |
---|
120 | are reset. |
---|
121 | |
---|
122 | @subheading EXIT STATUS: |
---|
123 | |
---|
124 | This command returns 0 on success and non-zero if an error is encountered. |
---|
125 | |
---|
126 | @subheading NOTES: |
---|
127 | |
---|
128 | The granularity of the timing information reported is dependent |
---|
129 | upon the BSP and the manner in which RTEMS was built. In the |
---|
130 | default RTEMS configuration, if the BSP supports nanosecond |
---|
131 | granularity timestamps, then the information reported will be |
---|
132 | highly accurate. Otherwise, the accuracy of the information |
---|
133 | reported is limited by the clock tick quantum. |
---|
134 | |
---|
135 | @subheading EXAMPLES: |
---|
136 | |
---|
137 | The following is an example of how to use @code{cpuuse}: |
---|
138 | |
---|
139 | @example |
---|
140 | SHLL [/] $ cpuuse |
---|
141 | CPU Usage by thread |
---|
142 | ID NAME SECONDS PERCENT |
---|
143 | 0x09010001 IDLE 49.745393 98.953 |
---|
144 | 0x0a010001 UI1 0.000000 0.000 |
---|
145 | 0x0a010002 SHLL 0.525928 1.046 |
---|
146 | Time since last CPU Usage reset 50.271321 seconds |
---|
147 | SHLL [/] $ cpuuse -r |
---|
148 | Resetting CPU Usage information |
---|
149 | SHLL [/] $ cpuuse |
---|
150 | CPU Usage by thread |
---|
151 | ID NAME SECONDS PERCENT |
---|
152 | 0x09010001 IDLE 0.000000 0.000 |
---|
153 | 0x0a010001 UI1 0.000000 0.000 |
---|
154 | 0x0a010002 SHLL 0.003092 100.000 |
---|
155 | Time since last CPU Usage reset 0.003092 seconds |
---|
156 | @end example |
---|
157 | |
---|
158 | In the above example, the system had set idle for nearly |
---|
159 | a minute when the first report was generated. The |
---|
160 | @code{cpuuse -r} and @code{cpuuse} commands were pasted |
---|
161 | from another window so were executed with no gap between. |
---|
162 | In the second report, only the @code{shell} thread has |
---|
163 | run since the CPU Usage was reset. It has consumed |
---|
164 | approximately 3.092 milliseconds of CPU time processing |
---|
165 | the two commands and generating the output. |
---|
166 | |
---|
167 | @subheading CONFIGURATION: |
---|
168 | |
---|
169 | @findex CONFIGURE_SHELL_NO_COMMAND_CPUUSE |
---|
170 | @findex CONFIGURE_SHELL_COMMAND_CPUUSE |
---|
171 | |
---|
172 | This command is included in the default shell command set. |
---|
173 | When building a custom command set, define |
---|
174 | @code{CONFIGURE_SHELL_COMMAND_CPUUSE} to have this |
---|
175 | command included. |
---|
176 | |
---|
177 | This command can be excluded from the shell command set by |
---|
178 | defining @code{CONFIGURE_SHELL_NO_COMMAND_CPUUSE} when all |
---|
179 | shell commands have been configured. |
---|
180 | |
---|
181 | @subheading PROGRAMMING INFORMATION: |
---|
182 | |
---|
183 | @findex rtems_shell_rtems_main_cpuuse |
---|
184 | |
---|
185 | The @code{cpuuse} is implemented by a C language function |
---|
186 | which has the following prototype: |
---|
187 | |
---|
188 | @example |
---|
189 | int rtems_shell_rtems_main_cpuuse( |
---|
190 | int argc, |
---|
191 | char **argv |
---|
192 | ); |
---|
193 | @end example |
---|
194 | |
---|
195 | The configuration structure for the @code{cpuuse} has the |
---|
196 | following prototype: |
---|
197 | |
---|
198 | @example |
---|
199 | extern rtems_shell_cmd_t rtems_shell_CPUUSE_Command; |
---|
200 | @end example |
---|
201 | |
---|
202 | @c |
---|
203 | @c |
---|
204 | @c |
---|
205 | @page |
---|
206 | @subsection stackuse - print per thread stack usage |
---|
207 | |
---|
208 | @pgindex stackuse |
---|
209 | |
---|
210 | @subheading SYNOPSYS: |
---|
211 | |
---|
212 | @example |
---|
213 | stackuse |
---|
214 | @end example |
---|
215 | |
---|
216 | @subheading DESCRIPTION: |
---|
217 | |
---|
218 | This command prints a Stack Usage Report for all of the tasks |
---|
219 | and threads in the system. On systems which support it, the |
---|
220 | usage of the interrupt stack is also included in the report. |
---|
221 | |
---|
222 | @subheading EXIT STATUS: |
---|
223 | |
---|
224 | This command always succeeds and returns 0. |
---|
225 | |
---|
226 | @subheading NOTES: |
---|
227 | |
---|
228 | The @code{CONFIGURE_STACK_CHECKER_ENABLED} @code{confdefs.h} constant |
---|
229 | must be defined when the application is configured for this |
---|
230 | command to have any information to report. |
---|
231 | |
---|
232 | @subheading EXAMPLES: |
---|
233 | |
---|
234 | The following is an example of how to use @code{stackuse}: |
---|
235 | |
---|
236 | @smallexample |
---|
237 | SHLL [/] $ stackuse |
---|
238 | Stack usage by thread |
---|
239 | ID NAME LOW HIGH CURRENT AVAILABLE USED |
---|
240 | 0x09010001 IDLE 0x023d89a0 - 0x023d99af 0x023d9760 4096 608 |
---|
241 | 0x0a010001 UI1 0x023d9f30 - 0x023daf3f 0x023dad18 4096 1804 |
---|
242 | 0x0a010002 SHLL 0x023db4c0 - 0x023df4cf 0x023de9d0 16384 5116 |
---|
243 | 0xffffffff INTR 0x023d2760 - 0x023d375f 0x00000000 4080 316 |
---|
244 | @end smallexample |
---|
245 | |
---|
246 | @subheading CONFIGURATION: |
---|
247 | |
---|
248 | @findex CONFIGURE_SHELL_NO_COMMAND_STACKUSE |
---|
249 | @findex CONFIGURE_SHELL_COMMAND_STACKUSE |
---|
250 | |
---|
251 | This command is included in the default shell command set. |
---|
252 | When building a custom command set, define |
---|
253 | @code{CONFIGURE_SHELL_COMMAND_STACKUSE} to have this |
---|
254 | command included. |
---|
255 | |
---|
256 | This command can be excluded from the shell command set by |
---|
257 | defining @code{CONFIGURE_SHELL_NO_COMMAND_STACKUSE} when all |
---|
258 | shell commands have been configured. |
---|
259 | |
---|
260 | @subheading PROGRAMMING INFORMATION: |
---|
261 | |
---|
262 | @findex rtems_shell_rtems_main_stackuse |
---|
263 | |
---|
264 | The @code{stackuse} is implemented by a C language function |
---|
265 | which has the following prototype: |
---|
266 | |
---|
267 | @example |
---|
268 | int rtems_shell_rtems_main_stackuse( |
---|
269 | int argc, |
---|
270 | char **argv |
---|
271 | ); |
---|
272 | @end example |
---|
273 | |
---|
274 | The configuration structure for the @code{stackuse} has the |
---|
275 | following prototype: |
---|
276 | |
---|
277 | @example |
---|
278 | extern rtems_shell_cmd_t rtems_shell_STACKUSE_Command; |
---|
279 | @end example |
---|
280 | |
---|
281 | @c |
---|
282 | @c |
---|
283 | @c |
---|
284 | @page |
---|
285 | @subsection perioduse - print or reset per period usage |
---|
286 | |
---|
287 | @pgindex perioduse |
---|
288 | |
---|
289 | @subheading SYNOPSYS: |
---|
290 | |
---|
291 | @example |
---|
292 | perioduse [-r] |
---|
293 | @end example |
---|
294 | |
---|
295 | @subheading DESCRIPTION: |
---|
296 | |
---|
297 | This command may be used to print a statistics report on the rate |
---|
298 | monotonic periods in the application or to reset the rate monotonic |
---|
299 | period usage statistics. When invoked with the @code{-r} option, the |
---|
300 | usage statistics are reset. |
---|
301 | |
---|
302 | @subheading EXIT STATUS: |
---|
303 | |
---|
304 | This command returns 0 on success and non-zero if an error is encountered. |
---|
305 | |
---|
306 | @subheading NOTES: |
---|
307 | |
---|
308 | The granularity of the timing information reported is dependent |
---|
309 | upon the BSP and the manner in which RTEMS was built. In the |
---|
310 | default RTEMS configuration, if the BSP supports nanosecond |
---|
311 | granularity timestamps, then the information reported will be |
---|
312 | highly accurate. Otherwise, the accuracy of the information |
---|
313 | reported is limited by the clock tick quantum. |
---|
314 | |
---|
315 | @subheading EXAMPLES: |
---|
316 | |
---|
317 | The following is an example of how to use @code{perioduse}: |
---|
318 | |
---|
319 | @smallexample |
---|
320 | SHLL [/] $ perioduse |
---|
321 | Period information by period |
---|
322 | --- CPU times are in seconds --- |
---|
323 | --- Wall times are in seconds --- |
---|
324 | ID OWNER COUNT MISSED CPU TIME WALL TIME |
---|
325 | MIN/MAX/AVG MIN/MAX/AVG |
---|
326 | 0x42010001 TA1 502 0 0:000039/0:042650/0:004158 0:000039/0:020118/0:002848 |
---|
327 | 0x42010002 TA2 502 0 0:000041/0:042657/0:004309 0:000041/0:020116/0:002848 |
---|
328 | 0x42010003 TA3 501 0 0:000041/0:041564/0:003653 0:000041/0:020003/0:002814 |
---|
329 | 0x42010004 TA4 501 0 0:000043/0:044075/0:004911 0:000043/0:020004/0:002814 |
---|
330 | 0x42010005 TA5 10 0 0:000065/0:005413/0:002739 0:000065/1:000457/0:041058 |
---|
331 | |
---|
332 | MIN/MAX/AVG MIN/MAX/AVG |
---|
333 | SHLL [/] $ perioduse -r |
---|
334 | Resetting Period Usage information |
---|
335 | SHLL [/] $ perioduse |
---|
336 | --- CPU times are in seconds --- |
---|
337 | --- Wall times are in seconds --- |
---|
338 | ID OWNER COUNT MISSED CPU TIME WALL TIME |
---|
339 | MIN/MAX/AVG MIN/MAX/AVG |
---|
340 | 0x42010001 TA1 0 0 |
---|
341 | 0x42010002 TA2 0 0 |
---|
342 | 0x42010003 TA3 0 0 |
---|
343 | 0x42010004 TA4 0 0 |
---|
344 | 0x42010005 TA5 0 0 |
---|
345 | @end smallexample |
---|
346 | |
---|
347 | @subheading CONFIGURATION: |
---|
348 | |
---|
349 | @findex CONFIGURE_SHELL_NO_COMMAND_PERIODUSE |
---|
350 | @findex CONFIGURE_SHELL_COMMAND_PERIODUSE |
---|
351 | |
---|
352 | This command is included in the default shell command set. |
---|
353 | When building a custom command set, define |
---|
354 | @code{CONFIGURE_SHELL_COMMAND_PERIODUSE} to have this |
---|
355 | command included. |
---|
356 | |
---|
357 | This command can be excluded from the shell command set by |
---|
358 | defining @code{CONFIGURE_SHELL_NO_COMMAND_PERIODUSE} when all |
---|
359 | shell commands have been configured. |
---|
360 | |
---|
361 | @subheading PROGRAMMING INFORMATION: |
---|
362 | |
---|
363 | @findex rtems_shell_rtems_main_perioduse |
---|
364 | |
---|
365 | The @code{perioduse} is implemented by a C language function |
---|
366 | which has the following prototype: |
---|
367 | |
---|
368 | @example |
---|
369 | int rtems_shell_rtems_main_perioduse( |
---|
370 | int argc, |
---|
371 | char **argv |
---|
372 | ); |
---|
373 | @end example |
---|
374 | |
---|
375 | The configuration structure for the @code{perioduse} has the |
---|
376 | following prototype: |
---|
377 | |
---|
378 | @example |
---|
379 | extern rtems_shell_cmd_t rtems_shell_PERIODUSE_Command; |
---|
380 | @end example |
---|
381 | |
---|
382 | @c |
---|
383 | @c |
---|
384 | @c |
---|
385 | @page |
---|
386 | @subsection wkspace - display information on executive workspace |
---|
387 | |
---|
388 | @pgindex wkspace |
---|
389 | |
---|
390 | @subheading SYNOPSYS: |
---|
391 | |
---|
392 | @example |
---|
393 | wkspace |
---|
394 | @end example |
---|
395 | |
---|
396 | @subheading DESCRIPTION: |
---|
397 | |
---|
398 | This command prints information on the current state of |
---|
399 | the RTEMS Executive Workspace reported. This includes the |
---|
400 | following information: |
---|
401 | |
---|
402 | @itemize @bullet |
---|
403 | @item Number of free blocks |
---|
404 | @item Largest free block |
---|
405 | @item Total bytes free |
---|
406 | @item Number of used blocks |
---|
407 | @item Largest used block |
---|
408 | @item Total bytes used |
---|
409 | @end itemize |
---|
410 | |
---|
411 | @subheading EXIT STATUS: |
---|
412 | |
---|
413 | This command always succeeds and returns 0. |
---|
414 | |
---|
415 | @subheading NOTES: |
---|
416 | |
---|
417 | NONE |
---|
418 | |
---|
419 | @subheading EXAMPLES: |
---|
420 | |
---|
421 | The following is an example of how to use @code{wkspace}: |
---|
422 | |
---|
423 | @example |
---|
424 | SHLL [/] $ wkspace |
---|
425 | Number of free blocks: 1 |
---|
426 | Largest free block: 132336 |
---|
427 | Total bytes free: 132336 |
---|
428 | Number of used blocks: 36 |
---|
429 | Largest used block: 16408 |
---|
430 | Total bytes used: 55344 |
---|
431 | @end example |
---|
432 | |
---|
433 | @subheading CONFIGURATION: |
---|
434 | |
---|
435 | @findex CONFIGURE_SHELL_NO_COMMAND_WKSPACE |
---|
436 | @findex CONFIGURE_SHELL_COMMAND_WKSPACE |
---|
437 | |
---|
438 | This command is included in the default shell command set. |
---|
439 | When building a custom command set, define |
---|
440 | @code{CONFIGURE_SHELL_COMMAND_WKSPACE} to have this |
---|
441 | command included. |
---|
442 | |
---|
443 | This command can be excluded from the shell command set by |
---|
444 | defining @code{CONFIGURE_SHELL_NO_COMMAND_WKSPACE} when all |
---|
445 | shell commands have been configured. |
---|
446 | |
---|
447 | @subheading PROGRAMMING INFORMATION: |
---|
448 | |
---|
449 | @findex rtems_shell_rtems_main_wkspace |
---|
450 | |
---|
451 | The @code{wkspace} is implemented by a C language function |
---|
452 | which has the following prototype: |
---|
453 | |
---|
454 | @example |
---|
455 | int rtems_shell_rtems_main_wkspace( |
---|
456 | int argc, |
---|
457 | char **argv |
---|
458 | ); |
---|
459 | @end example |
---|
460 | |
---|
461 | The configuration structure for the @code{wkspace} has the |
---|
462 | following prototype: |
---|
463 | |
---|
464 | @example |
---|
465 | extern rtems_shell_cmd_t rtems_shell_WKSPACE_Command; |
---|
466 | @end example |
---|
467 | |
---|
468 | @c |
---|
469 | @c |
---|
470 | @c |
---|
471 | @page |
---|
472 | @subsection config - show the system configuration. |
---|
473 | |
---|
474 | @pgindex config |
---|
475 | |
---|
476 | @subheading SYNOPSYS: |
---|
477 | |
---|
478 | @example |
---|
479 | config |
---|
480 | @end example |
---|
481 | |
---|
482 | @subheading DESCRIPTION: |
---|
483 | |
---|
484 | This command display information about the RTEMS Configuration. |
---|
485 | |
---|
486 | @subheading EXIT STATUS: |
---|
487 | |
---|
488 | This command always succeeds and returns 0. |
---|
489 | |
---|
490 | @subheading NOTES: |
---|
491 | |
---|
492 | At this time, it does not report every configuration parameter. |
---|
493 | This is an area in which user submissions or sponsorship of |
---|
494 | a developer would be appreciated. |
---|
495 | |
---|
496 | @subheading EXAMPLES: |
---|
497 | |
---|
498 | The following is an example of how to use @code{config}: |
---|
499 | |
---|
500 | @smallexample |
---|
501 | INITIAL (startup) Configuration Info |
---|
502 | ------------------------------------------------------------------------------ |
---|
503 | WORKSPACE start: 0x23d22e0; size: 0x2dd20 |
---|
504 | TIME usec/tick: 10000; tick/timeslice: 50; tick/sec: 100 |
---|
505 | MAXIMUMS tasks: 20; timers: 0; sems: 50; que's: 20; ext's: 1 |
---|
506 | partitions: 0; regions: 0; ports: 0; periods: 0 |
---|
507 | @end smallexample |
---|
508 | |
---|
509 | @subheading CONFIGURATION: |
---|
510 | |
---|
511 | @findex CONFIGURE_SHELL_NO_COMMAND_CONFIG |
---|
512 | @findex CONFIGURE_SHELL_COMMAND_CONFIG |
---|
513 | |
---|
514 | This command is included in the default shell command set. |
---|
515 | When building a custom command set, define |
---|
516 | @code{CONFIGURE_SHELL_COMMAND_CONFIG} to have this |
---|
517 | command included. |
---|
518 | |
---|
519 | This command can be excluded from the shell command set by |
---|
520 | defining @code{CONFIGURE_SHELL_NO_COMMAND_CONFIG} when all |
---|
521 | shell commands have been configured. |
---|
522 | |
---|
523 | @subheading PROGRAMMING INFORMATION: |
---|
524 | |
---|
525 | @findex rtems_shell_rtems_main_config |
---|
526 | |
---|
527 | The @code{config} is implemented by a C language function |
---|
528 | which has the following prototype: |
---|
529 | |
---|
530 | @example |
---|
531 | int rtems_shell_rtems_main_config( |
---|
532 | int argc, |
---|
533 | char **argv |
---|
534 | ); |
---|
535 | @end example |
---|
536 | |
---|
537 | The configuration structure for the @code{config} has the |
---|
538 | following prototype: |
---|
539 | |
---|
540 | @example |
---|
541 | extern rtems_shell_cmd_t rtems_shell_CONFIG_Command; |
---|
542 | @end example |
---|
543 | |
---|
544 | @c |
---|
545 | @c |
---|
546 | @c |
---|
547 | @page |
---|
548 | @subsection itask - list init tasks for the system |
---|
549 | |
---|
550 | @pgindex itask |
---|
551 | |
---|
552 | @subheading SYNOPSYS: |
---|
553 | |
---|
554 | @example |
---|
555 | itask |
---|
556 | @end example |
---|
557 | |
---|
558 | @subheading DESCRIPTION: |
---|
559 | |
---|
560 | This command prints a report on the set of initialization |
---|
561 | tasks and threads in the system. |
---|
562 | |
---|
563 | @subheading EXIT STATUS: |
---|
564 | |
---|
565 | This command always succeeds and returns 0. |
---|
566 | |
---|
567 | @subheading NOTES: |
---|
568 | |
---|
569 | At this time, it includes only Classic API Initialization Tasks. |
---|
570 | This is an area in which user submissions or sponsorship of |
---|
571 | a developer would be appreciated. |
---|
572 | |
---|
573 | @subheading EXAMPLES: |
---|
574 | |
---|
575 | The following is an example of how to use @code{itask}: |
---|
576 | |
---|
577 | @smallexample |
---|
578 | SHLL [/] $ itask |
---|
579 | # NAME ENTRY ARGUMENT PRIO MODES ATTRIBUTES STACK SIZE |
---|
580 | ------------------------------------------------------------------------------ |
---|
581 | 0 UI1 [0x2002258] 0 [0x0] 1 nP DEFAULT 4096 [0x1000] |
---|
582 | @end smallexample |
---|
583 | |
---|
584 | @subheading CONFIGURATION: |
---|
585 | |
---|
586 | @findex CONFIGURE_SHELL_NO_COMMAND_ITASK |
---|
587 | @findex CONFIGURE_SHELL_COMMAND_ITASK |
---|
588 | |
---|
589 | This command is included in the default shell command set. |
---|
590 | When building a custom command set, define |
---|
591 | @code{CONFIGURE_SHELL_COMMAND_ITASK} to have this |
---|
592 | command included. |
---|
593 | |
---|
594 | This command can be excluded from the shell command set by |
---|
595 | defining @code{CONFIGURE_SHELL_NO_COMMAND_ITASK} when all |
---|
596 | shell commands have been configured. |
---|
597 | |
---|
598 | @subheading PROGRAMMING INFORMATION: |
---|
599 | |
---|
600 | @findex rtems_shell_rtems_main_itask |
---|
601 | |
---|
602 | The @code{itask} is implemented by a C language function |
---|
603 | which has the following prototype: |
---|
604 | |
---|
605 | @example |
---|
606 | int rtems_shell_rtems_main_itask( |
---|
607 | int argc, |
---|
608 | char **argv |
---|
609 | ); |
---|
610 | @end example |
---|
611 | |
---|
612 | The configuration structure for the @code{itask} has the |
---|
613 | following prototype: |
---|
614 | |
---|
615 | @example |
---|
616 | extern rtems_shell_cmd_t rtems_shell_ITASK_Command; |
---|
617 | @end example |
---|
618 | |
---|
619 | @c |
---|
620 | @c |
---|
621 | @c |
---|
622 | @page |
---|
623 | @subsection extension - display information about extensions |
---|
624 | |
---|
625 | @pgindex extension |
---|
626 | |
---|
627 | @subheading SYNOPSYS: |
---|
628 | |
---|
629 | @example |
---|
630 | extension [id [id ...] ] |
---|
631 | @end example |
---|
632 | |
---|
633 | @subheading DESCRIPTION: |
---|
634 | |
---|
635 | When invoked with no arguments, this command prints information on |
---|
636 | the set of User Extensions currently active in the system. |
---|
637 | |
---|
638 | If invoked with a set of ids as arguments, then just |
---|
639 | those objects are included in the information printed. |
---|
640 | |
---|
641 | @subheading EXIT STATUS: |
---|
642 | |
---|
643 | This command returns 0 on success and non-zero if an error is encountered. |
---|
644 | |
---|
645 | @subheading NOTES: |
---|
646 | |
---|
647 | NONE |
---|
648 | |
---|
649 | @subheading EXAMPLES: |
---|
650 | |
---|
651 | The following is an example of using the @code{extension} command |
---|
652 | on a system with no user extensions. |
---|
653 | |
---|
654 | @smallexample |
---|
655 | SHLL [/] $ extension |
---|
656 | ID NAME |
---|
657 | ------------------------------------------------------------------------------ |
---|
658 | @end smallexample |
---|
659 | |
---|
660 | @subheading CONFIGURATION: |
---|
661 | |
---|
662 | @findex CONFIGURE_SHELL_NO_COMMAND_EXTENSION |
---|
663 | @findex CONFIGURE_SHELL_COMMAND_EXTENSION |
---|
664 | |
---|
665 | This command is included in the default shell command set. |
---|
666 | When building a custom command set, define |
---|
667 | @code{CONFIGURE_SHELL_COMMAND_EXTENSION} to have this |
---|
668 | command included. |
---|
669 | |
---|
670 | This command can be excluded from the shell command set by |
---|
671 | defining @code{CONFIGURE_SHELL_NO_COMMAND_EXTENSION} when all |
---|
672 | shell commands have been configured. |
---|
673 | |
---|
674 | @subheading PROGRAMMING INFORMATION: |
---|
675 | |
---|
676 | @findex rtems_shell_rtems_main_extension |
---|
677 | |
---|
678 | The @code{extension} is implemented by a C language function |
---|
679 | which has the following prototype: |
---|
680 | |
---|
681 | @example |
---|
682 | int rtems_shell_rtems_main_extension( |
---|
683 | int argc, |
---|
684 | char **argv |
---|
685 | ); |
---|
686 | @end example |
---|
687 | |
---|
688 | The configuration structure for the @code{extension} has the |
---|
689 | following prototype: |
---|
690 | |
---|
691 | @example |
---|
692 | extern rtems_shell_cmd_t rtems_shell_EXTENSION_Command; |
---|
693 | @end example |
---|
694 | |
---|
695 | @c |
---|
696 | @c |
---|
697 | @c |
---|
698 | @page |
---|
699 | @subsection task - display information about tasks |
---|
700 | |
---|
701 | @pgindex task |
---|
702 | |
---|
703 | @subheading SYNOPSYS: |
---|
704 | |
---|
705 | @example |
---|
706 | task [id [id ...] ] |
---|
707 | @end example |
---|
708 | |
---|
709 | @subheading DESCRIPTION: |
---|
710 | |
---|
711 | When invoked with no arguments, this command prints information on |
---|
712 | the set of Classic API Tasks currently active in the system. |
---|
713 | |
---|
714 | If invoked with a set of ids as arguments, then just |
---|
715 | those objects are included in the information printed. |
---|
716 | |
---|
717 | @subheading EXIT STATUS: |
---|
718 | |
---|
719 | This command returns 0 on success and non-zero if an error is encountered. |
---|
720 | |
---|
721 | @subheading NOTES: |
---|
722 | |
---|
723 | NONE |
---|
724 | |
---|
725 | @subheading EXAMPLES: |
---|
726 | |
---|
727 | The following is an example of how to use the @code{task} on an |
---|
728 | application with just two Classic API tasks: |
---|
729 | |
---|
730 | @smallexample |
---|
731 | SHLL [/] $ task |
---|
732 | ID NAME PRIO STAT MODES EVENTS WAITID WAITARG NOTES |
---|
733 | ------------------------------------------------------------------------------ |
---|
734 | 0a010001 UI1 1 SUSP P:T:nA NONE |
---|
735 | 0a010002 SHLL 100 READY P:T:nA NONE |
---|
736 | @end smallexample |
---|
737 | |
---|
738 | @subheading CONFIGURATION: |
---|
739 | |
---|
740 | @findex CONFIGURE_SHELL_NO_COMMAND_TASK |
---|
741 | @findex CONFIGURE_SHELL_COMMAND_TASK |
---|
742 | |
---|
743 | This command is included in the default shell command set. |
---|
744 | When building a custom command set, define |
---|
745 | @code{CONFIGURE_SHELL_COMMAND_TASK} to have this |
---|
746 | command included. |
---|
747 | |
---|
748 | This command can be excluded from the shell command set by |
---|
749 | defining @code{CONFIGURE_SHELL_NO_COMMAND_TASK} when all |
---|
750 | shell commands have been configured. |
---|
751 | |
---|
752 | @subheading PROGRAMMING INFORMATION: |
---|
753 | |
---|
754 | @findex rtems_shell_rtems_main_task |
---|
755 | |
---|
756 | The @code{task} is implemented by a C language function |
---|
757 | which has the following prototype: |
---|
758 | |
---|
759 | @example |
---|
760 | int rtems_shell_rtems_main_task( |
---|
761 | int argc, |
---|
762 | char **argv |
---|
763 | ); |
---|
764 | @end example |
---|
765 | |
---|
766 | The configuration structure for the @code{task} has the |
---|
767 | following prototype: |
---|
768 | |
---|
769 | @example |
---|
770 | extern rtems_shell_cmd_t rtems_shell_TASK_Command; |
---|
771 | @end example |
---|
772 | |
---|
773 | @c |
---|
774 | @c |
---|
775 | @c |
---|
776 | @page |
---|
777 | @subsection queue - display information about message queues |
---|
778 | |
---|
779 | @pgindex queue |
---|
780 | |
---|
781 | @subheading SYNOPSYS: |
---|
782 | |
---|
783 | @example |
---|
784 | queue [id [id ... ] ] |
---|
785 | @end example |
---|
786 | |
---|
787 | @subheading DESCRIPTION: |
---|
788 | |
---|
789 | When invoked with no arguments, this command prints information on |
---|
790 | the set of Classic API Message Queues currently active in the system. |
---|
791 | |
---|
792 | If invoked with a set of ids as arguments, then just |
---|
793 | those objects are included in the information printed. |
---|
794 | |
---|
795 | @subheading EXIT STATUS: |
---|
796 | |
---|
797 | This command returns 0 on success and non-zero if an error is encountered. |
---|
798 | |
---|
799 | @subheading NOTES: |
---|
800 | |
---|
801 | NONE |
---|
802 | |
---|
803 | @subheading EXAMPLES: |
---|
804 | |
---|
805 | The following is an example of using the @code{queue} command |
---|
806 | on a system with no Classic API Message Queues. |
---|
807 | |
---|
808 | @smallexample |
---|
809 | SHLL [/] $ queue |
---|
810 | ID NAME ATTRIBUTES PEND MAXPEND MAXSIZE |
---|
811 | ------------------------------------------------------------------------------ |
---|
812 | @end smallexample |
---|
813 | |
---|
814 | @subheading CONFIGURATION: |
---|
815 | |
---|
816 | @findex CONFIGURE_SHELL_NO_COMMAND_QUEUE |
---|
817 | @findex CONFIGURE_SHELL_COMMAND_QUEUE |
---|
818 | |
---|
819 | This command is included in the default shell command set. |
---|
820 | When building a custom command set, define |
---|
821 | @code{CONFIGURE_SHELL_COMMAND_QUEUE} to have this |
---|
822 | command included. |
---|
823 | |
---|
824 | This command can be excluded from the shell command set by |
---|
825 | defining @code{CONFIGURE_SHELL_NO_COMMAND_QUEUE} when all |
---|
826 | shell commands have been configured. |
---|
827 | |
---|
828 | @subheading PROGRAMMING INFORMATION: |
---|
829 | |
---|
830 | @findex rtems_shell_rtems_main_queue |
---|
831 | |
---|
832 | The @code{queue} is implemented by a C language function |
---|
833 | which has the following prototype: |
---|
834 | |
---|
835 | @example |
---|
836 | int rtems_shell_rtems_main_queue( |
---|
837 | int argc, |
---|
838 | char **argv |
---|
839 | ); |
---|
840 | @end example |
---|
841 | |
---|
842 | The configuration structure for the @code{queue} has the |
---|
843 | following prototype: |
---|
844 | |
---|
845 | @example |
---|
846 | extern rtems_shell_cmd_t rtems_shell_QUEUE_Command; |
---|
847 | @end example |
---|
848 | |
---|
849 | @c |
---|
850 | @c |
---|
851 | @c |
---|
852 | @page |
---|
853 | @subsection sema - display information about semaphores |
---|
854 | |
---|
855 | @pgindex sema |
---|
856 | |
---|
857 | @subheading SYNOPSYS: |
---|
858 | |
---|
859 | @example |
---|
860 | sema [id [id ... ] ] |
---|
861 | @end example |
---|
862 | |
---|
863 | @subheading DESCRIPTION: |
---|
864 | |
---|
865 | When invoked with no arguments, this command prints information on |
---|
866 | the set of Classic API Semaphores currently active in the system. |
---|
867 | |
---|
868 | If invoked with a set of objects ids as arguments, then just |
---|
869 | those objects are included in the information printed. |
---|
870 | |
---|
871 | @subheading EXIT STATUS: |
---|
872 | |
---|
873 | This command returns 0 on success and non-zero if an error is encountered. |
---|
874 | |
---|
875 | @subheading NOTES: |
---|
876 | |
---|
877 | NONE |
---|
878 | |
---|
879 | @subheading EXAMPLES: |
---|
880 | |
---|
881 | The following is an example of how to use @code{sema}: |
---|
882 | |
---|
883 | @smallexample |
---|
884 | SHLL [/] $ sema |
---|
885 | ID NAME ATTR PRICEIL CURR_CNT HOLDID |
---|
886 | ------------------------------------------------------------------------------ |
---|
887 | 1a010001 LBIO PR:BI:IN 0 1 00000000 |
---|
888 | 1a010002 TRmi PR:BI:IN 0 1 00000000 |
---|
889 | 1a010003 LBI00 PR:BI:IN 0 1 00000000 |
---|
890 | 1a010004 TRia PR:BI:IN 0 1 00000000 |
---|
891 | 1a010005 TRoa PR:BI:IN 0 1 00000000 |
---|
892 | 1a010006 TRxa <assoc.c: BAD NAME> 0 0 09010001 |
---|
893 | 1a010007 LBI01 PR:BI:IN 0 1 00000000 |
---|
894 | 1a010008 LBI02 PR:BI:IN 0 1 00000000 |
---|
895 | @end smallexample |
---|
896 | |
---|
897 | @subheading CONFIGURATION: |
---|
898 | |
---|
899 | @findex CONFIGURE_SHELL_NO_COMMAND_SEMA |
---|
900 | @findex CONFIGURE_SHELL_COMMAND_SEMA |
---|
901 | |
---|
902 | This command is included in the default shell command set. |
---|
903 | When building a custom command set, define |
---|
904 | @code{CONFIGURE_SHELL_COMMAND_SEMA} to have this |
---|
905 | command included. |
---|
906 | |
---|
907 | This command can be excluded from the shell command set by |
---|
908 | defining @code{CONFIGURE_SHELL_NO_COMMAND_SEMA} when all |
---|
909 | shell commands have been configured. |
---|
910 | |
---|
911 | @subheading PROGRAMMING INFORMATION: |
---|
912 | |
---|
913 | @findex rtems_shell_rtems_main_sema |
---|
914 | |
---|
915 | The @code{sema} is implemented by a C language function |
---|
916 | which has the following prototype: |
---|
917 | |
---|
918 | @example |
---|
919 | int rtems_shell_rtems_main_sema( |
---|
920 | int argc, |
---|
921 | char **argv |
---|
922 | ); |
---|
923 | @end example |
---|
924 | |
---|
925 | The configuration structure for the @code{sema} has the |
---|
926 | following prototype: |
---|
927 | |
---|
928 | @example |
---|
929 | extern rtems_shell_cmd_t rtems_shell_SEMA_Command; |
---|
930 | @end example |
---|
931 | |
---|
932 | @c |
---|
933 | @c |
---|
934 | @c |
---|
935 | @page |
---|
936 | @subsection region - display information about regions |
---|
937 | |
---|
938 | @pgindex region |
---|
939 | |
---|
940 | @subheading SYNOPSYS: |
---|
941 | |
---|
942 | @example |
---|
943 | region [id [id ... ] ] |
---|
944 | @end example |
---|
945 | |
---|
946 | @subheading DESCRIPTION: |
---|
947 | |
---|
948 | When invoked with no arguments, this command prints information on |
---|
949 | the set of Classic API Regions currently active in the system. |
---|
950 | |
---|
951 | If invoked with a set of object ids as arguments, then just |
---|
952 | those object are included in the information printed. |
---|
953 | |
---|
954 | @subheading EXIT STATUS: |
---|
955 | |
---|
956 | This command returns 0 on success and non-zero if an error is encountered. |
---|
957 | |
---|
958 | @subheading NOTES: |
---|
959 | |
---|
960 | NONE |
---|
961 | |
---|
962 | @subheading EXAMPLES: |
---|
963 | |
---|
964 | The following is an example of using the @code{region} command |
---|
965 | on a system with no user extensions. |
---|
966 | |
---|
967 | @smallexample |
---|
968 | SHLL [/] $ region |
---|
969 | ID NAME ATTR STARTADDR LENGTH PAGE_SIZE USED_BLOCKS |
---|
970 | ------------------------------------------------------------------------------ |
---|
971 | @end smallexample |
---|
972 | |
---|
973 | @subheading CONFIGURATION: |
---|
974 | |
---|
975 | @findex CONFIGURE_SHELL_NO_COMMAND_REGION |
---|
976 | @findex CONFIGURE_SHELL_COMMAND_REGION |
---|
977 | |
---|
978 | This command is included in the default shell command set. |
---|
979 | When building a custom command set, define |
---|
980 | @code{CONFIGURE_SHELL_COMMAND_REGION} to have this |
---|
981 | command included. |
---|
982 | |
---|
983 | This command can be excluded from the shell command set by |
---|
984 | defining @code{CONFIGURE_SHELL_NO_COMMAND_REGION} when all |
---|
985 | shell commands have been configured. |
---|
986 | |
---|
987 | @subheading PROGRAMMING INFORMATION: |
---|
988 | |
---|
989 | @findex rtems_shell_rtems_main_region |
---|
990 | |
---|
991 | The @code{region} is implemented by a C language function |
---|
992 | which has the following prototype: |
---|
993 | |
---|
994 | @example |
---|
995 | int rtems_shell_rtems_main_region( |
---|
996 | int argc, |
---|
997 | char **argv |
---|
998 | ); |
---|
999 | @end example |
---|
1000 | |
---|
1001 | The configuration structure for the @code{region} has the |
---|
1002 | following prototype: |
---|
1003 | |
---|
1004 | @example |
---|
1005 | extern rtems_shell_cmd_t rtems_shell_REGION_Command; |
---|
1006 | @end example |
---|
1007 | |
---|
1008 | @c |
---|
1009 | @c |
---|
1010 | @c |
---|
1011 | @page |
---|
1012 | @subsection part - display information about partitions |
---|
1013 | |
---|
1014 | @pgindex part |
---|
1015 | |
---|
1016 | @subheading SYNOPSYS: |
---|
1017 | |
---|
1018 | @example |
---|
1019 | part [id [id ... ] ] |
---|
1020 | @end example |
---|
1021 | |
---|
1022 | @subheading DESCRIPTION: |
---|
1023 | |
---|
1024 | When invoked with no arguments, this command prints information on |
---|
1025 | the set of Classic API Partitions currently active in the system. |
---|
1026 | |
---|
1027 | If invoked with a set of object ids as arguments, then just |
---|
1028 | those objects are included in the information printed. |
---|
1029 | |
---|
1030 | @subheading EXIT STATUS: |
---|
1031 | |
---|
1032 | This command returns 0 on success and non-zero if an error is encountered. |
---|
1033 | |
---|
1034 | @subheading NOTES: |
---|
1035 | |
---|
1036 | NONE |
---|
1037 | |
---|
1038 | @subheading EXAMPLES: |
---|
1039 | |
---|
1040 | The following is an example of using the @code{part} command |
---|
1041 | on a system with no user extensions. |
---|
1042 | |
---|
1043 | @smallexample |
---|
1044 | SHLL [/] $ part |
---|
1045 | ID NAME ATTR STARTADDR LENGTH BUF_SIZE USED_BLOCKS |
---|
1046 | ------------------------------------------------------------------------------ |
---|
1047 | @end smallexample |
---|
1048 | |
---|
1049 | @subheading CONFIGURATION: |
---|
1050 | |
---|
1051 | @findex CONFIGURE_SHELL_NO_COMMAND_PART |
---|
1052 | @findex CONFIGURE_SHELL_COMMAND_PART |
---|
1053 | |
---|
1054 | This command is included in the default shell command set. |
---|
1055 | When building a custom command set, define |
---|
1056 | @code{CONFIGURE_SHELL_COMMAND_PART} to have this |
---|
1057 | command included. |
---|
1058 | |
---|
1059 | This command can be excluded from the shell command set by |
---|
1060 | defining @code{CONFIGURE_SHELL_NO_COMMAND_PART} when all |
---|
1061 | shell commands have been configured. |
---|
1062 | |
---|
1063 | @subheading PROGRAMMING INFORMATION: |
---|
1064 | |
---|
1065 | @findex rtems_shell_rtems_main_part |
---|
1066 | |
---|
1067 | The @code{part} is implemented by a C language function |
---|
1068 | which has the following prototype: |
---|
1069 | |
---|
1070 | @example |
---|
1071 | int rtems_shell_rtems_main_part( |
---|
1072 | int argc, |
---|
1073 | char **argv |
---|
1074 | ); |
---|
1075 | @end example |
---|
1076 | |
---|
1077 | The configuration structure for the @code{part} has the |
---|
1078 | following prototype: |
---|
1079 | |
---|
1080 | @example |
---|
1081 | extern rtems_shell_cmd_t rtems_shell_PART_Command; |
---|
1082 | @end example |
---|
1083 | |
---|
1084 | @c |
---|
1085 | @c |
---|
1086 | @c |
---|
1087 | @page |
---|
1088 | @subsection object - display information about rtems objects |
---|
1089 | |
---|
1090 | @pgindex object |
---|
1091 | |
---|
1092 | @subheading SYNOPSYS: |
---|
1093 | |
---|
1094 | @example |
---|
1095 | object [id [id ...] ] |
---|
1096 | @end example |
---|
1097 | |
---|
1098 | @subheading DESCRIPTION: |
---|
1099 | |
---|
1100 | When invoked with a set of object ids as arguments, then |
---|
1101 | a report on those objects is printed. |
---|
1102 | |
---|
1103 | @subheading EXIT STATUS: |
---|
1104 | |
---|
1105 | This command returns 0 on success and non-zero if an error is encountered. |
---|
1106 | |
---|
1107 | @subheading NOTES: |
---|
1108 | |
---|
1109 | NONE |
---|
1110 | |
---|
1111 | @subheading EXAMPLES: |
---|
1112 | |
---|
1113 | The following is an example of how to use @code{object}: |
---|
1114 | |
---|
1115 | @smallexample |
---|
1116 | SHLL [/] $ object 0a010001 1a010002 |
---|
1117 | ID NAME PRIO STAT MODES EVENTS WAITID WAITARG NOTES |
---|
1118 | ------------------------------------------------------------------------------ |
---|
1119 | 0a010001 UI1 1 SUSP P:T:nA NONE |
---|
1120 | ID NAME ATTR PRICEIL CURR_CNT HOLDID |
---|
1121 | ------------------------------------------------------------------------------ |
---|
1122 | 1a010002 TRmi PR:BI:IN 0 1 00000000 |
---|
1123 | @end smallexample |
---|
1124 | |
---|
1125 | @subheading CONFIGURATION: |
---|
1126 | |
---|
1127 | @findex CONFIGURE_SHELL_NO_COMMAND_OBJECT |
---|
1128 | @findex CONFIGURE_SHELL_COMMAND_OBJECT |
---|
1129 | |
---|
1130 | This command is included in the default shell command set. |
---|
1131 | When building a custom command set, define |
---|
1132 | @code{CONFIGURE_SHELL_COMMAND_OBJECT} to have this |
---|
1133 | command included. |
---|
1134 | |
---|
1135 | This command can be excluded from the shell command set by |
---|
1136 | defining @code{CONFIGURE_SHELL_NO_COMMAND_OBJECT} when all |
---|
1137 | shell commands have been configured. |
---|
1138 | |
---|
1139 | @subheading PROGRAMMING INFORMATION: |
---|
1140 | |
---|
1141 | @findex rtems_shell_rtems_main_object |
---|
1142 | |
---|
1143 | The @code{object} is implemented by a C language function |
---|
1144 | which has the following prototype: |
---|
1145 | |
---|
1146 | @example |
---|
1147 | int rtems_shell_rtems_main_object( |
---|
1148 | int argc, |
---|
1149 | char **argv |
---|
1150 | ); |
---|
1151 | @end example |
---|
1152 | |
---|
1153 | The configuration structure for the @code{object} has the |
---|
1154 | following prototype: |
---|
1155 | |
---|
1156 | @example |
---|
1157 | extern rtems_shell_cmd_t rtems_shell_OBJECT_Command; |
---|
1158 | @end example |
---|
1159 | |
---|
1160 | @c |
---|
1161 | @c |
---|
1162 | @c |
---|
1163 | @page |
---|
1164 | @subsection driver - display the rtems device driver table |
---|
1165 | |
---|
1166 | @pgindex driver |
---|
1167 | |
---|
1168 | @subheading SYNOPSYS: |
---|
1169 | |
---|
1170 | @example |
---|
1171 | driver [ major [ major ... ] ] |
---|
1172 | @end example |
---|
1173 | |
---|
1174 | @subheading DESCRIPTION: |
---|
1175 | |
---|
1176 | When invoked with no arguments, this command prints information on |
---|
1177 | the set of Device Drivers currently active in the system. |
---|
1178 | |
---|
1179 | If invoked with a set of major numbers as arguments, then just |
---|
1180 | those Device Drivers are included in the information printed. |
---|
1181 | |
---|
1182 | @subheading EXIT STATUS: |
---|
1183 | |
---|
1184 | This command returns 0 on success and non-zero if an error is encountered. |
---|
1185 | |
---|
1186 | @subheading NOTES: |
---|
1187 | |
---|
1188 | NONE |
---|
1189 | |
---|
1190 | @subheading EXAMPLES: |
---|
1191 | |
---|
1192 | The following is an example of how to use @code{driver}: |
---|
1193 | |
---|
1194 | @smallexample |
---|
1195 | SHLL [/] $ driver |
---|
1196 | Major Entry points |
---|
1197 | ------------------------------------------------------------------------------ |
---|
1198 | 0 init: [0x200256c]; control: [0x20024c8] |
---|
1199 | open: [0x2002518]; close: [0x2002504] |
---|
1200 | read: [0x20024f0]; write: [0x20024dc] |
---|
1201 | 1 init: [0x20023fc]; control: [0x2002448] |
---|
1202 | open: [0x0]; close: [0x0] |
---|
1203 | read: [0x0]; write: [0x0] |
---|
1204 | SHLL [/] $ |
---|
1205 | @end smallexample |
---|
1206 | |
---|
1207 | @subheading CONFIGURATION: |
---|
1208 | |
---|
1209 | @findex CONFIGURE_SHELL_NO_COMMAND_DRIVER |
---|
1210 | @findex CONFIGURE_SHELL_COMMAND_DRIVER |
---|
1211 | |
---|
1212 | This command is included in the default shell command set. |
---|
1213 | When building a custom command set, define |
---|
1214 | @code{CONFIGURE_SHELL_COMMAND_DRIVER} to have this |
---|
1215 | command included. |
---|
1216 | |
---|
1217 | This command can be excluded from the shell command set by |
---|
1218 | defining @code{CONFIGURE_SHELL_NO_COMMAND_DRIVER} when all |
---|
1219 | shell commands have been configured. |
---|
1220 | |
---|
1221 | @subheading PROGRAMMING INFORMATION: |
---|
1222 | |
---|
1223 | @findex rtems_shell_rtems_main_driver |
---|
1224 | |
---|
1225 | The @code{driver} is implemented by a C language function |
---|
1226 | which has the following prototype: |
---|
1227 | |
---|
1228 | @example |
---|
1229 | int rtems_shell_rtems_main_driver( |
---|
1230 | int argc, |
---|
1231 | char **argv |
---|
1232 | ); |
---|
1233 | @end example |
---|
1234 | |
---|
1235 | The configuration structure for the @code{driver} has the |
---|
1236 | following prototype: |
---|
1237 | |
---|
1238 | @example |
---|
1239 | extern rtems_shell_cmd_t rtems_shell_DRIVER_Command; |
---|
1240 | @end example |
---|
1241 | |
---|
1242 | @c |
---|
1243 | @c |
---|
1244 | @c |
---|
1245 | @page |
---|
1246 | @subsection dname - displays information about named drivers |
---|
1247 | |
---|
1248 | @pgindex dname |
---|
1249 | |
---|
1250 | @subheading SYNOPSYS: |
---|
1251 | |
---|
1252 | @example |
---|
1253 | dname |
---|
1254 | @end example |
---|
1255 | |
---|
1256 | @subheading DESCRIPTION: |
---|
1257 | |
---|
1258 | This command XXX |
---|
1259 | |
---|
1260 | WARNING! XXX This command does not appear to work as of 27 February 2008. |
---|
1261 | |
---|
1262 | @subheading EXIT STATUS: |
---|
1263 | |
---|
1264 | This command returns 0 on success and non-zero if an error is encountered. |
---|
1265 | |
---|
1266 | @subheading NOTES: |
---|
1267 | |
---|
1268 | NONE |
---|
1269 | |
---|
1270 | @subheading EXAMPLES: |
---|
1271 | |
---|
1272 | The following is an example of how to use @code{dname}: |
---|
1273 | |
---|
1274 | @example |
---|
1275 | EXAMPLE_TBD |
---|
1276 | @end example |
---|
1277 | |
---|
1278 | @subheading CONFIGURATION: |
---|
1279 | |
---|
1280 | @findex CONFIGURE_SHELL_NO_COMMAND_DNAME |
---|
1281 | @findex CONFIGURE_SHELL_COMMAND_DNAME |
---|
1282 | |
---|
1283 | This command is included in the default shell command set. |
---|
1284 | When building a custom command set, define |
---|
1285 | @code{CONFIGURE_SHELL_COMMAND_DNAME} to have this |
---|
1286 | command included. |
---|
1287 | |
---|
1288 | This command can be excluded from the shell command set by |
---|
1289 | defining @code{CONFIGURE_SHELL_NO_COMMAND_DNAME} when all |
---|
1290 | shell commands have been configured. |
---|
1291 | |
---|
1292 | @subheading PROGRAMMING INFORMATION: |
---|
1293 | |
---|
1294 | @findex rtems_shell_rtems_main_dname |
---|
1295 | |
---|
1296 | The @code{dname} is implemented by a C language function |
---|
1297 | which has the following prototype: |
---|
1298 | |
---|
1299 | @example |
---|
1300 | int rtems_shell_rtems_main_dname( |
---|
1301 | int argc, |
---|
1302 | char **argv |
---|
1303 | ); |
---|
1304 | @end example |
---|
1305 | |
---|
1306 | The configuration structure for the @code{dname} has the |
---|
1307 | following prototype: |
---|
1308 | |
---|
1309 | @example |
---|
1310 | extern rtems_shell_cmd_t rtems_shell_DNAME_Command; |
---|
1311 | @end example |
---|
1312 | |
---|
1313 | @c |
---|
1314 | @c |
---|
1315 | @c |
---|
1316 | @page |
---|
1317 | @subsection pthread - display information about POSIX threads |
---|
1318 | |
---|
1319 | @pgindex pthread |
---|
1320 | |
---|
1321 | @subheading SYNOPSYS: |
---|
1322 | |
---|
1323 | @example |
---|
1324 | pthread [id [id ...] ] |
---|
1325 | @end example |
---|
1326 | |
---|
1327 | @subheading DESCRIPTION: |
---|
1328 | |
---|
1329 | When invoked with no arguments, this command prints information on |
---|
1330 | the set of POSIX API threads currently active in the system. |
---|
1331 | |
---|
1332 | If invoked with a set of ids as arguments, then just |
---|
1333 | those objects are included in the information printed. |
---|
1334 | |
---|
1335 | @subheading EXIT STATUS: |
---|
1336 | |
---|
1337 | This command returns 0 on success and non-zero if an error is encountered. |
---|
1338 | |
---|
1339 | @subheading NOTES: |
---|
1340 | |
---|
1341 | This command is only available when the POSIX API is configured. |
---|
1342 | |
---|
1343 | @subheading EXAMPLES: |
---|
1344 | |
---|
1345 | The following is an example of how to use the @code{task} on an |
---|
1346 | application with four POSIX threads: |
---|
1347 | |
---|
1348 | @smallexample |
---|
1349 | SHLL [/] $ pthread |
---|
1350 | ID NAME PRI STATE MODES EVENTS WAITID WAITARG NOTES |
---|
1351 | ------------------------------------------------------------------------------ |
---|
1352 | 0b010002 Main 133 READY P:T:nA NONE 43010001 0x7b1148 |
---|
1353 | 0b010003 ISR 133 Wcvar P:T:nA NONE 43010003 0x7b1148 |
---|
1354 | 0b01000c 133 READY P:T:nA NONE 33010002 0x7b1148 |
---|
1355 | 0b01000d 133 Wmutex P:T:nA NONE 33010002 0x7b1148 |
---|
1356 | |
---|
1357 | @end smallexample |
---|
1358 | |
---|
1359 | @subheading CONFIGURATION: |
---|
1360 | |
---|
1361 | This command is part of the monitor commands which are always |
---|
1362 | available in the shell. |
---|
1363 | |
---|
1364 | @subheading PROGRAMMING INFORMATION: |
---|
1365 | |
---|
1366 | This command is not directly available for invocation. |
---|
1367 | |
---|