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

1990/0707/port/chan.c (diff list | history)

1990/0617/sys/src/9/port/chan.c:72,771990/0707/sys/src/9/port/chan.c:72,78 (short | long | prev | next)
1990/0227    
	lock(&chanalloc); 
	if(c = chanalloc.free){		/* assign = */ 
		chanalloc.free = c->next; 
1990/0707    
		c->type = 0;	/* if closed before changed, this calls rooterror, a nop */ 
1990/0227    
		c->flag = 0; 
		c->ref = 1; 
		unlock(&chanalloc); 


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