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

1991/1127/port/pgrp.c (diff list | history)

1991/1113/sys/src/9/port/pgrp.c:41,471991/1127/sys/src/9/port/pgrp.c:41,52 (short | long | prev | next)
1991/0705    
	Fgrp *f, *fe; 
	Mount *m, *em; 
1991/1011    
	Mhead *hm, *hem; 
1991/1127    
	Crypt *cr; 
1990/0227    
 
1991/1127    
	/* 
	 * need to /dev/proc read protect crypt memory 
	 */ 
	cr = ialloc(conf.npgrp*sizeof(Crypt), 0); 
1990/1110    
	pgrpalloc.arena = ialloc(conf.npgrp*sizeof(Pgrp), 0); 
	pgrpalloc.free = pgrpalloc.arena; 
1990/0227    
 
1991/1113/sys/src/9/port/pgrp.c:49,541991/1127/sys/src/9/port/pgrp.c:54,60
1991/1011    
	for(i=0; i<conf.npgrp; i++,p++) { 
1990/1110    
		p->index = i; 
1990/0227    
		p->next = p+1; 
1991/1127    
		p->crypt = cr++; 
1990/0227    
	} 
1990/0825    
	p[-1].next = 0; 
1990/0227    
 
1991/1113/sys/src/9/port/pgrp.c:114,1191991/1127/sys/src/9/port/pgrp.c:120,126
1991/0705    
			pgrpalloc.free = p->next; 
			p->ref = 1; 
			p->pgrpid = ++pgrpalloc.pgrpid; 
1991/1127    
			memset(p->crypt, 0, sizeof *p->crypt); 
1991/0806    
			memset(p->rendhash, 0, sizeof(p->rendhash)); 
1991/1011    
			memset(p->mnthash, 0, sizeof(p->mnthash)); 
1991/0705    
			unlock(&pgrpalloc); 
1991/1113/sys/src/9/port/pgrp.c:318,3231991/1127/sys/src/9/port/pgrp.c:325,331
1991/0514    
 
1991/1011    
	rlock(&from->ns); 
 
1991/1127    
	*to->crypt = *from->crypt; 
1991/1011    
	e = &from->mnthash[MNTHASH]; 
1991/1113    
	tom = to->mnthash; 
1991/1011    
	for(h = from->mnthash; h < e; h++) { 


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