AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
module.c File Reference

The built-in modules: the drivers and filesystems that are part of the kernel. More...

#include <core/system.h>
#include <core/module.h>

Go to the source code of this file.

Typedefs

typedef void(*) __ctor(void)

Functions

int modules_init (void)
 Runs the init function of every built-in module, at boot.

Variables

__ctor __minit []
__ctor __minit_end []

Detailed Description

The built-in modules: the drivers and filesystems that are part of the kernel.

Each declares an init function with MODULE_INIT(), which the linker gathers in the __minit section, and they run at boot, in link order.

Definition in file module.c.

Typedef Documentation

◆ __ctor

typedef void(*) __ctor(void)

Definition at line 12 of file module.c.

Function Documentation

◆ modules_init()

int modules_init ( void )

Runs the init function of every built-in module, at boot.

Returns
0

Definition at line 21 of file module.c.

References __minit, __minit_end, modules_init(), and printk().

Referenced by kmain(), and modules_init().

Variable Documentation

◆ __minit

__ctor __minit[]
extern

Referenced by modules_init().

◆ __minit_end

__ctor __minit_end[]

Definition at line 14 of file module.c.

Referenced by modules_init().