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

1991/1003/port/page.c (diff list | history)

1991/0906/sys/src/9/port/page.c:274,2791991/1003/sys/src/9/port/page.c:274,296 (short | long | prev | next)
1990/0227    
} 
 
1991/0705    
void 
1991/1003    
simpleputpage(Page *pg)			/* Always call with palloc locked */ 
{ 
	pg->ref = 0; 
	palloc.freecount++; 
	if(palloc.head) { 
		pg->next = palloc.head; 
		palloc.head->prev = pg; 
		pg->prev = 0; 
		palloc.head = pg; 
	} 
	else { 
		palloc.head = palloc.tail = pg; 
		pg->prev = pg->next = 0; 
	} 
} 
 
void 
1991/0705    
duppage(Page *p)				/* Always call with p locked */ 
1990/0227    
{ 
1991/0705    
	Page *np; 


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