| 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,47 – 1991/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,54 – 1991/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,119 – 1991/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,323 – 1991/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++) { | |