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

1993/1103/port/devmnt.c (diff list | history)

1993/1102/sys/src/9/port/devmnt.c:667,6751993/1103/sys/src/9/port/devmnt.c:667,674 (short | long | prev | next)
1990/1124    
void 
1991/0911    
mntrpcread(Mnt *m, Mntrpc *r) 
1990/1124    
{ 
1993/1006    
	int n, zrd; 
1993/1103    
	int n; 
1992/0505    
 
1993/1006    
	zrd = 0; 
1991/0911    
	for(;;) { 
		if(waserror()) { 
			if(mntflush(m, r) == 0) { 
1993/1102/sys/src/9/port/devmnt.c:683,6931993/1103/sys/src/9/port/devmnt.c:682,689
1991/0911    
		r->reply.tag = 0; 
1992/0825    
		n = (*devtab[m->c->type].read)(m->c, r->rpc, MAXRPC, 0); 
1991/0911    
		poperror(); 
1993/1006    
		if(n == 0) { 
			if(++zrd > 3) 
				error(Ehungup); 
1993/1103    
		if(n == 0) 
1991/0911    
			continue; 
1993/1006    
		} 
1992/0503    
 
1991/0911    
		if(convM2S(r->rpc, &r->reply, n) != 0) 
			return; 


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