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

2000/0606/port/devbridge.c (diff list | history)

2000/0527/sys/src/9/port/devbridge.c:256,2762000/0606/sys/src/9/port/devbridge.c:256,265 (short | long | prev | next)
1999/0316    
	switch(TYPE(c->qid)) { 
	default: 
		break; 
	case Qtopdir: 
	case Qbridgedir: 
	case Qportdir: 
	case Qstatus: 
	case Qlocal: 
	case Qstats: 
		if(omode != OREAD) 
			error(Eperm); 
		break; 
	case Qlog: 
		logopen(b); 
		break; 
	case Qcache: 
		if(omode != OREAD) 
			error(Eperm); 
		c->aux = cachedump(b); 
		break; 
	} 
2000/0527/sys/src/9/port/devbridge.c:340,3452000/0606/sys/src/9/port/devbridge.c:329,339
1999/0316    
		} 
		n = readstr(off, a, n, buf); 
		qunlock(b); 
2000/0606    
		return n; 
	case Qbctl: 
		snprint(buf, sizeof(buf), "%s tcpmss\ndelay %ld %ld\n", b->tcpmss ? "set" : "clear", 
			b->delay0, b->delayn); 
		n = readstr(off, a, n, buf); 
1999/0316    
		return n; 
	case Qcache: 
		n = readstr(off, a, n, c->aux); 


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