kmalloc.h
ubixos/types.h
src/sys/devfs/devfs.c
src/sys/init/main.c
src/sys/isa/atkbd.c
src/sys/isa/fdc.c
src/sys/isa/ne2k.c
src/sys/kernel/bioscall.c
src/sys/kernel/elf.c
src/sys/kernel/exec.c
src/sys/kernel/gen_calls.c
src/sys/kernel/kern_descrip.c
src/sys/kernel/kern_sig.c
src/sys/kernel/kern_sysctl.c
src/sys/kernel/ld.c
src/sys/kernel/sched.c
src/sys/kernel/syscall.c
src/sys/kernel/systemtask.c
src/sys/kernel/tty.c
src/sys/kernel/ubthread.c
src/sys/kernel/vitals.c
src/sys/kmods/kmod.c
src/sys/lib/kmalloc.c
src/sys/lib/libcpp.cc
src/sys/mpi/system.c
src/sys/pci/hd.c
src/sys/pci/lnc.c
src/sys/sys/device.c
src/sys/sys/idt.c
src/sys/ubixfs/dirCache.c
src/sys/ubixfs/directory.c
src/sys/ubixfs/ubixfs.c
src/sys/ufs/ffs.c
src/sys/ufs/ufs.c
src/sys/vfs/file.c
src/sys/vfs/mount.c
src/sys/vfs/vfs.c
src/sys/vmm/paging.c
src/sys/vmm/vmm_memory.c
ubixos/types.h
sys/_types.h
src/sys/include/lib/kmalloc.h
src/sys/ufs/ffs.c
src/sys/pci/lnc.c
src/sys/pci/hd.c
src/sys/kernel/vitals.c
src/sys/kernel/elf.c
src/sys/kernel/tty.c
src/sys/kmods/kmod.c
src/sys/mpi/system.c
src/sys/kernel/kern_sysctl.c
src/sys/lib/kmalloc.c
src/sys/vmm/paging.c
src/sys/ubixfs/directory.c
src/sys/ufs/ufs.c
src/sys/kernel/kern_sig.c
src/sys/kernel/ubthread.c
src/sys/kernel/systemtask.c
src/sys/kernel/ld.c
src/sys/include/lib/kmalloc.h
src/sys/kernel/sched.c
src/sys/ubixfs/dirCache.c
src/sys/ubixfs/ubixfs.c
src/sys/init/main.c
src/sys/kernel/bioscall.c
src/sys/sys/device.c
src/sys/kernel/syscall.c
src/sys/isa/ne2k.c
src/sys/isa/atkbd.c
src/sys/vfs/mount.c
src/sys/devfs/devfs.c
src/sys/vmm/vmm_memory.c
src/sys/kernel/kern_descrip.c
src/sys/lib/libcpp.cc
src/sys/vfs/file.c
src/sys/sys/idt.c
src/sys/kernel/gen_calls.c
src/sys/kernel/exec.c
src/sys/isa/fdc.c
src/sys/vfs/vfs.c
memDescriptor
MALLOC_ALIGN
size
(size + ((((size) % (MALLOC_ALIGN_SIZE)) == 0)? 0 : ((MALLOC_ALIGN_SIZE) - ((size) % (MALLOC_ALIGN_SIZE)))))
kmalloc
MALLOC_ALIGN_SIZE
32
sysID
-2
vmm_getFreeMallocPage
vmm_pagingInit
vmmFindFreePage
void void kfree (void *baseAddr) kfree void * baseAddr assert memDescriptor::baseAddr insertFreeDesc kprintf memDescriptor::limit mallocSpinLock memset memDescriptor::next memDescriptor::prev spinLock spinUnlock usedKernDesc close device_remove elf_loadfile execFile fclose fopen kmod_load ldEnable mpi_destroyMbox mpi_fetchMessage ne2kFreeBuffer operator delete operator delete[] sys_exec sys_write sysExec systemTask ubixfs_cacheDelete ubixFSmkDir ubthread_cond_destroy ubthread_mutex_destroy vfs_mount writeUbixFS
void * void* kmalloc (uInt32 len) kmalloc uInt32 len assert memDescriptor::baseAddr freeKernDesc getEmptyDesc insertFreeDesc kprintf memDescriptor::limit MALLOC_ALIGN mallocSpinLock memDescriptor::next memDescriptor::prev spinLock spinUnlock usedKernDesc addDirEntry biosCall devfs_initialize devfs_makeNode device_add elf_loadfile execFile falloc fdc_init fopen initHardDisk initLNC kmain kmod_add kmod_load ldEnable lncAttach mpi_createMbox mpi_postMessage mpi_spam ne2k_init ne2kAllocBuffer openFileUbixFS operator new operator new[] sched_init schedNewTask sys_exec sys_write sysctl_add sysctl_init sysExec tty_init ubixfs_cacheNew ubixfs_initialize ubixFSLoadDir ubixFSmkDir ubixFSUnlink ubthread_cond_init ubthread_create ubthread_mutex_init ufs_openFile vfs_mount vfsRegisterFS vitals_init writeUbixFS

    /*****************************************************************************************
    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: kmalloc_8h.xml 88 2016-01-12 00:11:29Z reddawg $

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

    #ifndef_KMALLOC_H
    #define_KMALLOC_H

    #include<ubixos/types.h>

    #ifdef__cplusplus
    extern"C"{
    #endif

    #definesysID-2
    #defineMALLOC_ALIGN_SIZE32
    #defineMALLOC_ALIGN(size)(size+((((size)%(MALLOC_ALIGN_SIZE))==0)?0:((MALLOC_ALIGN_SIZE)-((size)%(MALLOC_ALIGN_SIZE)))))

    structmemDescriptor{
    structmemDescriptor*prev;//4
    structmemDescriptor*next;//4
    void*baseAddr;//4
    uInt32limit;//4
    /*uInt8status;//1*/
    /*charreserved[11];//11*/
    };

    voidkfree(void*baseAddr);
    void*kmalloc(uInt32len);

    #ifdef__cplusplus
    }
    #endif

    #endif

    /***
    $Log: kmalloc_8h.xml,v $
    Revision 1.6  2006/12/19 14:12:51  reddawg
    rtld-elf almost workign

    Revision1.1.1.12006/06/0112:46:13reddawg
    ubix2

    Revision1.22005/10/1200:13:36reddawg
    Removed

    Revision1.1.1.12005/09/2617:23:40reddawg
    nomessage

    Revision1.72004/09/1420:57:01reddawg
    Bugfixes:macroproblemoveroptamultiply

    Revision1.62004/07/2110:02:09reddawg
    devfs:renamedfunctions
    devicesystem:renamedfunctions
    fdc:fixedafewpotentialbugsandcleanedupsomeunusedvariables
    strol:fixeddefinition
    endtask:madeitprintoutfreepagedebuginfo
    kmalloc:fixedahugememoryleakwehadsomeunhandleddescriptorinsertionsosomedescriptorswerelost
    ld:fixedapointerconversion
    file:cleanedupafewunusedvariables
    sched:broketaskdeletion
    kprintf:fixedogPrintfdefinition

    Revision1.52004/07/1902:08:27reddawg
    Cleanedouttherestofdebugingcodealsotemporarilydisabledtheipstacktoimproveboottime

    Revision1.42004/07/1805:24:15reddawg
    Fixens

    Revision1.32004/05/2115:00:27reddawg
    Cleanedup

    END
    ***/