StuBS
Multiboot::Module Class Reference

Boot Module (also known as initrd = initial Ramdisk) More...

#include <data.h>

Public Member Functions

void * getStartAddress () const
 Get start of this boot module. More...
 
void * getEndAddress () const
 Get end of this boot module. More...
 
size_t getSize () const
 Get the size of this boot module. More...
 
char * getCommandLine () const
 Get the command line for this module. More...
 

Private Attributes

uint32_t start
 Start address.
 
uint32_t end
 End address (excluded)
 
uint32_t cmdline
 commandline parameter
 
uint32_t pad UNUSED_STRUCT_FIELD
 alignment; must be 0
 

Detailed Description

Boot Module (also known as initrd = initial Ramdisk)

See also
[1.7 Boot modules]{Multiboot Specification (version 0.6.96)}
[3.3 Boot information format]{Multiboot Specification (version 0.6.96)}

Member Function Documentation

◆ getCommandLine()

char* Multiboot::Module::getCommandLine ( ) const
inline

Get the command line for this module.

Returns
pointer to zero terminated string

◆ getEndAddress()

void* Multiboot::Module::getEndAddress ( ) const
inline

Get end of this boot module.

Returns
Pointer beyond the modules physical address

◆ getSize()

size_t Multiboot::Module::getSize ( ) const
inline

Get the size of this boot module.

Returns
Module size in bytes (difference of end and start address)

◆ getStartAddress()

void* Multiboot::Module::getStartAddress ( ) const
inline

Get start of this boot module.

Returns
Pointer to begin of modules physical address

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