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

1.1     ! root        1: /* devdump.c - devdump */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: 
        !             6: /*------------------------------------------------------------------------
        !             7:  *  devdump  -  dump device names from the device switch table
        !             8:  *------------------------------------------------------------------------
        !             9:  */
        !            10: devdump()
        !            11: {
        !            12:        struct  devsw   *devptr;
        !            13:        int     i;
        !            14: 
        !            15:        kprintf("Num  Device   minor    CSR     i-vect.   o-vect.   cntrl blk\n");
        !            16:        kprintf("--- --------  ----- --------- --------- --------- -----------\n");
        !            17:        for (i=0 ; i<NDEVS ; i++) {
        !            18:                devptr = &devtab[i];
        !            19:                kprintf("%2d. %-9s %3d   %09x %09x %09x  %09x\n",
        !            20:                        i, devptr->dvname, devptr->dvminor,
        !            21:                        devptr->dvcsr, devptr->dvivec, devptr->dvovec,
        !            22:                        devptr->dvioblk);
        !            23:        }
        !            24: }

unix.superglobalmegacorp.com

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