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

1997/0516/port/swap.c (diff list | history)

1997/0516/sys/src/9/port/swap.c:330,3391998/0403/sys/src/9/port/swap.c:330,340 (short | long | prev | next)
Bug fix: require caller to setswapchan to incref the Chan.
rsc Fri Mar 4 12:44:25 2005
1991/0705    
setswapchan(Chan *c) 
{ 
	if(swapimage.c) { 
		if(swapalloc.free != conf.nswap) 
1998/0403    
		if(swapalloc.free != conf.nswap){ 
			cclose(c); 
1992/0114    
			error(Einuse); 
1998/0403    
		} 
1997/0327    
		cclose(swapimage.c); 
1991/0705    
	} 
	incref(c); 
	swapimage.c = c; 
} 


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