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

1990/0629/gnot/devincon.c (diff list | history)

1990/0623/sys/src/9/gnot/devincon.c:133,1381990/0629/sys/src/9/gnot/devincon.c:133,140 (short | long | prev | next)
1990/0312    
static void inconstclose(Queue*); 
Qinfo inconinfo = { nullput, inconoput, inconstopen, inconstclose, "incon" }; 
 
1990/0629    
int incondebug; 
 
1990/0312    
/* 
 *  set the incon parameters 
 */ 
1990/0623/sys/src/9/gnot/devincon.c:492,4971990/0629/sys/src/9/gnot/devincon.c:494,502
1990/0312    
	ctl = bp->rptr[2]; 
	bp->rptr += 3; 
 
1990/0629    
	if(incondebug) 
		print("->(%d)%uo %d\n", chan, ctl, bp->wptr - bp->rptr); 
 
1990/0312    
	/* 
	 *  make sure there's an incon out there 
	 */ 
1990/0623/sys/src/9/gnot/devincon.c:677,6821990/0629/sys/src/9/gnot/devincon.c:682,689
1990/0315    
	bp->base[0] = ip->chan; 
	bp->base[1] = ip->chan>>8; 
	bp->base[2] = c; 
1990/0629    
	if(incondebug) 
		print("<-(%d)%uo %d\n", ip->chan, c, bp->wptr-bp->rptr)-3; 
1990/0315    
 
1990/0321    
	next = (ip->wi+3)%Nin; 
	if(next == ip->ri){ 
1990/0623/sys/src/9/gnot/devincon.c:807,8101990/0629/sys/src/9/gnot/devincon.c:814,822
1990/0312    
		} 
		ip->state = Dead; 
	} 
1990/0629    
} 
 
incontoggle() 
{ 
	incondebug ^= 1; 
1990/0312    
} 


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