vnode_if.h
来自「基于组件方式开发操作系统的OSKIT源代码」· C头文件 代码 · 共 1,685 行 · 第 1/3 页
H
1,685 行
struct ucred *a_cred; int a_flags; off_t a_offlo; off_t a_offhi; struct proc *a_p;};extern struct vnodeop_desc vop_fsync_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_FSYNC(struct vnode *, struct ucred *, int, off_t, off_t, struct proc *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_FSYNC(vp, cred, flags, offlo, offhi, p) struct vnode *vp; struct ucred *cred; int flags; off_t offlo; off_t offhi; struct proc *p;{ struct vop_fsync_args a; a.a_desc = VDESC(vop_fsync); a.a_vp = vp; a.a_cred = cred; a.a_flags = flags; a.a_offlo = offlo; a.a_offhi = offhi; a.a_p = p; return (VCALL(vp, VOFFSET(vop_fsync), &a));}#endifstruct vop_seek_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; off_t a_oldoff; off_t a_newoff; struct ucred *a_cred;};extern struct vnodeop_desc vop_seek_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_SEEK(struct vnode *, off_t, off_t, struct ucred *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_SEEK(vp, oldoff, newoff, cred) struct vnode *vp; off_t oldoff; off_t newoff; struct ucred *cred;{ struct vop_seek_args a; a.a_desc = VDESC(vop_seek); a.a_vp = vp; a.a_oldoff = oldoff; a.a_newoff = newoff; a.a_cred = cred; return (VCALL(vp, VOFFSET(vop_seek), &a));}#endifstruct vop_remove_args { struct vnodeop_desc *a_desc; struct vnode *a_dvp; struct vnode *a_vp; struct componentname *a_cnp;};extern struct vnodeop_desc vop_remove_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_REMOVE(struct vnode *, struct vnode *, struct componentname *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_REMOVE(dvp, vp, cnp) struct vnode *dvp; struct vnode *vp; struct componentname *cnp;{ struct vop_remove_args a; a.a_desc = VDESC(vop_remove); a.a_dvp = dvp; a.a_vp = vp; a.a_cnp = cnp; return (VCALL(dvp, VOFFSET(vop_remove), &a));}#endifstruct vop_link_args { struct vnodeop_desc *a_desc; struct vnode *a_dvp; struct vnode *a_vp; struct componentname *a_cnp;};extern struct vnodeop_desc vop_link_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_LINK(struct vnode *, struct vnode *, struct componentname *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_LINK(dvp, vp, cnp) struct vnode *dvp; struct vnode *vp; struct componentname *cnp;{ struct vop_link_args a; a.a_desc = VDESC(vop_link); a.a_dvp = dvp; a.a_vp = vp; a.a_cnp = cnp; return (VCALL(dvp, VOFFSET(vop_link), &a));}#endifstruct vop_rename_args { struct vnodeop_desc *a_desc; struct vnode *a_fdvp; struct vnode *a_fvp; struct componentname *a_fcnp; struct vnode *a_tdvp; struct vnode *a_tvp; struct componentname *a_tcnp;};extern struct vnodeop_desc vop_rename_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_RENAME(struct vnode *, struct vnode *, struct componentname *, struct vnode *, struct vnode *, struct componentname *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_RENAME(fdvp, fvp, fcnp, tdvp, tvp, tcnp) struct vnode *fdvp; struct vnode *fvp; struct componentname *fcnp; struct vnode *tdvp; struct vnode *tvp; struct componentname *tcnp;{ struct vop_rename_args a; a.a_desc = VDESC(vop_rename); a.a_fdvp = fdvp; a.a_fvp = fvp; a.a_fcnp = fcnp; a.a_tdvp = tdvp; a.a_tvp = tvp; a.a_tcnp = tcnp; return (VCALL(fdvp, VOFFSET(vop_rename), &a));}#endifstruct vop_mkdir_args { struct vnodeop_desc *a_desc; struct vnode *a_dvp; struct vnode **a_vpp; struct componentname *a_cnp; struct vattr *a_vap;};extern struct vnodeop_desc vop_mkdir_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_MKDIR(struct vnode *, struct vnode **, struct componentname *, struct vattr *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_MKDIR(dvp, vpp, cnp, vap) struct vnode *dvp; struct vnode **vpp; struct componentname *cnp; struct vattr *vap;{ struct vop_mkdir_args a; a.a_desc = VDESC(vop_mkdir); a.a_dvp = dvp; a.a_vpp = vpp; a.a_cnp = cnp; a.a_vap = vap; return (VCALL(dvp, VOFFSET(vop_mkdir), &a));}#endifstruct vop_rmdir_args { struct vnodeop_desc *a_desc; struct vnode *a_dvp; struct vnode *a_vp; struct componentname *a_cnp;};extern struct vnodeop_desc vop_rmdir_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_RMDIR(struct vnode *, struct vnode *, struct componentname *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_RMDIR(dvp, vp, cnp) struct vnode *dvp; struct vnode *vp; struct componentname *cnp;{ struct vop_rmdir_args a; a.a_desc = VDESC(vop_rmdir); a.a_dvp = dvp; a.a_vp = vp; a.a_cnp = cnp; return (VCALL(dvp, VOFFSET(vop_rmdir), &a));}#endifstruct vop_symlink_args { struct vnodeop_desc *a_desc; struct vnode *a_dvp; struct vnode **a_vpp; struct componentname *a_cnp; struct vattr *a_vap; char *a_target;};extern struct vnodeop_desc vop_symlink_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_SYMLINK(struct vnode *, struct vnode **, struct componentname *, struct vattr *, char *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_SYMLINK(dvp, vpp, cnp, vap, target) struct vnode *dvp; struct vnode **vpp; struct componentname *cnp; struct vattr *vap; char *target;{ struct vop_symlink_args a; a.a_desc = VDESC(vop_symlink); a.a_dvp = dvp; a.a_vpp = vpp; a.a_cnp = cnp; a.a_vap = vap; a.a_target = target; return (VCALL(dvp, VOFFSET(vop_symlink), &a));}#endifstruct vop_readdir_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; struct uio *a_uio; struct ucred *a_cred; int *a_eofflag; off_t **a_cookies; int *a_ncookies;};extern struct vnodeop_desc vop_readdir_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_READDIR(struct vnode *, struct uio *, struct ucred *, int *, off_t **, int *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_READDIR(vp, uio, cred, eofflag, cookies, ncookies) struct vnode *vp; struct uio *uio; struct ucred *cred; int *eofflag; off_t **cookies; int *ncookies;{ struct vop_readdir_args a; a.a_desc = VDESC(vop_readdir); a.a_vp = vp; a.a_uio = uio; a.a_cred = cred; a.a_eofflag = eofflag; a.a_cookies = cookies; a.a_ncookies = ncookies; return (VCALL(vp, VOFFSET(vop_readdir), &a));}#endifstruct vop_readlink_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; struct uio *a_uio; struct ucred *a_cred;};extern struct vnodeop_desc vop_readlink_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_READLINK(struct vnode *, struct uio *, struct ucred *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_READLINK(vp, uio, cred) struct vnode *vp; struct uio *uio; struct ucred *cred;{ struct vop_readlink_args a; a.a_desc = VDESC(vop_readlink); a.a_vp = vp; a.a_uio = uio; a.a_cred = cred; return (VCALL(vp, VOFFSET(vop_readlink), &a));}#endifstruct vop_abortop_args { struct vnodeop_desc *a_desc; struct vnode *a_dvp; struct componentname *a_cnp;};extern struct vnodeop_desc vop_abortop_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_ABORTOP(struct vnode *, struct componentname *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_ABORTOP(dvp, cnp) struct vnode *dvp; struct componentname *cnp;{ struct vop_abortop_args a; a.a_desc = VDESC(vop_abortop); a.a_dvp = dvp; a.a_cnp = cnp; return (VCALL(dvp, VOFFSET(vop_abortop), &a));}#endifstruct vop_inactive_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; struct proc *a_p;};extern struct vnodeop_desc vop_inactive_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_INACTIVE(struct vnode *, struct proc *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_INACTIVE(vp, p) struct vnode *vp; struct proc *p;{ struct vop_inactive_args a; a.a_desc = VDESC(vop_inactive); a.a_vp = vp; a.a_p = p; return (VCALL(vp, VOFFSET(vop_inactive), &a));}#endifstruct vop_reclaim_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; struct proc *a_p;};extern struct vnodeop_desc vop_reclaim_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_RECLAIM(struct vnode *, struct proc *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_RECLAIM(vp, p) struct vnode *vp; struct proc *p;{ struct vop_reclaim_args a; a.a_desc = VDESC(vop_reclaim); a.a_vp = vp; a.a_p = p; return (VCALL(vp, VOFFSET(vop_reclaim), &a));}#endifstruct vop_lock_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; int a_flags;};extern struct vnodeop_desc vop_lock_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_LOCK(struct vnode *, int)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_LOCK(vp, flags) struct vnode *vp; int flags;{ struct vop_lock_args a; a.a_desc = VDESC(vop_lock); a.a_vp = vp; a.a_flags = flags; return (VCALL(vp, VOFFSET(vop_lock), &a));}#endifstruct vop_unlock_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; int a_flags;};extern struct vnodeop_desc vop_unlock_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_UNLOCK(struct vnode *, int)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_UNLOCK(vp, flags) struct vnode *vp; int flags;{ struct vop_unlock_args a; a.a_desc = VDESC(vop_unlock); a.a_vp = vp; a.a_flags = flags; return (VCALL(vp, VOFFSET(vop_unlock), &a));}#endifstruct vop_bmap_args { struct vnodeop_desc *a_desc; struct vnode *a_vp; daddr_t a_bn; struct vnode **a_vpp; daddr_t *a_bnp; int *a_runp;};extern struct vnodeop_desc vop_bmap_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_BMAP(struct vnode *, daddr_t, struct vnode **, daddr_t *, int *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_BMAP(vp, bn, vpp, bnp, runp) struct vnode *vp; daddr_t bn; struct vnode **vpp; daddr_t *bnp; int *runp;{ struct vop_bmap_args a; a.a_desc = VDESC(vop_bmap); a.a_vp = vp; a.a_bn = bn; a.a_vpp = vpp; a.a_bnp = bnp; a.a_runp = runp; return (VCALL(vp, VOFFSET(vop_bmap), &a));}#endifstruct vop_print_args { struct vnodeop_desc *a_desc; struct vnode *a_vp;};extern struct vnodeop_desc vop_print_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_PRINT(struct vnode *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_PRINT(vp) struct vnode *vp;{ struct vop_print_args a; a.a_desc = VDESC(vop_print); a.a_vp = vp; return (VCALL(vp, VOFFSET(vop_print), &a));}#endifstruct vop_islocked_args { struct vnodeop_desc *a_desc; struct vnode *a_vp;};extern struct vnodeop_desc vop_islocked_desc;#ifndef VNODE_OP_NOINLINEstatic __inline#endifint VOP_ISLOCKED(struct vnode *)#ifndef VNODE_OP_NOINLINE__attribute__((__unused__))#endif;#ifndef VNODE_OP_NOINLINEstatic __inline int VOP_ISLOCKED(vp) struct vnode *vp;{ struct vop_islocked_args a; a.a_desc = VDESC(vop_islocked); a.a_vp = vp; return (VCALL(vp, VOFFSET(vop_islocked), &a));}#endifstruct vop_pathconf_args { struct vnodeop_desc *a_desc;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?