Subversion Repositories HelenOS-historic

Rev

Rev 1060 | Rev 1196 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1060 Rev 1072
Line 300... Line 300...
300
    .func = cmd_zone,
300
    .func = cmd_zone,
301
    .argc = 1,
301
    .argc = 1,
302
    .argv = &zone_argv
302
    .argv = &zone_argv
303
};
303
};
304
 
304
 
305
static int cmd_hello(cmd_arg_t *argv);
-
 
306
static cmd_info_t hello_info = {
-
 
307
    .name = "hello",
-
 
308
    .description = "Hello Message",
-
 
309
    .func = cmd_hello,
-
 
310
    .argc = 0
-
 
311
};
-
 
312
 
-
 
313
/** Data and methods for 'cpus' command. */
305
/** Data and methods for 'cpus' command. */
314
static int cmd_cpus(cmd_arg_t *argv);
306
static int cmd_cpus(cmd_arg_t *argv);
315
cmd_info_t cpus_info = {
307
cmd_info_t cpus_info = {
316
    .name = "cpus",
308
    .name = "cpus",
317
    .description = "List all processors.",
309
    .description = "List all processors.",
Line 350... Line 342...
350
    &tasks_info,
342
    &tasks_info,
351
    &tlb_info,
343
    &tlb_info,
352
    &version_info,
344
    &version_info,
353
    &zones_info,
345
    &zones_info,
354
    &zone_info,
346
    &zone_info,
355
    &hello_info,
-
 
356
    NULL
347
    NULL
357
};
348
};
358
 
349
 
359
 
350
 
360
/** Initialize command info structure.
351
/** Initialize command info structure.
Line 703... Line 694...
703
int cmd_version(cmd_arg_t *argv)
694
int cmd_version(cmd_arg_t *argv)
704
{
695
{
705
    version_print();
696
    version_print();
706
    return 1;
697
    return 1;
707
}
698
}
708
 
-
 
709
 
-
 
710
int cmd_hello(cmd_arg_t *argv)
-
 
711
{
-
 
712
    printf("\nHello, World !!!\n");
-
 
713
    return 1;
-
 
714
}
-