Date: Tue, 7 Jun 2011 10:57:21 GMT From: Ilya Putsikau <ilya@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 194385 for review Message-ID: <201106071057.p57AvLVb053207@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@194385?ac=10 Change 194385 by ilya@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106071057.p57AvLVb053207>
