| plan 9 kernel history: overview | file list | diff list |
1990/0303/port/page.c (diff list | history)
| 1990/0227/sys/src/9/port/page.c:77,93 – 1990/0303/sys/src/9/port/page.c:77,94 (short | long | prev | next) | ||
| 1990/0227 | { int nf, nb; Page *p; | |
| 1990/0303 | static int here; | |
| 1990/0227 |
| |
| 1990/0303 | do;while(here); here=1; | |
| 1990/0227 | p = palloc.head; nf=nb=0; while(p){ | |
| 1990/0303 | print("%lux %lux %d\n", p->pa, p->va, p->ref); if(p->o){ print("\t%d %lux %c\n", p->o->nproc, p->o->qid, devchar[p->o->type]); delay(100); /* let it drain; there's a lot here */ } | |
| 1990/0227 | nf++; p = p->next; } | |
| 1990/0227/sys/src/9/port/page.c:98,104 – 1990/0303/sys/src/9/port/page.c:99,105 | ||
| 1990/0227 | } print("%s: nf: %d nb: %d\n", s, nf, nb); delay(1000); | |
| 1990/0303 | here=0; | |
| 1990/0227 | } void | |
| 1990/0227/sys/src/9/port/page.c:187,193 – 1990/0303/sys/src/9/port/page.c:188,193 | ||
| 1990/0227 | } #endif } | |
| 1990/0227/sys/src/9/port/page.c:257,263 – 1990/0303/sys/src/9/port/page.c:257,263 | ||
| 1990/0227 | lock(o); if(o->npage && o->qid==c->qid) if(o->va==va && o->npte==npte && o->flag==flag) | |
| 1990/0303 | if(o->mchan==c->mchan && o->mqid==c->mqid && o->type==c->type){ | |
| 1990/0227 | if(o->chan == 0){ o->chan = c; incref(c); | |
| 1990/0227/sys/src/9/port/page.c:289,301 – 1990/0303/sys/src/9/port/page.c:289,303 | ||
| 1990/0227 | o->chan = c; if(c){ o->type = c->type; | |
| 1990/0303 | o->mchan = c->mchan; o->mqid = c->mqid; | |
| 1990/0227 | incref(c); }else{ o->type = -1; | |
| 1990/0303 | o->mqid = -1; o->mchan = 0; | |
| 1990/0227 | } growpte(o, npte); unlock(&origalloc); | |