- Main Page
- Data Structures
- Files
- Directories

- Search for |

- File List
- Globals

# vitals.h

Go to the documentation of this file.

    00001 /*****************************************************************************************
    00002  Copyright (c) 2002-2004 The UbixOS Project
    00003  All rights reserved.
    00004
    00005  Redistribution and use in source and binary forms, with or without modification, are
    00006  permitted provided that the following conditions are met:
    00007
    00008  Redistributions of source code must retain the above copyright notice, this list of
    00009  conditions, the following disclaimer and the list of authors.  Redistributions in binary
    00010  form must reproduce the above copyright notice, this list of conditions, the following
    00011  disclaimer and the list of authors in the documentation and/or other materials provided
    00012  with the distribution. Neither the name of the UbixOS Project nor the names of its
    00013  contributors may be used to endorse or promote products derived from this software
    00014  without specific prior written permission.
    00015
    00016  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
    00017  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    00018  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
    00019  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    00020  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    00021  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    00022  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
    00023  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    00024  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00025
    00026  $Id: vitals_8h-source.html 88 2016-01-12 00:11:29Z reddawg $
    00027
    00028 *****************************************************************************************/
    00029
    00030 #ifndef _VITALS_H
    00031 #define _VITALS_H
    00032
    00033 //#include <ubixos/types.h>
    00034 #include <ubixos/ubthread.h>
    00035 //#include <vfs/mount.h>
    00036 #include <vfs/vfs.h>
    00037
    00038 typedef struct vitalsStruct {
    00039   uInt32                 openFiles;
    00040   uInt32                 sysTicks;
    00041   uInt32                 sysUptime;
    00042   uInt32                 quantum;
    00043   uInt32                 dQuantum;
    00044   uInt32                 freePages;
    00045   struct fileSystem     *fileSystems;
    00046   struct vfs_mountPoint *mountPoints;
    00047   uInt32                 timeStart;
    00048   void                  *screen;
    00049   void                  *font;
    00050   char                  *packet;
    00051   uInt32                 packetLength;
    00052   } vitalsNode;
    00053
    00054 extern vitalsNode *systemVitals;
    00055
    00056 int vitals_init();
    00057
    00058 #endif
    00059
    00060 /***
    00061  $Log: vitals_8h-source.html,v $
    00061  Revision 1.7  2006/12/15 17:47:08  reddawg
    00061  Updates
    00061
    00062  Revision 1.2  2006/12/05 14:10:21  reddawg
    00063  Workign Distro
    00064
    00065  Revision 1.1.1.1  2006/06/01 12:46:14  reddawg
    00066  ubix2
    00067
    00068  Revision 1.2  2005/10/12 00:13:37  reddawg
    00069  Removed
    00070
    00071  Revision 1.1.1.1  2005/09/26 17:23:57  reddawg
    00072  no message
    00073
    00074  Revision 1.6  2004/07/23 09:10:06  reddawg
    00075  ubixfs: cleaned up some functions played with the caching a bit
    00076  vfs:    renamed a bunch of functions
    00077  cleaned up a few misc bugs
    00078
    00079  Revision 1.5  2004/07/09 13:03:50  reddawg
    00080  vitals: named vitalsInit to vitals_init
    00081  Adjusted Startup Routines
    00082
    00083  Revision 1.4  2004/06/18 13:01:47  solar
    00084  Added nice and timeSlice members to the kTask_t type
    00085
    00086  Revision 1.3  2004/06/16 12:04:18  reddawg
    00087  systemVitals->quantum = (1000/msPerQuantum)
    00088  The timer int now will call scheduler at the rate of the defined quantum
    00089
    00090  Revision 1.2  2004/05/21 15:20:00  reddawg
    00091  Cleaned up
    00092  END
    00093  ***/