00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _XENO_NUCLEUS_MODULE_H
00021 #define _XENO_NUCLEUS_MODULE_H
00022
00023 #include <nucleus/queue.h>
00024 #include <nucleus/timebase.h>
00025
00026 #define XNMOD_GHOLDER_REALLOC 128
00027 #define XNMOD_GHOLDER_THRESHOLD 64
00028
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00033 void xnmod_alloc_glinks(xnqueue_t *freehq);
00034
00035 #ifdef __cplusplus
00036 }
00037 #endif
00038
00039 extern xnqueue_t xnmod_glink_queue;
00040
00041 extern u_long xnmod_sysheap_size;
00042
00043 #ifdef CONFIG_XENO_OPT_STATS
00044 void xnpod_declare_tbase_proc(xntbase_t *base);
00045 void xnpod_discard_tbase_proc(xntbase_t *base);
00046 #else
00047 static inline void xnpod_declare_tbase_proc(xntbase_t *base) { }
00048 static inline void xnpod_discard_tbase_proc(xntbase_t *base) { }
00049 #endif
00050
00051 #endif