Annotation of xinu/sys/dginit.c, revision 1.1

1.1     ! root        1: /* dginit.c - dginit */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  dginit  -  initialize datagram protocol pseudo device marking it free
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: dginit(devptr)
        !            12: struct devsw   *devptr;
        !            13: {
        !            14:        struct  dgblk   *dgptr;
        !            15: 
        !            16:        devptr->dvioblk = (char *) (dgptr = &dgtab[devptr->dvminor]);
        !            17:        dgptr->dg_dnum = devptr->dvnum;
        !            18:        dgptr->dg_state = DG_FREE;
        !            19:        return(OK);
        !            20: }
        !            21: 
        !            22: #ifdef Ndg
        !            23: struct dgblk   dgtab[Ndg];             /* dg device control blocks     */
        !            24: #endif

unix.superglobalmegacorp.com

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