| plan 9 kernel history: overview | file list | diff list |
1990/05313/gnot/stream.c (diff list | history)
| 1990/0406/sys/src/9/gnot/stream.c:58,64 – 1990/05313/sys/src/9/gnot/stream.c:58,64 (short | long | prev | next) | ||
| 1990/03091 | { 0 }, | |
| 1990/0321 | { 68 }, { 260 }, | |
| 1990/0331 |
| |
| 1990/05313 | { 4096 }, | |
| 1990/03091 | }; /* | |
| 1990/0406/sys/src/9/gnot/stream.c:70,86 – 1990/05313/sys/src/9/gnot/stream.c:70,98 | ||
| 1990/0331 | Queue *q; int count; Block *bp; | |
| 1990/05313 | Bclass *bcp; | |
| 1990/0331 | ||
| 1990/05313 | print("\n"); | |
| 1990/0331 | for(q = qlist; q < qlist + conf.nqueue; q++, q++){ if(!(q->flag & QINUSE)) continue; for(count = 0, bp = q->first; bp; bp = bp->next) count++; | |
| 1990/05313 | print("%s %ux R c %d l %d f %ux", q->info->name, q, count, q->len, q->flag); | |
| 1990/0331 | for(count = 0, bp = WR(q)->first; bp; bp = bp->next) count++; | |
| 1990/05313 | print(" W c %d l %d f %ux\n", count, WR(q)->len, WR(q)->flag); | |
| 1990/0331 | } | |
| 1990/05313 | print("\n"); for(bcp=bclass; bcp<&bclass[Nclass]; bcp++){ lock(bcp); for(count = 0, bp = bcp->first; bp; count++, bp = bp->next) ; unlock(bcp); print("%d blocks of size %d\n", count, bcp->size); } print("\n"); | |
| 1990/0331 | } /* | |
| 1990/0406/sys/src/9/gnot/stream.c:180,185 – 1990/05313/sys/src/9/gnot/stream.c:192,199 | ||
| 1990/03091 | Bclass *bcp; | |
| 1990/0312 | int tries; | |
| 1990/03091 | ||
| 1990/05313 | if((bp->flags&S_CLASS) >= Nclass) panic("freeb class"); | |
| 1990/03091 | bcp = &bclass[bp->flags & S_CLASS]; lock(bcp); | |
| 1990/0312 | bp->rptr = bp->wptr = 0; | |