My Kernel v0.1.0

Executable parameters. More...

#include <execfmt.h>

Data Fields

char *const * argv
 
size_t argc
 
char *const * envp
 
size_t envpc
 

Detailed Description

These parameters are pushed onto the stack to be passed as arguments to the executable's entrypoint function (main).

The argument strings must be concatenated and separated with a NULL byte inside the argv buffer. This is also the case for envp.

Field Documentation

◆ argc

size_t exec_params::argc

Total size of the @argv buffer

◆ argv

char* const* exec_params::argv

Contains the string array of arguments

◆ envp

char* const* exec_params::envp

Contains the environnement variables

◆ envpc

size_t exec_params::envpc

Total size of the @envp buffer


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