StuBS
Multiboot::Module Class Reference

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

#include <boot/multiboot/data.h>

Public Member Functions

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

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
3.3 Boot information format

Member Function Documentation

◆ getStartAddress()

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

Get start of this boot module.

Returns
Pointer to begin of modules physical address

◆ 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)

◆ getCommandLine()

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

Get the command line for this module.

Returns
pointer to zero terminated string

Member Data Documentation

◆ start

uint32_t Multiboot::Module::start
private

Start address.

◆ end

uint32_t Multiboot::Module::end
private

End address (excluded).

◆ cmdline

uint32_t Multiboot::Module::cmdline
private

commandline parameter

◆ UNUSED_STRUCT_FIELD

uint32_t pad Multiboot::Module::UNUSED_STRUCT_FIELD
private

alignment; must be 0


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