gonzui


Format: Advanced Search

tkernel_2/include/sys/commarea.hbare sourcepermlink (0.02 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 TRON Forum(http://www.tron.org/) at 2015/06/01.
   11:  *
   12:  *----------------------------------------------------------------------
   13:  */
   14: 
   15: /*
   16:  *      @(#)commarea.h (sys)
   17:  *
   18:  *      Kernel common data
   19:  */
   20: 
   21: #ifndef __SYS_COMMAREA_H__
   22: #define __SYS_COMMAREA_H__
   23: 
   24: #include <basic.h>
   25: #include <sys/queue.h>
   26: #include <tk/util.h>
   27: #include <tk/syscall.h>
   28: 
   29: #ifdef __cplusplus
   30: extern "C" {
   31: #endif
   32: 
   33: #ifndef __commarea__
   34: #define __commarea__
   35: typedef struct CommArea CommArea;
   36: #endif
   37: 
   38: /*
   39:  * Kernel common data structure
   40:  */
   41: struct CommArea {
   42:         FastLock       *PinfoLock;
   43:         ID             SysResID;
   44:         FUNCP          GetPinfo;
   45:         FUNCP          GetPidToPinfo;
   46:         FUNCP          GetLSID;
   47:         FUNCP          GetUATB;
   48: #if TA_GP
   49:         void           *gp;
   50: #endif
   51:         INT             tev_fflock;
   52: };
   53: 
   54: /*
   55:  * Kernel common data reference address
   56:  */
   57: IMPORT CommArea *__CommArea;
   58: 
   59: #ifdef __cplusplus
   60: }
   61: #endif
   62: #endif /* __SYS_COMMAREA_H__ */