PERFORCE change 194385 for review

Ilya Putsikau ilya at FreeBSD.org
Tue Jun 7 10:57:22 UTC 2011


http://p4web.freebsd.org/@@194385?ac=10

Change 194385 by ilya at ilya_triton2011 on 2011/06/07 10:57:14

	Add one line functions to access uio and vnode fields used by Mac OS X

Affected files ...

.. //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_internal.h#6 edit

Differences ...

==== //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_internal.h#6 (text+ko) ====

@@ -14,6 +14,42 @@
 #include "fuse_ipc.h"
 #include "fuse_node.h"
 
+static __inline struct mount *
+vnode_mount(struct vnode *vp)
+{
+	return (vp->v_mount);
+}
+
+static __inline enum vtype
+vnode_vtype(struct vnode *vp)
+{
+    return (vp->v_type);
+}
+
+static __inline int
+vnode_isvroot(struct vnode *vp)
+{
+    return ((vp->v_vflag & VV_ROOT) != 0 ? 1 : 0);
+}
+
+static __inline ssize_t
+uio_resid(struct uio *uio)
+{
+    return (uio->uio_resid);
+}
+
+static __inline off_t
+uio_offset(struct uio *uio)
+{
+    return (uio->uio_offset);
+}
+
+static __inline void
+uio_setoffset(struct uio *uio, off_t offset)
+{
+    uio->uio_offset = offset;
+}
+
 /* XXX */
 struct fuse_pidcred {
 	pid_t pid;


More information about the p4-projects mailing list