vitals.c
ubixos/vitals.h
ubixos/kpanic.h
lib/kprintf.h
lib/kmalloc.h
string.h
sys/thread.h
ubixos/kpanic.h
ubixos/sched.h
src/sys/kernel/vitals.c
ubixos/vitals.h
ubixos/types.h
sys/_types.h
string.h
ubixos/time.h
vfs/file.h
sys/tss.h
lib/kmalloc.h
vfs/vfs.h
vfs/mount.h
lib/kprintf.h
ubixos/ubthread.h
ubixfs/dirCache.h
sys/sysproto.h
sys/signal.h
ubixos/tty.h
sys/io.h
int int vitals_init () vitals_init vitalsStruct::dQuantum kmalloc kpanic kprintf memset vitalsStruct::quantum systemVitals
vitalsNode * vitalsNode* systemVitals systemVitals 0x0 adjustCowCounter fclose fopen freePage keyboardHandler kmain ogPrintf sysGetTime sysGetUptime systemTask time_init ubthread_cond_timedwait vfs_addMount vfs_findMount vfs_init vfsFindFS vfsRegisterFS vitals_init vmmFindFreePage vmmFreeProcessPages

    /*****************************************************************************************
    Copyright(c)2002-2004TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: vitals_8c.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    #include<ubixos/vitals.h>
    #include<ubixos/kpanic.h>
    #include<lib/kprintf.h>
    #include<lib/kmalloc.h>
    #include<string.h>

    vitalsNode*systemVitals=0x0;

    /************************************************************************

    Function:vitals_init();
    Description:Thiswillenablethevitalssubsystemforubixos

    Notes:

    02/20/2004-ApprovedItsQuality

    ************************************************************************/
    intvitals_init(){
    /*InitializeMemoryForTheSystemVitalsNode*/
    systemVitals=(vitalsNode*)kmalloc(sizeof(vitalsNode));

    /*IfmallocFailedThenError*/
    if(systemVitals==0x0)
    {
    kpanic("Error:kmallocFailedIninitVitals\n");
    }

    /*Setalldefaultvalues*/
    memset(systemVitals,0x0,sizeof(vitalsNode));

    systemVitals->quantum=8;
    systemVitals->dQuantum=8;

    /*PrintOutInfoForVitals:*/
    kprintf("vitals0-Address:[0x%X]\n",systemVitals);

    /*Returnsokernelknowsthatthereisnoproblem*/
    return(0x0);
    }

    /***
    END
    ***/