diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/include/sys/vnode.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/include/sys/vnode.h b/sys/include/sys/vnode.h index b8b1337..f584356 100644 --- a/sys/include/sys/vnode.h +++ b/sys/include/sys/vnode.h @@ -34,12 +34,20 @@ #include <sys/queue.h> #include <sys/mount.h> +struct vnode; + +struct vops { + int(*vget)(struct vnode *parent, const char *name, struct vnode **vp); + int(*read)(struct vnode *vp, char *buf, size_t count); +}; + struct vnode { int type; int flags; - int usecount; /* Ref count of uses */ struct mount *mp; /* Ptr to vfs vnode is in */ - TAILQ_ENTRY(vnode) freelist; + struct vops *vops; + struct vnode *parent; + void *data; /* Filesystem specific data */ }; /* |