| plan 9 kernel history: overview | file list | diff list |
1997/1208/port/chan.c (diff list | history)
| 1997/1121/sys/src/9/port/chan.c:104,109 – 1997/1208/sys/src/9/port/chan.c:104,150 (short | long | prev | next) | ||
| 1992/0620 | return c; | |
| 1990/0227 | } | |
| 1997/1208 | int okchan1(Chan *c) { if(c->type > 64) return 0; if((ulong)(c->next) & 3) return 0; if((ulong)(c->link) & 3) return 0; if((ulong)(c->path) & 3) return 0; if((ulong)(c->mnt) & 3) return 0; if((ulong)(c->xmnt) & 3) return 0; if((ulong)(c->mcp) & 3) return 0; if((ulong)(c->mchan) & 3) return 0; if((ulong)(c->session) & 3) return 0; return 1; } void okchan(char *msg, int n) { int s; Chan *c; return; s = splhi(); for(c = chanalloc.list; c; c = c->link) if(!okchan1(c)){ spllo(); print("okchan: %s (%d=#%.8lux)\n", msg, n, n); panic("okchan"); } splx(s); } | |
| 1990/0227 | void | |
| 1992/0320 | chanfree(Chan *c) { | |