feat added init function
This commit is contained in:
20
include/myke/util/init.h
Normal file
20
include/myke/util/init.h
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by rick on 13-08-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_INIT_H
|
||||
#define NEW_KERNEL_INIT_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <myke/driver.h>
|
||||
|
||||
struct init {
|
||||
const char *name;
|
||||
void (*init)();
|
||||
};
|
||||
|
||||
#define INIT_FUNCTION(order) GENERIC_DRIVER(init, order)
|
||||
|
||||
void init_execute_all();
|
||||
|
||||
#endif //NEW_KERNEL_INIT_H
|
||||
Reference in New Issue
Block a user