Xyris  0.5
Arguments.hpp File Reference
+ Include dependency graph for Arguments.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Boot::argument
 

Namespaces

 Boot
 

Macros

#define MAX_ARGUMENT_LEN   32
 
#define KERNEL_PARAM(name, arg, callback)
 
#define ARGUMENTS_START   ((uintptr_t)&_ARGUMENTS_START)
 
#define ARGUMENTS_END   ((uintptr_t)&_ARGUMENTS_END)
 

Typedefs

typedef void(* Boot::cmdline_cb_t) (const char *arg)
 

Functions

void Boot::parseCommandLine (char *cmdline)
 

Variables

struct Boot::argument _ARGUMENTS_START [0]
 
struct Boot::argument _ARGUMENTS_END [0]
 

Detailed Description

Kernel command argument parsing.

Author
Keeton Feavel (keeto.nosp@m.nfea.nosp@m.vel@c.nosp@m.edar.nosp@m.ville.nosp@m..edu)
Version
0.1
Date
2021-08-10

Definition in file Arguments.hpp.

Macro Definition Documentation

◆ ARGUMENTS_END

#define ARGUMENTS_END   ((uintptr_t)&_ARGUMENTS_END)

Definition at line 40 of file Arguments.hpp.

◆ ARGUMENTS_START

#define ARGUMENTS_START   ((uintptr_t)&_ARGUMENTS_START)

Definition at line 38 of file Arguments.hpp.

◆ KERNEL_PARAM

#define KERNEL_PARAM (   name,
  arg,
  callback 
)
Value:
[[gnu::section(".arguments")]] struct Boot::argument __##name##_arg = \

Definition at line 15 of file Arguments.hpp.

◆ MAX_ARGUMENT_LEN

#define MAX_ARGUMENT_LEN   32

Definition at line 14 of file Arguments.hpp.

Variable Documentation

◆ _ARGUMENTS_END

struct Boot::argument _ARGUMENTS_END[0]

◆ _ARGUMENTS_START

struct Boot::argument _ARGUMENTS_START[0]
Boot::argument
Definition: Arguments.hpp:22
Boot::argument::arg
char arg[MAX_ARGUMENT_LEN]
Definition: Arguments.hpp:23
Boot::argument::callback
cmdline_cb_t callback
Definition: Arguments.hpp:24