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

1991/0724/port/segment.c (diff list | history)

1991/0710/sys/src/9/port/segment.c:196,2021991/0724/sys/src/9/port/segment.c:196,205 (short | long | prev | next)
1991/0705    
 
	lock(&imagealloc); 
 
1991/0706    
	/* Search the image cache for remains of the text from a previous incarnation */ 
1991/0724    
	/* 
	 * Search the image cache for remains of the text from a previous  
	 * or currently running incarnation  
	 */ 
1991/0705    
	for(i = ihash(c->qid.path); i; i = i->hash) { 
		if(c->qid.path == i->qid.path) { 
			lock(i); 
1991/0710/sys/src/9/port/segment.c:211,2161991/0724/sys/src/9/port/segment.c:214,223
1991/0705    
		} 
	} 
	 
1991/0724    
	/* 
	 * imagereclaim dumps pages from the free list which are cached by image 
	 * structures. This should free some image structures. 
	 */ 
1991/0705    
	while(!(i = imagealloc.free)) { 
		unlock(&imagealloc); 
1991/0706    
		imagereclaim(); 
1991/0710/sys/src/9/port/segment.c:241,2471991/0724/sys/src/9/port/segment.c:248,253
1991/0705    
	else 
		incref(i->s); 
 
	unlock(i); 
	return i; 
} 
 


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