Annotation of xinu/sys/LSI/lfinit.c, revision 1.1

1.1     ! root        1: /* lfinit.c - lfinit */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <disk.h>
        !             6: #include <lfile.h>
        !             7: 
        !             8: #ifndef        Ndf
        !             9: #define        Ndf     1
        !            10: #endif
        !            11: struct flblk   fltab[Ndf];
        !            12: 
        !            13: /*------------------------------------------------------------------------
        !            14:  *  lfinit  --  mark disk file 'device' available at system startup
        !            15:  *------------------------------------------------------------------------
        !            16:  */
        !            17: lfinit(devptr)
        !            18: struct devsw   *devptr;
        !            19: {
        !            20:        struct  flblk   *flptr;
        !            21: 
        !            22:        devptr->dvioblk = flptr = &fltab[devptr->dvminor];
        !            23:        flptr->fl_pid = 0;
        !            24:        flptr->fl_id = devptr->dvnum;
        !            25:        return(OK);
        !            26: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.