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

1993/0330/port/stfcall.c (diff list | history)

1993/0330/sys/src/9/port/stfcall.c:158,1661993/0410/sys/src/9/port/stfcall.c:158,173 (short | long | prev | next)
1992/0320    
	 
		if(q->len < len) 
			return; 
	                 
		pullup(q->first, len); 
		bp = q->first; 
1993/0410    
 
		/* 
		 *  the lock here is wrong.  it should be a qlock since 
		 *  the pullup may block.  not worth fixing. 
		 */ 
		lock(q); 
		bp = q->first = pullup(q->first, len); 
		if(bp == 0) 
			q->len = 0; 
		unlock(q); 
1992/0320    
		need = len+bp->rptr[off]+(bp->rptr[off+1]<<8); 
		if(q->len < need) 
			return; 


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