9ns: Clarify a couple struct dev fields
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 5 Apr 2018 16:46:06 +0000 (12:46 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:36:28 +0000 (14:36 -0400)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ns.h

index 77c5404..3729a62 100644 (file)
@@ -460,8 +460,8 @@ struct chan {
        struct chan *next;                      /* allocation */
        struct chan *link;
        int64_t offset;                         /* in file */
-       int type;
-       uint32_t dev;
+       int type;                                       /* ID for device type, e.g. #mnt, #kfs, #ip */
+       uint32_t dev;                           /* device specific; can be an instance ID */
        uint16_t mode;                          /* read/write */
        int flag;
        struct qid qid;