The Pedigree Project 0.1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
IrqsCommand Class Reference

#include <IrqsCommand.h>

+ Inheritance diagram for IrqsCommand:
+ Collaboration diagram for IrqsCommand:

Public Member Functions

void autocomplete (const HugeStaticString &input, HugeStaticString &output)
 
bool execute (const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
 
const NormalStaticString getString ()
 

Private Attributes

IrqLineDiagnosticSnapshot m_Snapshots [SnapshotCapacity]
 

Static Private Attributes

static constexpr size_t SnapshotCapacity = 256
 

Detailed Description

Displays detached interrupt-line diagnostics in the kernel debugger.

Definition at line 15 of file IrqsCommand.h.

Constructor & Destructor Documentation

◆ IrqsCommand()

IrqsCommand::IrqsCommand ( )

Definition at line 77 of file IrqsCommand.cc.

◆ ~IrqsCommand()

IrqsCommand::~IrqsCommand ( )

Definition at line 79 of file IrqsCommand.cc.

Member Function Documentation

◆ autocomplete()

void IrqsCommand::autocomplete ( const HugeStaticString &  input,
HugeStaticString &  output 
)
virtual

Return an autocomplete string, given an input string. The string put into *output must not exceed len in length.

Implements DebuggerCommand.

Definition at line 81 of file IrqsCommand.cc.

◆ execute()

bool IrqsCommand::execute ( const HugeStaticString &  input,
HugeStaticString &  output,
InterruptState &  state,
DebuggerIO *  screen 
)
virtual

Execute the command with the given screen. The command can take over the screen while executing, but must return it to CLI mode (via enableCLI) before returning.

Returns
True if the debugger should continue accepting commands, false if it should return control to the kernel.

Implements DebuggerCommand.

Definition at line 83 of file IrqsCommand.cc.

References IrqManager::snapshotIrqLines(), and DebuggerIO::writeCli().

◆ getString()

const NormalStaticString IrqsCommand::getString ( )
inlinevirtual

Returns the string representation of this command.

Implements DebuggerCommand.

Definition at line 25 of file IrqsCommand.h.

Member Data Documentation

◆ m_Snapshots

IrqLineDiagnosticSnapshot IrqsCommand::m_Snapshots[SnapshotCapacity]
private

Definition at line 34 of file IrqsCommand.h.

◆ SnapshotCapacity

constexpr size_t IrqsCommand::SnapshotCapacity = 256
staticconstexprprivate

Definition at line 30 of file IrqsCommand.h.


The documentation for this class was generated from the following files: