Annotation of xinu/sys/mdump.c, revision 1.1.1.2

1.1.1.2 ! root        1: /* mdump.c - mdump, mdumph */
1.1       root        2: 
                      3: #include <kernel.h>
                      4: #include <mem.h>
                      5: 
                      6: /*------------------------------------------------------------------------
                      7:  *  mdump  --  dump free memory list
                      8:  *------------------------------------------------------------------------
                      9:  */
                     10: mdump()
                     11: {
                     12:        struct  mblock  *mptr;
                     13: 
1.1.1.2 ! root       14:        disable();
        !            15:        kprintf("Dump of free memory block list:\n");
        !            16:        for( mptr=memlist.mnext ; mptr!=NULL ; mptr=mptr->mnext)
        !            17:                kprintf("  block at %x, length %u (0x%x)\n",
        !            18:                        mptr,mptr->mlen, mptr->mlen);
        !            19:        restore();
        !            20: }
1.1       root       21: 
1.1.1.2 ! root       22: /*------------------------------------------------------------------------
        !            23:  *  mdumph  --  dump free memory list and halt
        !            24:  *------------------------------------------------------------------------
        !            25:  */
        !            26: mdumph()
        !            27: {
        !            28:        struct  mblock  *mptr;
1.1       root       29: 
1.1.1.2 ! root       30:        disable();
        !            31:        kprintf("Dump of free memory block list:\n");
        !            32:        for( mptr=memlist.mnext ; mptr!=NULL ; mptr=mptr->mnext)
        !            33:                kprintf("  block at %o, length %u (0%o)\n",
        !            34:                        mptr,mptr->mlen, mptr->mlen);
        !            35:        halt();
        !            36:        restore();
1.1       root       37: }

unix.superglobalmegacorp.com

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