Changeset 37c57f2 in mainline for generic/src/console/cmd.c


Ignore:
Timestamp:
2006-03-16T20:56:22Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ff14c520
Parents:
6a22fcb
Message:

Added task_print.
Fixed ipc to support connect_me_to.

File:
1 edited

Legend:

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

    r6a22fcb r37c57f2  
    5454#include <proc/scheduler.h>
    5555#include <proc/thread.h>
     56#include <proc/task.h>
    5657
    5758/** Data and methods for 'help' command. */
     
    254255};
    255256
     257static int cmd_tasks(cmd_arg_t *argv);
     258static cmd_info_t tasks_info = {
     259        .name = "tasks",
     260        .description = "List all tasks",
     261        .func = cmd_tasks,
     262        .argc = 0
     263};
     264
    256265
    257266static int cmd_sched(cmd_arg_t *argv);
     
    339348        &sched_info,
    340349        &threads_info,
     350        &tasks_info,
    341351        &tlb_info,
    342352        &version_info,
     
    629639}
    630640
     641/** Command for listings Task information
     642 *
     643 * @param argv Ignores
     644 *
     645 * @return Always 1
     646 */
     647int cmd_tasks(cmd_arg_t * argv) {
     648        task_print_list();
     649        return 1;
     650}
     651
    631652/** Command for listings Thread information
    632653 *
Note: See TracChangeset for help on using the changeset viewer.