plan 9 kernel history: overview | file list | diff list

1995/0104/port/devcons.c (diff list | history)

1994/1124/sys/src/9/port/devcons.c:11,171995/0104/sys/src/9/port/devcons.c:11,16 (short | long | prev | next)
1993/0601    
Queue	*kbdq;		/* unprocessed console input */ 
Queue	*lineq;		/* processed console input */ 
Queue	*printq;	/* console output */ 
Queue	*klogq; 
1990/0227    
 
1993/0601    
static struct 
{ 
1994/1124/sys/src/9/port/devcons.c:33,401995/0104/sys/src/9/port/devcons.c:32,37
1990/0227    
void 
1991/0607    
printinit(void) 
1990/0227    
{ 
1993/0601    
	klogq = qopen(32*1024, 0, 0, 0); 
1994/0902    
	qnoblock(klogq, 1); 
1993/0601    
	lineq = qopen(2*1024, 0, 0, 0); 
1994/0902    
	qnoblock(lineq, 1); 
1990/0227    
} 
1994/1124/sys/src/9/port/devcons.c:127,1431995/0104/sys/src/9/port/devcons.c:124,129
1994/0413    
	return n; 
} 
 
int 
1991/0607    
kprint(char *fmt, ...) 
{ 
	char buf[PRINTSIZE]; 
	int n; 
                 
	n = doprint(buf, buf+sizeof(buf), fmt, (&fmt+1)) - buf; 
1994/0902    
	qwrite(klogq, buf, n); 
1991/0607    
	return n; 
} 
                 
1990/0227    
void 
panic(char *fmt, ...) 
{ 
1994/1124/sys/src/9/port/devcons.c:327,3331995/0104/sys/src/9/port/devcons.c:313,318
1992/0428    
	Qkey, 
1993/0330    
	Qhostdomain, 
	Qhostowner, 
1992/0428    
	Qklog, 
1991/0607    
	Qlights, 
1992/0428    
	Qmsec, 
1991/0607    
	Qnoise, 
1994/1124/sys/src/9/port/devcons.c:354,3601995/0104/sys/src/9/port/devcons.c:339,344
1993/0402    
	"hostowner",	{Qhostowner},	NAMELEN,	0664, 
1992/0617    
	"hz",		{Qhz},		NUMSIZE,	0666, 
1992/0428    
	"key",		{Qkey},		DESKEYLEN,	0622, 
	"klog",		{Qklog},	0,		0444, 
1991/1211    
	"lights",	{Qlights},	0,		0220, 
1992/0428    
	"msec",		{Qmsec},	NUMSIZE,	0444, 
1991/1211    
	"noise",	{Qnoise},	0,		0220, 
1994/1124/sys/src/9/port/devcons.c:603,6111995/0104/sys/src/9/port/devcons.c:587,592
1990/0227    
 
1991/0607    
	case Qnull: 
		return 0; 
1990/0720    
                 
1991/0607    
	case Qklog: 
1993/0601    
		return qread(klogq, buf, n); 
1991/0607    
 
	case Qmsec: 
		return readnum(offset, buf, n, TK2MS(MACHP(0)->ticks), NUMSIZE); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)