Changeset 55ab0f1 in mainline for generic/src/console/cmd.c


Ignore:
Timestamp:
2006-02-04T18:15:13Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04225a7
Parents:
428aabf
Message:

added thread list to kconsole.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/cmd.c

    r428aabf r55ab0f1  
    5353#include <mm/slab.h>
    5454#include <proc/scheduler.h>
     55#include <proc/thread.h>
    5556
    5657/** Data and methods for 'help' command. */
     
    245246};
    246247
     248static int cmd_threads(cmd_arg_t *argv);
     249static cmd_info_t threads_info = {
     250        .name = "threads",
     251        .description = "List all threads",
     252        .func = cmd_threads,
     253        .argc = 0
     254};
     255
    247256
    248257static int cmd_sched(cmd_arg_t *argv);
     
    321330        &symaddr_info,
    322331        &sched_info,
     332        &threads_info,
    323333        &tlb_info,
    324334        &version_info,
     
    598608}
    599609
     610
     611/** Command for listings Thread information
     612 *
     613 * @param argv Ignores
     614 *
     615 * @return Always 1
     616 */
     617int cmd_threads(cmd_arg_t * argv) {
     618        thread_print_list();
     619        return 1;
     620}
     621
    600622/** Command for listings Thread information
    601623 *
Note: See TracChangeset for help on using the changeset viewer.