2021-05-31 04:47:02 +03:00
|
|
|
#include <kernel/printf.h>
|
2021-07-17 12:55:54 +03:00
|
|
|
#include <kernel/module.h>
|
2021-05-31 04:47:02 +03:00
|
|
|
|
|
|
|
static int init(int argc, char * argv[]) {
|
2021-07-17 12:55:54 +03:00
|
|
|
printf("Hello, modules.\n");
|
2021-05-31 04:47:02 +03:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int fini(void) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-07-17 12:55:54 +03:00
|
|
|
struct Module metadata = {
|
2021-05-31 04:47:02 +03:00
|
|
|
.name = "test",
|
|
|
|
.init = init,
|
|
|
|
.fini = fini,
|
|
|
|
};
|
|
|
|
|