Kintsugi OS 0.5.0
x86 Monolithic OS
Loading...
Searching...
No Matches
commands_system.c File Reference
#include "../drivers/lowlevel_io.h"
#include "../drivers/terminal.h"
#include "../kklibc/kklibc.h"
#include "shell.h"

Functions

static int clear (int argc, char **argv)
 
static int reboot_system (int argc, char **argv)
 
static int shutdown (int argc, char **argv)
 
static int halt (int argc, char **argv)
 
static int sleep_command (int argc, char **argv)
 

Variables

const shell_command_t shell_system_commands []
 

Function Documentation

◆ clear()

static int clear ( int  argc,
char **  argv 
)
static

◆ halt()

static int halt ( int  argc,
char **  argv 
)
static

◆ reboot_system()

static int reboot_system ( int  argc,
char **  argv 
)
static

◆ shutdown()

static int shutdown ( int  argc,
char **  argv 
)
static

◆ sleep_command()

static int sleep_command ( int  argc,
char **  argv 
)
static

Variable Documentation

◆ shell_system_commands

const shell_command_t shell_system_commands[]
Initial value:
= {
{ "clear", "system", "clear", "Clear terminal", clear },
{ "reboot", "system", "reboot", "Reboot machine", reboot_system },
{ "qemushutdown", "system", "qemushutdown", "Shutdown QEMU", shutdown },
{ "end", "system", "end", "Halt CPU", halt },
{ "sleep", "system", "sleep <ms>", "Wait milliseconds", sleep_command },
{ 0 }
}
static int shutdown(int argc, char **argv)
Definition commands_system.c:24
static int clear(int argc, char **argv)
Definition commands_system.c:6
static int halt(int argc, char **argv)
Definition commands_system.c:33
static int sleep_command(int argc, char **argv)
Definition commands_system.c:45
static int reboot_system(int argc, char **argv)
Definition commands_system.c:15