Changeset 4e147a6 in mainline for generic/src/console/cmd.c
- Timestamp:
- 2006-02-02T01:51:25Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ea8a7ca
- Parents:
- b5e0bb8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/cmd.c
rb5e0bb8 r4e147a6 51 51 #include <mm/frame.h> 52 52 #include <main/version.h> 53 #include <mm/slab.h> 53 54 54 55 /** Data and methods for 'help' command. */ … … 244 245 245 246 247 static int cmd_slabs(cmd_arg_t *argv); 248 static cmd_info_t slabs_info = { 249 .name = "slabs", 250 .description = "List SLAB caches.", 251 .func = cmd_slabs, 252 .argc = 0 253 }; 254 246 255 /** Data and methods for 'zones' command */ 247 256 static int cmd_zones(cmd_arg_t *argv); … … 353 362 if (!cmd_register(&zones_info)) 354 363 panic("could not register command %s\n", zones_info.name); 364 365 cmd_initialize(&slabs_info); 366 if (!cmd_register(&slabs_info)) 367 panic("could not register command %s\n", slabs_info.name); 355 368 356 369 cmd_initialize(&zone_info); … … 604 617 } 605 618 619 /** Command for listings SLAB caches 620 * 621 * @param argv Ignores 622 * 623 * @return Always 1 624 */ 625 int cmd_slabs(cmd_arg_t * argv) { 626 slab_print_list(); 627 return 1; 628 } 629 606 630 /** Command for listing memory zones 607 631 *
Note:
See TracChangeset
for help on using the changeset viewer.