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

1990/1013/port/devpipe.c (diff list | history)

1990/1011/sys/src/9/port/devpipe.c:75,811990/1013/sys/src/9/port/devpipe.c:75,82 (short | long | prev | next)
1990/1009    
	} 
	p = pipealloc.free; 
	pipealloc.free = p->next; 
	p->ref = 1; 
1990/1013    
	if(incref(p) != 1) 
		panic("pipeattach"); 
1990/1009    
	unlock(&pipealloc); 
 
	c->qid = CHDIR|STREAMQID(2*(p - pipealloc.pipe), 0); 
1990/1011/sys/src/9/port/devpipe.c:89,951990/1013/sys/src/9/port/devpipe.c:90,97
1990/1009    
 
	p = &pipealloc.pipe[STREAMID(c->qid)/2]; 
1990/0227    
	nc = devclone(c, nc); 
1990/1009    
	incref(p); 
1990/1013    
	if(incref(p) <= 1) 
		panic("pipeclone"); 
1990/1009    
	return nc; 
} 
1990/0227    
 


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