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

1992/0814/port/devproc.c (diff list | history)

1992/0711/sys/src/9/port/devproc.c:20,261992/0814/sys/src/9/port/devproc.c:20,26 (short | long | prev | next)
1990/0227    
	Qtext, 
}; 
 
1991/0712    
#define	STATSIZE	(2*NAMELEN+12+6*12) 
1992/0814    
#define	STATSIZE	(2*NAMELEN+12+7*12) 
1990/0227    
Dirtab procdir[]={ 
1991/1109    
	"ctl",		{Qctl},		0,			0000, 
	"mem",		{Qmem},		0,			0000, 
1992/0711/sys/src/9/port/devproc.c:233,2381992/0814/sys/src/9/port/devproc.c:233,239
1990/0227    
	Proc *p; 
	Page *pg; 
1990/0614    
	KMap *k; 
1992/0814    
	Segment *s; 
1991/0705    
	int i, j; 
1990/0227    
	long l; 
	User *up; 
1992/0711/sys/src/9/port/devproc.c:345,3501992/0814/sys/src/9/port/devproc.c:346,359
1990/0614    
			l = TK2MS(l); 
1991/0712    
			readnum(0, statbuf+j+NUMSIZE*i, NUMSIZE, l, NUMSIZE); 
1990/0227    
		} 
1992/0814    
		/* ignore stack, which is mostly non-existent */ 
		l = 0; 
		for(i=1; i<NSEG; i++){ 
			s = p->seg[i]; 
			if(s) 
				l += s->top - s->base; 
		} 
		readnum(0, statbuf+j+NUMSIZE*6, NUMSIZE, l>>10, NUMSIZE); 
1991/0411    
		memmove(a, statbuf+offset, n); 
1990/0227    
		return n; 
1991/1110    
 


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