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

1997/1121/port/chan.c (diff list | history)

1997/0813/sys/src/9/port/chan.c:348,3561997/1121/sys/src/9/port/chan.c:348,357 (short | long | prev | next)
1991/0427    
Chan* 
1991/1011    
undomount(Chan *c) 
1990/0227    
{ 
1997/1121    
	Chan *nc; 
1991/1011    
	Pgrp *pg; 
	Mhead **h, **he, *f; 
	Mount *t; 
1997/1121    
	Mhead **h, **he, *f; 
1990/0227    
 
1993/0501    
	pg = up->pgrp; 
1991/1011    
	rlock(&pg->ns); 
1997/0813/sys/src/9/port/chan.c:364,3711997/1121/sys/src/9/port/chan.c:365,373
1991/1011    
		for(f = *h; f; f = f->hash) { 
1992/0825    
			for(t = f->mount; t; t = t->next) { 
1991/1011    
				if(eqchan(c, t->to, 1)) { 
1997/1121    
					nc = cclone(t->head->from, 0); 
1997/0327    
					cclose(c); 
					c = cclone(t->head->from, 0); 
1997/1121    
					c = nc; 
1991/1011    
					break; 
				} 
1992/0825    
			} 


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