AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
module.c
Go to the documentation of this file.
1
7
8#include <core/system.h>
9#include <core/module.h>
10
11/* A module's init function. */
12typedef void (*__ctor)(void);
13
15
21int modules_init(void)
22{
23 printk("kernel: loading builtin modules\n");
24
25 for (__ctor *f = __minit; f < __minit_end; ++f) {
26 if (*f)
27 (*f)();
28 }
29
30 return 0;
31}
void(*) __ctor(void)
Definition module.c:12
__ctor __minit_end[]
Definition module.c:14
int modules_init(void)
Runs the init function of every built-in module, at boot.
Definition module.c:21
__ctor __minit[]
int printk(const char *fmt,...)
Writes a kernel message, to the message buffer and the consoles.
Definition printk.c:249