Fix devtab assumption with c->type
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Jan 2014 00:24:23 +0000 (16:24 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Jan 2014 00:33:33 +0000 (16:33 -0800)
commit2101328255c7d72efda121271e1714cea6eb6e83
tree3e9949db51be96d1b9f7d39bdbb8ed801565b059
parentfc82173c855e76035447e9547666ac8c16fc54a3
Fix devtab assumption with c->type

Inferno assumed devroot was the first dev in devtab.  They needed
certain chans (ones not associated with a dev yet) to not execute a
dev's close method.  rootclose() was a noop, so they managed.
kern/drivers/dev/dev.c
kern/include/ns.h
kern/src/ns/chan.c