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

1992/0108/gnot/trap.c (diff list | history)

1991/1218/sys/src/9/gnot/trap.c:7,131992/0108/sys/src/9/gnot/trap.c:7,12 (short | long | prev | next)
1990/03091    
#include	"io.h" 
1990/0513    
#include	"errno.h" 
1990/03091    
 
void	notify(Ureg*); 
1991/0717    
void	noted(Ureg*, ulong); 
1991/0503    
void	rfnote(Ureg*); 
1990/03091    
 
1991/1218/sys/src/9/gnot/trap.c:156,1621992/0108/sys/src/9/gnot/trap.c:155,161
1990/03091    
/* 
 * Call user, if necessary, with note 
 */ 
void 
1992/0108    
int 
1990/03091    
notify(Ureg *ur) 
{ 
1991/1218    
	int l; 
1991/1218/sys/src/9/gnot/trap.c:165,1721992/0108/sys/src/9/gnot/trap.c:164,171
1990/03091    
 
1991/1112    
	if(u->p->procctl) 
		procctl(u->p); 
	if(u->nnote==0) 
1990/03091    
		return; 
1992/0108    
	if(u->nnote == 0) 
		return 0; 
1991/1112    
 
1991/1114    
	s = spllo(); 
1991/1216    
	qlock(&u->p->debug); 
1991/1218/sys/src/9/gnot/trap.c:218,2231992/0108/sys/src/9/gnot/trap.c:217,223
1990/03091    
	} 
1991/1216    
	qunlock(&u->p->debug); 
1991/1114    
	splx(s); 
1992/0108    
	return 1; 
1990/03091    
} 
 
/* 


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