From: Sascha Wildner Date: Thu, 20 Jun 2013 20:33:51 +0000 (+0200) Subject: : Hide some stuff from userland. X-Git-Tag: v3.7.0~920 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/2d18109f6a5f1b240404fe8a833a96fa018e1430 : Hide some stuff from userland. --- diff --git a/sys/vfs/tmpfs/tmpfs.h b/sys/vfs/tmpfs/tmpfs.h index 20a89987ec..675834a9e2 100644 --- a/sys/vfs/tmpfs/tmpfs.h +++ b/sys/vfs/tmpfs/tmpfs.h @@ -50,7 +50,9 @@ /* --------------------------------------------------------------------- */ #include +#ifdef _KERNEL #include +#endif #include #include @@ -299,6 +301,10 @@ struct tmpfs_node { } tn_fifo; } tn_spec; }; + +#define VTOI(vp) ((struct tmpfs_node *)(vp)->v_data) + +#ifdef _KERNEL LIST_HEAD(tmpfs_node_list, tmpfs_node); #define tn_rdev tn_spec.tn_rdev @@ -540,5 +546,6 @@ VP_TO_TMPFS_DIR(struct vnode *vp) */ #define BSIZE (off_t)16384 /* buffer cache size*/ #define BMASK (off_t)(BSIZE - 1) +#endif /* _KERNEL */ #endif /* _VFS_TMPFS_TMPFS_H_ */