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

1991/0706/port/swap.c (diff list | history)

1991/0705/sys/src/9/port/swap.c:9,151991/0706/sys/src/9/port/swap.c:9,14 (short | long | prev | next)
1991/0705    
/* Predeclaration */ 
void	pageout(Proc *p, Segment*); 
int	pagepte(int, Segment*, Page**); 
void	openswap(void); 
int	needpages(void*); 
void	pager(void*); 
void	executeio(void); 
1991/0705/sys/src/9/port/swap.c:17,231991/0706/sys/src/9/port/swap.c:16,22
1991/0705    
 
enum 
{ 
	Maxpages = 500,		/* Max number of pageouts per process pass */ 
1991/0706    
	Maxpages = 500,		/* Max number of pageouts per segment pass */ 
1991/0705    
}; 
 
Image 	swapimage; 
1991/0705/sys/src/9/port/swap.c:196,2021991/0706/sys/src/9/port/swap.c:195,201
1991/0705    
	unlock(s); 
 
	/* Now we must do hardwork to ensure all processes which have tlb 
	 * entries for this segment are flushed 
1991/0706    
	 * entries for this segment will be flushed if we suceed in pageing it out 
1991/0705    
	 */ 
	p = proctab(0); 
	ep = &p[conf.nproc]; 


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