9ns: Use a helper struct for walk/namec options
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 26 Feb 2018 16:51:12 +0000 (11:51 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 6 Apr 2018 19:23:01 +0000 (15:23 -0400)
commit698746b292adfb20672e5f53a697a9267aaa73f0
tree9af6f7c4feca70399d14da3abae0718a7218ec90
parentb664ca0bc7226a1f9050eca18110cd5f9a159ba1
9ns: Use a helper struct  for walk/namec options

'can_mount' is just one option from namec down through all walks.  Symlinks
will us more options and helper functions, and we'll also need a loop
counter.

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