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

1992/0114/port/fault.c (diff list | history)

1992/0111/sys/src/9/port/fault.c:8,141992/0114/sys/src/9/port/fault.c:8,14 (short | long | prev | next)
1990/0227    
 
1991/0705    
#define DPRINT 
 
1991/1105    
void	faultexit(char*); 
1992/0114    
void	faulterror(char*); 
1991/1105    
 
1990/1212    
int 
fault(ulong addr, int read) 
1992/0111/sys/src/9/port/fault.c:190,1961992/0114/sys/src/9/port/fault.c:190,196
1991/0705    
			qunlock(&c->rdl); 
			kunmap(k); 
			putpage(new); 
1991/1105    
			faultexit("sys: demand load I/O error"); 
1992/0114    
			faulterror("sys: demand load I/O error"); 
1991/0705    
		} 
 
		ask = s->flen-soff; 
1992/0111/sys/src/9/port/fault.c:224,2301992/0114/sys/src/9/port/fault.c:224,230
1991/0705    
			putpage(new); 
			qlock(&s->lk); 
			qunlock(&s->lk); 
1991/1105    
			faultexit("sys: page in I/O error"); 
1992/0114    
			faulterror("sys: page in I/O error"); 
1991/0705    
		} 
 
		n = (*devtab[c->type].read)(c, kaddr, BY2PG, daddr); 
1992/0111/sys/src/9/port/fault.c:248,2581992/0114/sys/src/9/port/fault.c:248,258
1991/1105    
} 
 
void 
faultexit(char *s) 
1992/0114    
faulterror(char *s) 
1991/1105    
{ 
	if(u->nerrlab) { 
		postnote(u->p, 1, s, NDebug); 
		errors(s); 
1992/0114    
		error(s); 
1991/1105    
	} 
	pexit(s, 0); 
1990/0227    
} 


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