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

1995/0822/pc/devether.c (diff list | history)

1995/0801/sys/src/9/pc/devether.c:88,961995/0822/sys/src/9/pc/devether.c:88,95 (short | long | prev | next)
1995/0108    
} 
 
1992/0424    
void 
etherremove(Chan *c) 
1995/0822    
etherremove(Chan*) 
1992/0424    
{ 
1992/0711    
	USED(c); 
1992/0424    
} 
 
void 
1995/0801/sys/src/9/pc/devether.c:145,1511995/0822/sys/src/9/pc/devether.c:144,150
1995/0721    
	int s, different; 
1993/1120    
 
1995/0721    
	different = memcmp(pkt->d, ctlr->ea, sizeof(pkt->d)); 
1995/0731    
	if(!ctlr->prom && different && memcmp(pkt->d, ctlr->bcast, sizeof(pkt->d))) 
1995/0822    
	if(different && memcmp(pkt->d, ctlr->bcast, sizeof(pkt->d))) 
1993/1120    
		return 0; 
 
	s = splhi(); 
1995/0801/sys/src/9/pc/devether.c:156,1661995/0822/sys/src/9/pc/devether.c:155,164
1993/1120    
} 
 
1993/1113    
long 
etherwrite(Chan *c, void *buf, long n, ulong offset) 
1995/0822    
etherwrite(Chan *c, void *buf, long n, ulong) 
1992/0407    
{ 
1993/1113    
	Ether *ctlr; 
1992/0407    
 
1993/1113    
	USED(offset); 
	if(n > ETHERMAXTU) 
		error(Ebadarg); 
	ctlr = ether[c->dev]; 
1995/0801/sys/src/9/pc/devether.c:177,1841995/0822/sys/src/9/pc/devether.c:175,182
1992/0403    
		nexterror(); 
	} 
1993/1113    
	n = (*ctlr->write)(ctlr, buf, n); 
1992/0403    
	poperror(); 
1993/1113    
	qunlock(&ctlr->tlock); 
1995/0822    
	poperror(); 
1992/0403    
 
1993/1113    
	return n; 
1995/0108    
} 


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