RTEMS  5.1
Data Structures | Macros | Functions
mon-command.c File Reference

Command support routines for RTEMS monitor. More...

#include <string.h>
#include <stdio.h>
#include <rtems.h>
#include <rtems/monitor.h>

Data Structures

struct  rtems_monitor_command_lookup_entry
 

Macros

#define MAX_HELP_LINE_LENGTH   (75 - max_cmd_len - 2)
 

Functions

void rtems_monitor_command_usage (const rtems_monitor_command_entry_t *table, const char *command_name)
 
void rtems_monitor_help_cmd (int argc, char **argv, const rtems_monitor_command_arg_t *command_arg, bool verbose RTEMS_UNUSED)
 
const rtems_monitor_command_entry_trtems_monitor_command_lookup (const char *name)
 Looks for a command with the name name in the list of registered commands. More...
 

Detailed Description

Command support routines for RTEMS monitor.

Function Documentation

◆ rtems_monitor_command_lookup()

const rtems_monitor_command_entry_t* rtems_monitor_command_lookup ( const char *  name)

Looks for a command with the name name in the list of registered commands.

The parameter name must not be NULL.

Returns the corresponding command entry or NULL if no command is found.