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

1991/0314/port/devlance.c (diff list | history)

1991/0313/sys/src/9/port/devlance.c:802,8081991/0314/sys/src/9/port/devlance.c:802,808 (short | long | prev | next)
1990/0911    
			len = MPus(m->cntflags) - 4; 
			lancedebq('i', p, len);/**/ 
1990/0227    
			for(e = &l.e[0]; e < &l.e[Ntypes]; e++){ 
				if(!canqlock(e)) 
1991/0314    
				if(e->q==0 || t!=e->type || !canqlock(e)) 
1990/0227    
					continue; 
				if(e->q && t == e->type) 
					break; 
1991/0313/sys/src/9/port/devlance.c:815,8211991/0314/sys/src/9/port/devlance.c:815,821
1990/0227    
			 */ 
			if(e == &l.e[Ntypes]){ 
				for(e = &l.e[0]; e < &l.e[Ntypes]; e++){ 
					if(!canqlock(e)) 
1991/0314    
					if(e->q==0 || e->type!=-1 || !canqlock(e)) 
1990/0227    
						continue; 
					if(e->q && e->type == -1) 
						break; 
1991/0313/sys/src/9/port/devlance.c:822,8321991/0314/sys/src/9/port/devlance.c:822,832
1990/0227    
					qunlock(e); 
				} 
			} 
1990/0911    
			if(e!=&l.e[Ntypes] && e->q->next->len<=Streamhi){ 
1990/0227    
				/* 
				 *  The lock on e makes sure the queue is still there. 
				 */ 
1991/0313    
				if(!waserror()){ 
1991/0314    
			/* 
			 *  The lock on e makes sure the queue is still there. 
			 */ 
			if(e!=&l.e[Ntypes]){ 
				if(e->q->next->len<=Streamhi && !waserror()){ 
1991/0313    
					bp = allocb(len); 
					memcpy(bp->rptr, (uchar *)p, len); 
					bp->wptr += len; 


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