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

1990/0409/port/page.c (diff list | history)

1990/0409/sys/src/9/port/page.c:10,161990/0617/sys/src/9/port/page.c:10,16 (short | long | prev | next)
1990/0227    
	Lock; 
	ulong	addr; 
	int	active; 
	Page	*page;		/* base of Page structures, indexed by phys addr */ 
1990/0617    
	Page	*page;		/* base of Page structures, indexed by phys page number */ 
1990/0227    
	ulong	minppn;		/* index of first usable page */ 
	Page	*head;		/* most recently used */ 
	Page	*tail;		/* least recently used */ 
1990/0409/sys/src/9/port/page.c:161,1661990/0617/sys/src/9/port/page.c:161,167
1990/0227    
{ 
	Page *p; 
	Orig *o1; 
1990/0617    
	KMap *k; 
1990/0227    
 
	if(palloc.active == 0) 
		print("newpage inactive\n"); 
1990/0409/sys/src/9/port/page.c:206,2131990/0617/sys/src/9/port/page.c:207,217
1990/0227    
	p->ref = 1; 
	usepage(p, 0); 
	unlock(&palloc); 
	if(!noclear) 
		memset((void*)(p->pa|KZERO), 0, BY2PG); 
1990/0617    
	if(!noclear){ 
		k = kmap(p); 
		memset((void*)VA(k), 0, BY2PG); 
		kunmap(k); 
	} 
1990/0227    
	p->o = o; 
	p->va = va; 
 


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