gonzui


Format: Advanced Search

tkernel_2/include/sys/util.hbare sourcepermlink (0.04 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by T-Engine Forum at 2013/02/12.
   11:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12:  *
   13:  *----------------------------------------------------------------------
   14:  */
   15: 
   16: /*
   17:  *      @(#)util.h (sys)
   18:  *
   19:  *      Manager utilities
   20:  */
   21: 
   22: #ifndef __SYS_UTIL_H__
   23: #define __SYS_UTIL_H__
   24: 
   25: #include <basic.h>
   26: #include <tk/typedef.h>
   27: 
   28: #ifdef __cplusplus
   29: extern "C" {
   30: #endif
   31: 
   32: /*
   33:  * SYSCONF definition
   34:  */
   35: #define L_SYSCONF_VAL           16       /* Maximum number of elements */
   36: #define L_SYSCONF_STR           256      /* Maximum string length */
   37: 
   38: /* Device related */
   39: IMPORT ID       GetDevEvtMbf(void);
   40: 
   41: /* Memory allocation */
   42: IMPORT void*    Smalloc(size_t size);
   43: IMPORT void*    Scalloc(size_t nmemb, size_t size);
   44: IMPORT void*    Srealloc(void *ptr, size_t size);
   45: IMPORT void     Sfree(void *ptr);
   46: IMPORT void     Smalloctest(int mode);
   47: IMPORT BOOL     Smalloccheck(void *ptr);
   48: IMPORT void     Kmalloctest(int mode);
   49: IMPORT BOOL     Kmalloccheck(void *ptr);
   50: IMPORT void     Vmalloctest(int mode);
   51: IMPORT BOOL     Vmalloccheck(void *ptr);
   52: 
   53: /* Error code conversion */
   54: IMPORT BOOL     _isDebugMode( void );
   55: IMPORT BOOL     _isFsrcvMode( void );
   56: 
   57: /* Other */
   58: IMPORT void _InitLibtk(void);
   59: IMPORT void KnlInit(void);
   60: 
   61: #ifdef __cplusplus
   62: }
   63: #endif
   64: #endif /*
   65:  * Library (libtk) initialization
   66:  *      The library is normally initialized automatically,
   67:  *      so these functions do not need to be called explicitly.
   68:  */