Changeset c4e4507 in mainline for generic/src/console/cmd.c


Ignore:
Timestamp:
2006-06-04T17:17:29Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2cb5e64
Parents:
fe19611
Message:

Renamed some things in IPC to be consistent.
Added ipc reporting to kconsole.

File:
1 edited

Legend:

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

    rfe19611 rc4e4507  
    5959#include <proc/thread.h>
    6060#include <proc/task.h>
     61#include <ipc/ipc.h>
    6162
    6263/** Data and methods for 'help' command. */
     
    301302};
    302303
     304/** Data and methods for 'ipc_task' command */
     305static int cmd_ipc_task(cmd_arg_t *argv);
     306static cmd_arg_t ipc_task_argv = {
     307        .type = ARG_TYPE_INT,
     308};
     309static cmd_info_t ipc_task_info = {
     310        .name = "ipc_task",
     311        .description = "Show memory zone structure.",
     312        .func = cmd_ipc_task,
     313        .argc = 1,
     314        .argv = &ipc_task_argv
     315};
     316
    303317/** Data and methods for 'zone' command */
    304318static int cmd_zone(cmd_arg_t *argv);
     
    348362        &halt_info,
    349363        &help_info,
     364        &ipc_task_info,
    350365        &set4_info,
    351366        &slabs_info,
     
    687702}
    688703
     704/** Command for printing task ipc details
     705 *
     706 * @param argv Integer argument from cmdline expected
     707 *
     708 * return Always 1
     709 */
     710int cmd_ipc_task(cmd_arg_t * argv) {
     711        ipc_print_task(argv[0].intval);
     712        return 1;
     713}
     714
     715
    689716/** Command for listing processors.
    690717 *
Note: See TracChangeset for help on using the changeset viewer.