MOS Source Code
Loading...
Searching...
No Matches
kmain.cpp File Reference
+ Include dependency graph for kmain.cpp:

Go to the source code of this file.

Functions

static bool init_sysfs_argv (sysfs_file_t *file)
 
 SYSFS_AUTOREGISTER (kernel, kernel_sysfs_items)
 
 MOS_SETUP ("init", setup_init_path)
 
 MOS_SETUP ("init_args", setup_init_args)
 
void mos_start_kernel (void)
 

Variables

static MMContext mos_kernel_mm
 
struct { 
 
   size_t   argc = 0 
 
   const char **   argv = nullptr 
 
init_args 
 
static sysfs_item_t kernel_sysfs_items []
 

Function Documentation

◆ init_sysfs_argv()

static bool init_sysfs_argv ( sysfs_file_t * file)
static

Definition at line 37 of file kmain.cpp.

+ Here is the call graph for this function:

◆ SYSFS_AUTOREGISTER()

SYSFS_AUTOREGISTER ( kernel ,
kernel_sysfs_items  )

◆ MOS_SETUP() [1/2]

MOS_SETUP ( "init" ,
setup_init_path  )

Definition at line 68 of file kmain.cpp.

+ Here is the call graph for this function:

◆ MOS_SETUP() [2/2]

MOS_SETUP ( "init_args" ,
setup_init_args  )

Definition at line 83 of file kmain.cpp.

+ Here is the call graph for this function:

◆ mos_start_kernel()

void mos_start_kernel ( void )

Definition at line 92 of file kmain.cpp.

Referenced by limine_entry().

+ Here is the call graph for this function:

Variable Documentation

◆ mos_kernel_mm

MMContext mos_kernel_mm
static

Definition at line 29 of file kmain.cpp.

Referenced by mos_start_kernel().

◆ argc

◆ argv

◆ [struct]

struct { ... } init_args

◆ kernel_sysfs_items

sysfs_item_t kernel_sysfs_items[]
static
Initial value:
= {
SYSFS_RO_ITEM("arch", kernel_sysfs_arch),
SYSFS_RO_ITEM("build_date", kernel_sysfs_build_date),
SYSFS_RO_ITEM("build_time", kernel_sysfs_build_time),
SYSFS_RO_ITEM("compiler", kernel_sysfs_compiler),
SYSFS_RO_ITEM("init_path", init_sysfs_path),
SYSFS_RO_ITEM("initrd", initrd_sysfs_info),
SYSFS_RO_ITEM("revision", kernel_sysfs_revision),
SYSFS_RO_ITEM("version", kernel_sysfs_version),
}
static bool init_sysfs_argv(sysfs_file_t *file)
Definition kmain.cpp:37
#define SYSFS_RO_ITEM(_name, _show_fn)
Definition sysfs.hpp:42

Definition at line 54 of file kmain.cpp.

Referenced by SYSFS_AUTOREGISTER().