Lines Matching refs:vnode
103 struct vnode { struct
119 TAILQ_ENTRY(vnode) v_nmntvnodes; /* m vnodes for mount point */ argument
135 LIST_ENTRY(vnode) v_hashlist;
154 TAILQ_ENTRY(vnode) v_vnodelist; /* l vnode lists */
155 TAILQ_ENTRY(vnode) v_lazylist; /* l vnode lazy list */
188 #define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj) argument
444 #define NULLVP ((struct vnode *)NULL)
449 extern struct vnode *rootvnode; /* root (i.e. "/") vnode */
542 void assert_vi_locked(struct vnode *vp, const char *str);
543 void assert_vi_unlocked(struct vnode *vp, const char *str);
544 void assert_vop_elocked(struct vnode *vp, const char *str);
545 void assert_vop_locked(struct vnode *vp, const char *str);
546 void assert_vop_unlocked(struct vnode *vp, const char *str);
555 struct vnode *_vp = (vp); \
561 struct vnode *_vp = (vp); \
595 vn_canvmio(struct vnode *vp) in vn_canvmio()
631 struct vnode;
633 typedef int (*vn_get_ino_t)(struct mount *, void *, int, struct vnode **);
641 void cache_enter_time(struct vnode *dvp, struct vnode *vp,
644 int cache_lookup(struct vnode *dvp, struct vnode **vpp,
646 void cache_vnode_init(struct vnode *vp);
647 void cache_purge(struct vnode *vp);
648 void cache_purge_vgone(struct vnode *vp);
649 void cache_purge_negative(struct vnode *vp);
655 void cache_vop_rename(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp,
656 struct vnode *tvp, struct componentname *fcnp, struct componentname *tcnp);
657 void cache_vop_rmdir(struct vnode *dvp, struct vnode *vp);
659 void cache_validate(struct vnode *dvp, struct vnode *vp,
663 cache_validate(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) in cache_validate()
668 int change_dir(struct vnode *vp, struct thread *td);
673 struct vnode **vpp);
676 int insmntque1(struct vnode *vp, struct mount *mp,
677 void (*dtr)(struct vnode *, void *), void *dtr_arg);
678 int insmntque(struct vnode *vp, struct mount *mp);
681 int vn_vptocnp(struct vnode **vp, char *buf, size_t *buflen);
683 int vn_fullpath(struct vnode *vp, char **retbuf, char **freebuf);
684 int vn_fullpath_global(struct vnode *vp, char **retbuf, char **freebuf);
685 struct vnode *
686 vn_dir_dd_ino(struct vnode *vp);
687 int vn_commname(struct vnode *vn, char *buf, u_int buflen);
688 int vn_path_to_global_path(struct thread *td, struct vnode *vp,
700 void vlazy(struct vnode *);
701 void vdrop(struct vnode *);
702 void vdropl(struct vnode *);
704 int vget(struct vnode *vp, int flags);
705 enum vgetstate vget_prep_smr(struct vnode *vp);
706 enum vgetstate vget_prep(struct vnode *vp);
707 int vget_finish(struct vnode *vp, int flags, enum vgetstate vs);
708 void vget_finish_ref(struct vnode *vp, enum vgetstate vs);
709 void vget_abort(struct vnode *vp, enum vgetstate vs);
710 void vgone(struct vnode *vp);
711 void vhold(struct vnode *);
712 void vholdnz(struct vnode *);
713 bool vhold_smr(struct vnode *);
714 int vinactive(struct vnode *vp);
715 int vinvalbuf(struct vnode *vp, int save, int slpflag, int slptimeo);
716 int vtruncbuf(struct vnode *vp, off_t length, int blksize);
717 void v_inval_buf_range(struct vnode *vp, daddr_t startlbn, daddr_t endlbn,
719 void vunref(struct vnode *);
720 void vn_printf(struct vnode *vp, const char *fmt, ...) __printflike(2,3);
721 int vrecycle(struct vnode *vp);
722 int vrecyclel(struct vnode *vp);
723 int vn_bmap_seekhole(struct vnode *vp, u_long cmd, off_t *off,
725 int vn_close(struct vnode *vp,
727 int vn_copy_file_range(struct vnode *invp, off_t *inoffp,
728 struct vnode *outvp, off_t *outoffp, size_t *lenp,
733 int vn_fsync_buf(struct vnode *vp, int waitfor);
734 int vn_generic_copy_file_range(struct vnode *invp, off_t *inoffp,
735 struct vnode *outvp, off_t *outoffp, size_t *lenp,
738 int vn_need_pageq_flush(struct vnode *vp);
739 bool vn_isdisk_error(struct vnode *vp, int *errp);
740 bool vn_isdisk(struct vnode *vp);
741 int _vn_lock(struct vnode *vp, int flags, const char *file, int line);
743 void vn_lock_pair(struct vnode *vp1, bool vp1_locked, struct vnode *vp2,
748 int vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred,
750 void vn_pages_remove(struct vnode *vp, vm_pindex_t start, vm_pindex_t end);
751 int vn_pollrecord(struct vnode *vp, struct thread *p, int events);
752 int vn_rdwr(enum uio_rw rw, struct vnode *vp, void *base,
756 int vn_rdwr_inchunks(enum uio_rw rw, struct vnode *vp, void *base,
760 int vn_read_from_obj(struct vnode *vp, struct uio *uio);
761 int vn_rlimit_fsize(const struct vnode *vp, const struct uio *uio,
763 int vn_start_write(struct vnode *vp, struct mount **mpp, int flags);
764 int vn_start_secondary_write(struct vnode *vp, struct mount **mpp,
766 int vn_truncate_locked(struct vnode *vp, off_t length, bool sync,
768 int vn_writechk(struct vnode *vp);
769 int vn_extattr_get(struct vnode *vp, int ioflg, int attrnamespace,
771 int vn_extattr_set(struct vnode *vp, int ioflg, int attrnamespace,
773 int vn_extattr_rm(struct vnode *vp, int ioflg, int attrnamespace,
775 int vn_vget_ino(struct vnode *vp, ino_t ino, int lkflags,
776 struct vnode **rvp);
777 int vn_vget_ino_gen(struct vnode *vp, vn_get_ino_t alloc,
778 void *alloc_arg, int lkflags, struct vnode **rvp);
779 int vn_utimes_perm(struct vnode *vp, struct vattr *vap,
786 void vn_seqc_write_begin_unheld_locked(struct vnode *vp);
787 void vn_seqc_write_begin_unheld(struct vnode *vp);
788 void vn_seqc_write_begin_locked(struct vnode *vp);
789 void vn_seqc_write_begin(struct vnode *vp);
790 void vn_seqc_write_end_locked(struct vnode *vp);
791 void vn_seqc_write_end(struct vnode *vp);
811 void vn_irflag_set_locked(struct vnode *vp, short toset);
812 void vn_irflag_set(struct vnode *vp, short toset);
813 void vn_irflag_set_cond_locked(struct vnode *vp, short toset);
814 void vn_irflag_set_cond(struct vnode *vp, short toset);
815 void vn_irflag_unset_locked(struct vnode *vp, short tounset);
816 void vn_irflag_unset(struct vnode *vp, short tounset);
819 int vfs_cache_root(struct mount *mp, int flags, struct vnode **vpp);
824 struct vnode *vnlru_alloc_marker(void);
825 void vnlru_free_marker(struct vnode *);
827 void vnlru_free_vfsops(int, struct vfsops *, struct vnode *);
1009 void vput(struct vnode *vp);
1010 void vrele(struct vnode *vp);
1011 void vref(struct vnode *vp);
1012 void vrefact(struct vnode *vp);
1013 void v_addpollinfo(struct vnode *vp);
1015 vrefcnt(struct vnode *vp) in vrefcnt()
1031 int vnode_create_vobject(struct vnode *vp, off_t size, struct thread *td);
1032 void vnode_destroy_vobject(struct vnode *vp);
1048 int fifo_printinfo(struct vnode *);
1051 typedef int vfs_hash_cmp_t(struct vnode *vp, void *arg);
1055 struct thread *td, struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg);
1056 u_int vfs_hash_index(struct vnode *vp);
1057 int vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td,
1058 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg);
1060 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg);
1061 void vfs_hash_rehash(struct vnode *vp, u_int hash);
1062 void vfs_hash_remove(struct vnode *vp);
1067 int vfs_emptydir(struct vnode *vp);
1071 void vfs_unp_reclaim(struct vnode *vp);
1073 int setfmode(struct thread *td, struct ucred *cred, struct vnode *vp, int mode);
1074 int setfown(struct thread *td, struct ucred *cred, struct vnode *vp, uid_t uid,
1081 void vn_fsid(struct vnode *vp, struct vattr *va);
1083 int vn_dir_check_exec(struct vnode *vp, struct componentname *cnp);
1086 struct vnode *_vp = (vp); \
1116 struct vnode *_vp = (vp); \