include/nucleus/module.h

00001 /*
00002  * Copyright (C) 2001,2002,2003 Philippe Gerum <rpm@xenomai.org>.
00003  *
00004  * Xenomai is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published
00006  * by the Free Software Foundation; either version 2 of the License,
00007  * or (at your option) any later version.
00008  *
00009  * Xenomai is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with Xenomai; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA.
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 /* Realloc count */
00027 #define XNMOD_GHOLDER_THRESHOLD 64  /* Safety threshold */
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 /* !CONFIG_XENO_OPT_STATS */
00047 static inline void xnpod_declare_tbase_proc(xntbase_t *base) { }
00048 static inline void xnpod_discard_tbase_proc(xntbase_t *base) { }
00049 #endif /* !CONFIG_XENO_OPT_STATS */
00050 
00051 #endif /* !_XENO_NUCLEUS_MODULE_H */

Generated on Mon Mar 24 18:02:40 2008 for Xenomai API by  doxygen 1.5.3