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

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

1990/0227/sys/src/9/port/page.c:77,931990/0303/sys/src/9/port/page.c:77,94 (short | long | prev | next)
1990/0227    
{ 
	int nf, nb; 
	Page *p; 
1990/0303    
	static int here; 
1990/0227    
 
static int here; 
do;while(here); 
here=1; 
                 
1990/0303    
	do;while(here); 
	here=1; 
1990/0227    
	p = palloc.head; 
	nf=nb=0; 
	while(p){ 
print("%lux %lux %d\n", p->pa, p->va, p->ref); 
if(p->o) print("\t%d %lux %c\n", p->o->nproc, p->o->qid, devchar[p->o->type]); 
delay(100); 
1990/0303    
		print("%lux %lux %d\n", p->pa, p->va, p->ref); 
		if(p->o){ 
			print("\t%d %lux %c\n", p->o->nproc, p->o->qid, devchar[p->o->type]); 
			delay(100);	/* let it drain; there's a lot here */ 
		} 
1990/0227    
		nf++; 
		p = p->next; 
	} 
1990/0227/sys/src/9/port/page.c:98,1041990/0303/sys/src/9/port/page.c:99,105
1990/0227    
	} 
	print("%s: nf: %d nb: %d\n", s, nf, nb); 
	delay(1000); 
here=0; 
1990/0303    
	here=0; 
1990/0227    
} 
 
void 
1990/0227/sys/src/9/port/page.c:187,1931990/0303/sys/src/9/port/page.c:188,193
1990/0227    
		} 
#endif 
	} 
	audit("newpage"); 
	print("no physical memory\n"); 
	unlock(&palloc); 
	if(u == 0) 
1990/0227/sys/src/9/port/page.c:257,2631990/0303/sys/src/9/port/page.c:257,263
1990/0227    
			lock(o); 
			if(o->npage && o->qid==c->qid) 
			if(o->va==va && o->npte==npte && o->flag==flag) 
			if(o->type==c->type && o->dev==c->dev){ 
1990/0303    
			if(o->mchan==c->mchan && o->mqid==c->mqid && o->type==c->type){ 
1990/0227    
				if(o->chan == 0){ 
					o->chan = c; 
					incref(c); 
1990/0227/sys/src/9/port/page.c:289,3011990/0303/sys/src/9/port/page.c:289,303
1990/0227    
		o->chan = c; 
		if(c){ 
			o->type = c->type; 
			o->dev = c->dev; 
			o->qid = c->qid; 
1990/0303    
			o->mchan = c->mchan; 
			o->mqid = c->mqid; 
1990/0227    
			incref(c); 
		}else{ 
			o->type = -1; 
			o->dev = -1; 
			o->qid = -1; 
1990/0303    
			o->mqid = -1; 
			o->mchan = 0; 
1990/0227    
		} 
		growpte(o, npte); 
		unlock(&origalloc); 


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