EE445M RTOS
Taken at the University of Texas Spring 2015
system.c File Reference
#include "system.h"
#include <stdbool.h>
#include <stdlib.h>
#include "libut/utlist.h"
#include "libstd/nexus.h"
Include dependency graph for system.c:

Go to the source code of this file.

Functions

void system_init ()
 
bool system_register_command (const char *command_name, int(*command)())
 
bool system_deregister_command (const char *command_name)
 
system_command_system_command_from_name (const char *command_name)
 
exit_status_t system_exec (const char *command, const char **arguments)
 

Variables

static system_command SYSTEM_COMMANDS [16]
 
system_commandregistered_commands = NULL
 
system_commandunregistered_commands = NULL
 

Variable Documentation

system_command* registered_commands = NULL

Circular doubly-linked list containing all registered commands.

Definition at line 14 of file system.c.

system_command SYSTEM_COMMANDS[16]
static

Statically allocated space for all system commands to reside.

Definition at line 11 of file system.c.

system_command* unregistered_commands = NULL

Circular doubly-linked list containing all unregistered commands.

Definition at line 17 of file system.c.

Referenced by system_register_command().