kmod.h
ubixos/types.h
src/sys/kmods/kmod.c
ubixos/types.h
sys/_types.h
src/sys/include/ubixos/kmod.h
src/sys/kmods/kmod.c
src/sys/include/ubixos/kmod.h
kmod_struct
LD_START
0x1000000
kmod_load
ldEnable
kmod_struct typedef struct kmod_struct kmod_t kmod_t
uInt32 uInt32 kmod_add (const char *, const char *name) kmod_add const char * const char * name CreateItem _item_t::data InitializeList InsertItemAtFront kmalloc kmod_load kprintf List NULL
uInt32 uInt32 kmod_load (const char *) kmod_load const char * _current assert elfHeader::eEntry ELF32_R_SYM ELF32_R_TYPE elfGetRelType elfHeader::ePhnum elfHeader::ePhoff elfHeader::eShnum elfHeader::eShoff elfHeader::eShstrndx fclose fopen fread fseek taskStruct::id kfree kmalloc kpanic kprintf LD_START memset PAGE_DEFAULT elfProgramHeader::phMemsz elfProgramHeader::phVaddr PT_DYNAMIC PT_GNU_STACK PT_LOAD PT_PAX_FLAGS R_386_32 R_386_PC32 R_386_RELATIVE elfSectionHeader::shSize strcmp vmm_remapPage vmmFindFreePage x1000 kmod_add

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

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

    #ifndef_KMOD_H
    #define_KMOD_H

    #include<ubixos/types.h>

    #defineLD_START0x1000000

    typedefstructkmod_struct{
    structkmod_struct*next;
    structkmod_struct*prev;
    uInt16id;
    uInt16refs;
    uInt32address;
    charname[128];
    }kmod_t;

    uInt32kmod_load(constchar*);
    uInt32kmod_add(constchar*,constchar*name);

    #endif

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

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

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

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

    Revision1.52005/08/0420:35:19fsdfs

    variousupdates.mostlykprints,tabbingcodetolookcleaner

    Revision1.42004/09/2620:46:13reddawg
    oktimeforbedaddedkmod_addkeepsmoduleslistednow

    Revision1.32004/09/2620:40:51reddawg
    AddedbaseAddrtothekmod_t

    Revision1.22004/09/2620:39:19reddawg
    Addedkmodstructtypekmod_t

    Revision1.12004/09/2007:33:10reddawg
    Startofkernelmoduleswillmakeitmuchmoreflexable-Thesemodulescanbeeitherinkernelthreadsorsystemservices...

    END
    ***/