Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 776 → Rev 777

/kernel/trunk/generic/src/console/cmd.c
52,6 → 52,7
#include <main/version.h>
#include <mm/slab.h>
#include <proc/scheduler.h>
#include <proc/thread.h>
 
/** Data and methods for 'help' command. */
static int cmd_help(cmd_arg_t *argv);
244,7 → 245,15
.argv = NULL
};
 
static int cmd_threads(cmd_arg_t *argv);
static cmd_info_t threads_info = {
.name = "threads",
.description = "List all threads",
.func = cmd_threads,
.argc = 0
};
 
 
static int cmd_sched(cmd_arg_t *argv);
static cmd_info_t sched_info = {
.name = "scheduler",
320,6 → 329,7
&slabs_info,
&symaddr_info,
&sched_info,
&threads_info,
&tlb_info,
&version_info,
&zones_info,
597,6 → 607,7
return 1;
}
 
 
/** Command for listings Thread information
*
* @param argv Ignores
603,6 → 614,17
*
* @return Always 1
*/
int cmd_threads(cmd_arg_t * argv) {
thread_print_list();
return 1;
}
 
/** Command for listings Thread information
*
* @param argv Ignores
*
* @return Always 1
*/
int cmd_sched(cmd_arg_t * argv) {
sched_print_list();
return 1;