File:  [XINU] / xinu / sys / devdump.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:04 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19870308, HEAD
Xinu for VAX

/* devdump.c - devdump */

#include <conf.h>
#include <kernel.h>

/*------------------------------------------------------------------------
 *  devdump  -  dump device names from the device switch table
 *------------------------------------------------------------------------
 */
devdump()
{
	struct	devsw	*devptr;
	int	i;

	kprintf("Num  Device   minor    CSR     i-vect.   o-vect.   cntrl blk\n");
	kprintf("--- --------  ----- --------- --------- --------- -----------\n");
	for (i=0 ; i<NDEVS ; i++) {
		devptr = &devtab[i];
		kprintf("%2d. %-9s %3d   %09x %09x %09x  %09x\n",
			i, devptr->dvname, devptr->dvminor,
			devptr->dvcsr, devptr->dvivec, devptr->dvovec,
			devptr->dvioblk);
	}
}

unix.superglobalmegacorp.com

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