Add a devstat helper
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Oct 2016 18:44:37 +0000 (14:44 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Oct 2016 19:41:48 +0000 (15:41 -0400)
commita607e731ac21bb626b3ece93f2d4c2045a798ef3
tree09a03f0e4f101ae9971c4e386660fb9e1446efce
parent9724f9a566506da7ef8368997290ccf3c7fcee08
Add a devstat helper

Devices can use this if they want to do build their own stat functions,
given a dir.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ns.h
kern/src/ns/dev.c