|
Definition at line 47 of file console.c. Referenced by null_putchar(). |
|
Definition at line 43 of file chardev.h. Referenced by _getc(), and chardev_push_character(). |
|
Definition at line 43 of file kconsole.h. Referenced by kconsole_init(). |
|
Definition at line 42 of file kconsole.h. Referenced by clever_readline(). |
|
|
|
Definition at line 45 of file kconsole.h. |
|
Get character from character device. Do not echo character.
Definition at line 79 of file console.c. References atomic_get(), chardev::buffer, CHARDEV_BUFLEN, chardev::counter, CPU, cpu_halt(), haltstate, chardev::index, interrupts_disable(), interrupts_restore(), chardev::op, printf(), chardev_operations::read, chardev_operations::resume, spinlock_lock, spinlock_unlock(), waitq_sleep, and chardev::wq. Referenced by clever_readline(), code_execute(), getc(), and gets(). Here is the call graph for this function: ![]() |
|
Acquire console back for kernel Definition at line 146 of file ia32.c. References i8042_grab(). Referenced by sys_debug_enable_console(). Here is the call graph for this function: ![]() |
|
Return console to userspace Definition at line 153 of file ia32.c. References i8042_release(). Referenced by cmd_continue(). Here is the call graph for this function: ![]() |
|
Initialize character device.
Definition at line 45 of file chardev.c. References chardev::counter, chardev::index, chardev::name, chardev::op, spinlock_initialize(), waitq_initialize(), and chardev::wq. Referenced by ega_init(), fb_init(), and i8042_init(). Here is the call graph for this function: ![]() |
|
Push character read from input character device.
Definition at line 62 of file chardev.c. References chardev::buffer, CHARDEV_BUFLEN, chardev::counter, chardev::index, chardev::op, spinlock_lock, spinlock_unlock(), chardev_operations::suspend, waitq_wakeup(), WAKEUP_FIRST, and chardev::wq. Referenced by key_pressed(). Here is the call graph for this function: ![]() |
|
Definition at line 243 of file kconsole.c. References _getc(), cmdtab_compl(), history, insert_char(), MAX_CMDLINE, position, printf(), putchar(), rdln_print_c(), strlen(), strncpy(), and symtab_compl(). Referenced by kconsole(). Here is the call graph for this function: ![]() |
|
Call function with zero parameters Definition at line 480 of file cmd.c. References cmd_arg::buffer, cmd_call2(), f, get_symbol_addr(), get_symtab_entry(), printf(), and symtab_print_search(). Here is the call graph for this function: ![]() |
|
Call function with one parameter Definition at line 515 of file cmd.c. References cmd_arg::buffer, cmd_call2(), f, get_symbol_addr(), get_symtab_entry(), cmd_arg::intval, printf(), and symtab_print_search(). Here is the call graph for this function: ![]() |
|
Call function with two parameters Definition at line 552 of file cmd.c. References cmd_arg::buffer, f, get_symbol_addr(), get_symtab_entry(), cmd_arg::intval, printf(), and symtab_print_search(). Referenced by cmd_call0(), cmd_call1(), and cmd_call3(). Here is the call graph for this function: ![]() |
|
Call function with three parameters Definition at line 590 of file cmd.c. References cmd_arg::buffer, cmd_call2(), f, get_symbol_addr(), get_symtab_entry(), cmd_arg::intval, printf(), and symtab_print_search(). Here is the call graph for this function: ![]() |
|
Command for returning console back to userspace.
Definition at line 800 of file cmd.c. References arch_release_console(), IPC_IRQ_KBDRESTART, ipc_irq_send_msg(), and printf(). Here is the call graph for this function: ![]() |
|
Command for listing processors.
Definition at line 776 of file cmd.c. References cpu_list(). Here is the call graph for this function: ![]() |
|
Describe specified command.
Definition at line 443 of file cmd.c. References cmd_arg::buffer, cmd_head, cmd_lock, cmd_info::description, cmd_info::help, list_get_instance, cmd_info::name, link::next, printf(), spinlock_lock, spinlock_unlock(), strlen(), and strncmp(). Here is the call graph for this function: ![]() |
|
Halt the kernel.
Definition at line 641 of file cmd.c. References halt(). Here is the call graph for this function: ![]() |
|
List supported commands.
Definition at line 415 of file cmd.c. References cmd_head, cmd_lock, cmd_info::description, list_get_instance, cmd_info::name, link::next, printf(), spinlock_lock, and spinlock_unlock(). Here is the call graph for this function: ![]() |
|
Initialize and register commands. Definition at line 396 of file cmd.c. References basic_commands, cmd_initialize(), cmd_register(), name, and panic. Referenced by kconsole_init(). Here is the call graph for this function: ![]() |
|
Initialize command info structure.
Definition at line 389 of file cmd.c. References cmd_info::link, link_initialize(), and spinlock_initialize(). Referenced by cmd_init(), exc_init(), and frame_arch_init(). Here is the call graph for this function: ![]() |
|
Command for printing task ipc details
Definition at line 764 of file cmd.c. References ipc_print_task(). Here is the call graph for this function: ![]() |
|
Register kconsole command.
Definition at line 103 of file kconsole.c. References cmd_head, cmd_lock, cmd_info::link, list_append(), list_get_instance, max, cmd_info::name, link::next, spinlock_lock, spinlock_unlock(), strlen(), and strncmp(). Referenced by cmd_init(), exc_init(), and frame_arch_init(). Here is the call graph for this function: ![]() |
|
Command for listings Thread information
Definition at line 731 of file cmd.c. References sched_print_list(). Here is the call graph for this function: ![]() |
|
Write 4 byte value to address Definition at line 660 of file cmd.c. References atoi(), cmd_arg::buffer, get_symbol_addr(), cmd_arg::intval, printf(), and symtab_print_search(). Here is the call graph for this function: ![]() |
|
Command for listings SLAB caches
Definition at line 697 of file cmd.c. References slab_print_list(). Here is the call graph for this function: ![]() |
|
Search symbol table Definition at line 472 of file cmd.c. References cmd_arg::buffer, and symtab_print_search(). Here is the call graph for this function: ![]() |
|
Command for listings Task information
Definition at line 720 of file cmd.c. References task_print_list(). Here is the call graph for this function: ![]() |
|
Command for listings Thread information
Definition at line 709 of file cmd.c. References thread_print_list(). Here is the call graph for this function: ![]() |
|
Command for printing TLB contents.
Definition at line 653 of file cmd.c. References tlb_print. |
|
Command for printing kernel version.
Definition at line 788 of file cmd.c. References version_print(). Here is the call graph for this function: ![]() |
|
Command for memory zone details
Definition at line 753 of file cmd.c. References zone_print_one(). Here is the call graph for this function: ![]() |
|
Command for listing memory zones
Definition at line 742 of file cmd.c. References zone_print_list(). Here is the call graph for this function: ![]() |
|
Command completion of the commands
Definition at line 205 of file kconsole.c. References cmdtab_search_one(), list_get_instance, MAX_SYMBOL_NAME, link::next, NULL, printf(), strlen(), and strncpy(). Referenced by clever_readline(). Here is the call graph for this function: ![]() |
|
Try to find a command beginning with prefix Definition at line 173 of file kconsole.c. References cmd_head, cmd_lock, list_get_instance, link::next, spinlock_lock, spinlock_unlock(), strlen(), and strncmp(). Referenced by cmdtab_compl(). Here is the call graph for this function: ![]() |
|
Print detailed description of 'describe' command. Definition at line 630 of file cmd.c. References printf(). Here is the call graph for this function: ![]() |
|
Get character from device & echo it to screen Definition at line 153 of file console.c. References _getc(), and putchar(). Referenced by exc_print_cmd(). Here is the call graph for this function: ![]() |
|
Get string from character device. Read characters from character device until first occurrence of newline character.
Definition at line 124 of file console.c. References _getc(), and putchar(). Here is the call graph for this function: ![]() |
|
Insert character to string Definition at line 163 of file kconsole.c. References strlen(). Referenced by clever_readline(). Here is the call graph for this function: ![]() |
|
Kernel console managing thread.
Definition at line 408 of file kconsole.c. References cmd_info::argv, clever_readline(), cmd_info::func, min, cmd_info::name, parse_cmdline(), printf(), stdin, strlen(), and strncmp(). Referenced by halt(). Here is the call graph for this function: ![]() |
|
Initialize kconsole data structures. Definition at line 87 of file kconsole.c. References cmd_init(), history, and KCONSOLE_HISTORY. Referenced by main_bsp_separated_stack(). Here is the call graph for this function: ![]() |
|
Command list. |
|
Initialize stdout to something that does not print, but does not fail Save data in some buffer so that it could be retrieved in the debugger Definition at line 54 of file console.c. References BUFLEN, debug_buffer, and offset. |
|
Parse argument. Find start and end positions of command line argument.
Definition at line 605 of file kconsole.c. References ASSERT, is_white, and NULL. Referenced by parse_cmdline(). |
|
Parse command line.
Definition at line 483 of file kconsole.c. References cmd_info::argc, cmd_head, cmd_lock, list_get_instance, max, cmd_info::name, link::next, NULL, parse_argument(), printf(), spinlock_lock, spinlock_unlock(), strlen(), and strncmp(). Referenced by kconsole(). Here is the call graph for this function: ![]() |
|
Definition at line 434 of file kconsole.c. References atoi(), get_symbol_addr(), MAX_SYMBOL_NAME, min, printf(), strncpy(), and symtab_print_search(). Here is the call graph for this function: ![]() |
|
Definition at line 162 of file console.c. References chardev::op, stdout, and chardev_operations::write. Referenced by clever_readline(), ct_io_intr_entry(), ct_l_intr_entry(), ega_init(), getc(), gets(), rdln_print_c(), sys_io(), and vprintf_write(). |
|
Print count times a character Definition at line 155 of file kconsole.c. References putchar(). Referenced by clever_readline(). Here is the call graph for this function: ![]() |
|
Locking. There is a list of cmd_info_t structures. This list is protected by cmd_lock spinlock. Note that specially the link elements of cmd_info_t are protected by this lock. Each cmd_info_t also has its own lock, which protects all elements thereof except the link element. cmd_lock must be acquired before any cmd_info lock. When locking two cmd info structures, structure with lower address must be locked first. Lock protecting command list. |
|
Initial value: { &call0_info, &call1_info, &call2_info, &call3_info, &continue_info, &cpus_info, &desc_info, &exit_info, &halt_info, &help_info, &ipc_task_info, &set4_info, &slabs_info, &symaddr_info, &sched_info, &threads_info, &tasks_info, &tlb_info, &version_info, &zones_info, &zone_info, NULL } Definition at line 358 of file cmd.c. Referenced by cmd_init(). |
|
Initial value: { .type = ARG_TYPE_STRING, .buffer = call0_buf, .len = sizeof(call0_buf) } |
|
|
|
Initial value: { .name = "call0", .description = "call0 <function> -> call function().", .func = cmd_call0, .argc = 1, .argv = &call0_argv } |
|
Initial value: { { .type = ARG_TYPE_STRING, .buffer = call0_buf, .len = sizeof(call0_buf) }, { .type = ARG_TYPE_VAR, .buffer = carg1_buf, .len = sizeof(carg1_buf) } } |
|
Initial value: { .name = "call1", .description = "call1 <function> <arg1> -> call function(arg1).", .func = cmd_call1, .argc = 2, .argv = call1_argv } |
|
Initial value: { { .type = ARG_TYPE_STRING, .buffer = call0_buf, .len = sizeof(call0_buf) }, { .type = ARG_TYPE_VAR, .buffer = carg1_buf, .len = sizeof(carg1_buf) }, { .type = ARG_TYPE_VAR, .buffer = carg2_buf, .len = sizeof(carg2_buf) } } |
|
Initial value: { .name = "call2", .description = "call2 <function> <arg1> <arg2> -> call function(arg1,arg2).", .func = cmd_call2, .argc = 3, .argv = call2_argv } |
|
Initial value: { { .type = ARG_TYPE_STRING, .buffer = call0_buf, .len = sizeof(call0_buf) }, { .type = ARG_TYPE_VAR, .buffer = carg1_buf, .len = sizeof(carg1_buf) }, { .type = ARG_TYPE_VAR, .buffer = carg2_buf, .len = sizeof(carg2_buf) }, { .type = ARG_TYPE_VAR, .buffer = carg3_buf, .len = sizeof(carg3_buf) } } |
|
Initial value: { .name = "call3", .description = "call3 <function> <arg1> <arg2> <arg3> -> call function(arg1,arg2,arg3).", .func = cmd_call3, .argc = 4, .argv = call3_argv } |
|
|
|
|
|
|
|
Referenced by cmd_desc(), cmd_help(), cmd_register(), cmdtab_search_one(), and parse_cmdline(). |
|
Referenced by cmd_desc(), cmd_help(), cmd_register(), cmdtab_search_one(), and parse_cmdline(). |
|
Initial value: { .name = "continue", .description ="Return console back to userspace.", .func = cmd_continue, .argc = 0 } |
|
Initial value: |
|
Definition at line 48 of file console.c. Referenced by null_putchar(). |
|
Initial value: { .type = ARG_TYPE_STRING, .buffer = desc_buf, .len = sizeof(desc_buf) } |
|
|
|
Initial value: |
|
Initial value: { .name = "exit", .description ="Exit kconsole", .argc = 0 } |
|
Initial value: { .name = "halt", .description = "Halt the kernel.", .func = cmd_halt, .argc = 0 } |
|
Initial value: { .name = "help", .description = "List of supported commands.", .func = cmd_help, .argc = 0 } |
|
Definition at line 84 of file kconsole.c. Referenced by clever_readline(), and kconsole_init(). |
|
Initial value: { .type = ARG_TYPE_INT, } |
|
Initial value: { .name = "ipc_task", .description = "ipc_task <taskid> Show IPC information of given task.", .func = cmd_ipc_task, .argc = 1, .argv = &ipc_task_argv } |
|
Initial value: { .name = "null", .op = &null_stdout_ops } |
|
Initial value: { .write = null_putchar } |
|
Definition at line 49 of file console.c. Referenced by null_putchar(). |
|
Initial value: { .name = "scheduler", .description = "List all scheduler information.", .func = cmd_sched, .argc = 0 } |
|
Initial value: { { .type = ARG_TYPE_STRING, .buffer = set_buf, .len = sizeof(set_buf) }, { .type = ARG_TYPE_INT } } |
|
Initial value: |
|
|
|
Initial value: { .name = "slabs", .description = "List slab caches.", .func = cmd_slabs, .argc = 0 } |
|
Standard input character device. Definition at line 70 of file console.c. Referenced by exc_print_cmd(), i8042_init(), and kconsole(). |
|
Standard input character device. Definition at line 70 of file console.c. Referenced by exc_print_cmd(), i8042_init(), and kconsole(). |
|
Definition at line 71 of file console.c. Referenced by ega_init(), fb_init(), and putchar(). |
|
Definition at line 71 of file console.c. Referenced by ega_init(), fb_init(), and putchar(). |
|
Initial value: { .type = ARG_TYPE_STRING, .buffer = symaddr_buf, .len = sizeof(symaddr_buf) } |
|
|
|
Initial value: { .name = "symaddr", .description = "Return symbol address.", .func = cmd_symaddr, .argc = 1, .argv = &symaddr_argv } |
|
Initial value: { .name = "tasks", .description = "List all tasks.", .func = cmd_tasks, .argc = 0 } |
|
Initial value: { .name = "threads", .description = "List all threads.", .func = cmd_threads, .argc = 0 } |
|
Initial value: |
|
Initial value: { .name = "version", .description = "Print version information.", .help = NULL, .func = cmd_version, .argc = 0, .argv = NULL } |
|
Initial value: { .type = ARG_TYPE_INT, } |
|
Initial value: |
|
Initial value: { .name = "zones", .description = "List of memory zones.", .func = cmd_zones, .argc = 0 } |