[Tinyx-devel] [PATCH 03/33] TINYX: Introduce include/tinyx/module.h
Status: Planning
Brought to you by:
davidcohen
From: Felipe B. <me...@fe...> - 2007-12-12 14:59:57
|
This will hold module_init and other definitions directly related to modules. Signed-off-by: Felipe Balbi <me...@fe...> --- include/tinyx/module.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 include/tinyx/module.h diff --git a/include/tinyx/module.h b/include/tinyx/module.h new file mode 100644 index 0000000..0ff90db --- /dev/null +++ b/include/tinyx/module.h @@ -0,0 +1,8 @@ +#ifndef __TINYX_MODULE_H +#define __TINYX_MODULE_H + +#define module_init(fn) \ + static initcall_t __initcall_##fn __attribute__ ((section ("function_ptrs"))) = fn + +#endif /* __TINYX_MODULE_H */ + -- 1.5.3.7.1157.gbf82a |