Home
last modified time | relevance | path

Searched refs:vnode (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/freebsd/sys/fs/unionfs/
H A Dunion.h56 struct vnode *um_lowervp; /* VREFed once */
57 struct vnode *um_uppervp; /* VREFed once */
58 struct vnode *um_rootvp; /* ROOT vnode */
85 struct vnode *un_lowervp; /* lower side vnode */
86 struct vnode *un_uppervp; /* upper side vnode */
87 struct vnode *un_dvp; /* parent unionfs vnode */
88 struct vnode *un_vnode; /* Back pointer */
115 unionfs_check_vnode(struct vnode *vp, const char *file __unused, in unionfs_check_vnode()
133 int unionfs_nodeget(struct mount *, struct vnode *, struct vnode *,
134 struct vnode *, struct vnode **, struct componentname *);
[all …]
H A Dunion_subr.c132 unionfs_get_hashhead(struct vnode *dvp, struct vnode *lookup) in unionfs_get_hashhead()
145 static struct vnode *
146 unionfs_get_cached_vnode_locked(struct vnode *lookup, struct vnode *dvp) in unionfs_get_cached_vnode_locked()
150 struct vnode *vp; in unionfs_get_cached_vnode_locked()
179 static struct vnode *
180 unionfs_get_cached_vnode(struct vnode *uvp, struct vnode *lvp, in unionfs_get_cached_vnode()
181 struct vnode *dvp) in unionfs_get_cached_vnode()
183 struct vnode *vp; in unionfs_get_cached_vnode()
199 static struct vnode *
201 struct vnode *dvp) in unionfs_ins_cached_vnode()
[all …]
/freebsd/sys/security/mac_bsdextended/
H A Dugidfw_internal.h36 int ugidfw_check(struct ucred *cred, struct vnode *vp, struct vattr *vap,
38 int ugidfw_check_vp(struct ucred *cred, struct vnode *vp, int acc_mode);
43 int ugidfw_system_check_acct(struct ucred *cred, struct vnode *vp,
45 int ugidfw_system_check_auditctl(struct ucred *cred, struct vnode *vp,
47 int ugidfw_system_check_swapon(struct ucred *cred, struct vnode *vp,
53 int ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp,
55 int ugidfw_vnode_check_chdir(struct ucred *cred, struct vnode *dvp,
57 int ugidfw_vnode_check_chroot(struct ucred *cred, struct vnode *dvp,
59 int ugidfw_check_create_vnode(struct ucred *cred, struct vnode *dvp,
62 int ugidfw_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp,
[all …]
H A Dugidfw_vnode.c62 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_access()
70 ugidfw_vnode_check_chdir(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_chdir()
78 ugidfw_vnode_check_chroot(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_chroot()
86 ugidfw_check_create_vnode(struct ucred *cred, struct vnode *dvp, in ugidfw_check_create_vnode()
94 ugidfw_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteacl()
102 ugidfw_vnode_check_deleteextattr(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteextattr()
110 ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_exec()
119 ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getacl()
127 ugidfw_vnode_check_getextattr(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getextattr()
135 ugidfw_vnode_check_link(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_link()
[all …]
/freebsd/sys/sys/
H A Dvnode.h131 struct vnode { struct
149 TAILQ_ENTRY(vnode) v_nmntvnodes; /* m vnodes for mount point */ argument
165 LIST_ENTRY(vnode) v_hashlist;
184 TAILQ_ENTRY(vnode) v_vnodelist; /* l vnode lists */
185 TAILQ_ENTRY(vnode) v_lazylist; /* l vnode lazy list */
216 _Static_assert(sizeof(struct vnode) <= 448, "vnode size crosses 448 bytes"); argument
222 #define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj)
463 extern struct vnode *rootvnode; /* root (i.e. "/") vnode */
556 void assert_vi_locked(struct vnode *vp, const char *str);
557 void assert_vi_unlocked(struct vnode *vp, const char *str);
[all …]
H A Ddtrace_bsd.h39 struct vnode;
92 struct vnode *);
99 struct vnode *, uid_t, uint32_t);
108 struct vnode *, uid_t, uint32_t, int);
116 struct vnode *);
123 struct vnode *, struct vattr *);
130 struct vnode *);
137 struct vnode *, struct vattr *, int);
145 struct vnode *, struct mbuf *, struct ucred *, int);
152 struct vnode *, struct mbuf *, struct ucred *, int, int);
/freebsd/sys/ufs/ffs/
H A Dffs_extern.h50 struct vnode;
57 int ffs_balloc_ufs1(struct vnode *a_vp, off_t a_startoffset, int a_size,
59 int ffs_balloc_ufs2(struct vnode *a_vp, off_t a_startoffset, int a_size,
61 void ffs_blkfree(struct ufsmount *, struct fs *, struct vnode *,
67 uint64_t ffs_blkrelease_start(struct ufsmount *, struct vnode *, ino_t);
69 int ffs_checkfreefile(struct fs *, struct vnode *, ino_t);
73 int ffs_copyonwrite(struct vnode *, struct buf *);
76 int ffs_freefile(struct ufsmount *, struct fs *, struct vnode *, ino_t,
79 int ffs_getcg(struct fs *, struct vnode *, uint64_t, int, struct buf **,
81 int ffs_inotovp(struct mount *, ino_t, uint64_t, int, struct vnode **,
[all …]
/freebsd/sys/kern/
H A Dvnode_if.src41 # -: not applicable. vnode does not yet (or no longer) exists.
55 IN struct vnode *vp;
67 IN struct vnode *dvp;
68 INOUT struct vnode **vpp;
79 IN struct vnode *dvp;
80 INOUT struct vnode **vpp;
91 IN struct vnode *dvp;
92 OUT struct vnode **vpp;
103 IN struct vnode *dvp;
115 IN struct vnode *dvp;
[all …]
H A Dvfs_subr.c104 static void delmntque(struct vnode *vp);
108 static int vtryrecycle(struct vnode *vp, bool isvnlru);
109 static void v_init_counters(struct vnode *);
110 static void vn_seqc_init(struct vnode *);
111 static void vn_seqc_write_end_free(struct vnode *vp);
112 static void vgonel(struct vnode *);
113 static bool vhold_recycle_free(struct vnode *);
114 static void vdropl_recycle(struct vnode *vp);
115 static void vdrop_recycle(struct vnode *vp);
120 static int v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo,
[all …]
H A Dvfs_hash.c40 static LIST_HEAD(vfs_hash_head, vnode) *vfs_hash_tbl;
41 static LIST_HEAD(,vnode) vfs_hash_side;
58 vfs_hash_index(struct vnode *vp) in vfs_hash_index()
73 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) in vfs_hash_get()
75 struct vnode *vp; in vfs_hash_get()
114 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) in vfs_hash_ref()
116 struct vnode *vp; in vfs_hash_ref()
143 vfs_hash_remove(struct vnode *vp) in vfs_hash_remove()
152 vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, in vfs_hash_insert()
153 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) in vfs_hash_insert()
[all …]
/freebsd/sys/fs/fuse/
H A Dfuse_internal.h86 vnode_mount(struct vnode *vp) in vnode_mount()
92 vnode_vtype(struct vnode *vp) in vnode_vtype()
98 vnode_isvroot(struct vnode *vp) in vnode_isvroot()
104 vnode_isreg(struct vnode *vp) in vnode_isreg()
110 vnode_isdir(struct vnode *vp) in vnode_isdir()
116 vnode_islnk(struct vnode *vp) in vnode_islnk()
142 fuse_isdeadfs(struct vnode *vp) in fuse_isdeadfs()
150 fuse_iosize(struct vnode *vp) in fuse_iosize()
202 fuse_internal_get_cached_vnode(struct mount*, ino_t, int, struct vnode**);
219 int fuse_internal_access(struct vnode *vp, accmode_t mode,
[all …]
H A Dfuse_node.h145 fuse_vnode_attr_cache_valid(struct vnode *vp) in fuse_vnode_attr_cache_valid()
154 VTOVA(struct vnode *vp) in VTOVA()
163 fuse_vnode_clear_attr_cache(struct vnode *vp) in fuse_vnode_clear_attr_cache()
181 int fuse_vnode_cmp(struct vnode *vp, void *nidp);
184 fuse_vnode_setparent(struct vnode *vp, struct vnode *dvp) in fuse_vnode_setparent()
195 int fuse_vnode_size(struct vnode *vp, off_t *filesize, struct ucred *cred,
198 void fuse_vnode_destroy(struct vnode *vp);
201 uint64_t nodeid, struct vnode *dvp, struct vnode **vpp,
204 void fuse_vnode_open(struct vnode *vp, int32_t fuse_open_flags,
207 int fuse_vnode_savesize(struct vnode *vp, struct ucred *cred, pid_t pid);
[all …]
H A Dfuse_io.h66 int fuse_io_strategy(struct vnode *vp, struct buf *bp);
67 int fuse_io_flushbuf(struct vnode *vp, int waitfor, struct thread *td);
68 int fuse_io_invalbuf(struct vnode *vp, struct thread *td);
69 int fuse_read_directbackend(struct vnode *vp, struct uio *uio,
71 int fuse_read_biobackend(struct vnode *vp, struct uio *uio, int ioflag,
73 int fuse_write_directbackend(struct vnode *vp, struct uio *uio,
76 int fuse_write_biobackend(struct vnode *vp, struct uio *uio,
/freebsd/sys/fs/ext2fs/
H A Dext2_extern.h49 struct vnode;
51 int ext2_add_entry(struct vnode *, struct ext2fs_direct_2 *);
57 int ext2_blkatoff(struct vnode *, off_t, char **, struct buf **);
62 int ext2_bmaparray(struct vnode *, daddr_t, daddr_t *, int *, int *);
63 int ext4_bmapext(struct vnode *, int32_t, int64_t *, int *, int *);
64 int ext2_bmap_seekdata(struct vnode *, off_t *);
68 int ext2_getlbns(struct vnode *, daddr_t, struct indir *, int *);
70 void ext2_itimes(struct vnode *vp);
73 int ext2_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *);
74 int ext2_update(struct vnode *, int);
[all …]
/freebsd/sys/security/mac/
H A Dmac_framework.h90 struct vnode;
157 struct vnode *vp);
159 struct vnode *vp);
237 int mac_kld_check_load(struct ucred *cred, struct vnode *vp);
409 void mac_execve_interpreter_enter(struct vnode *interpvp,
448 int mac_system_check_acct(struct ucred *cred, struct vnode *vp);
450 int mac_system_check_auditctl(struct ucred *cred, struct vnode *vp);
453 int mac_system_check_swapon(struct ucred *cred, struct vnode *vp);
454 int mac_system_check_swapoff(struct ucred *cred, struct vnode *vp);
510 void mac_vnode_assert_locked(struct vnode *vp, const char *func);
[all …]
H A Dmac_vfs.c84 struct vnode *vp, struct label *intlabel);
137 mac_vnode_init(struct vnode *vp) in mac_vnode_init()
191 mac_vnode_destroy(struct vnode *vp) in mac_vnode_destroy()
213 MAC_POLICY_EXTERNALIZE(vnode, label, elements, outbuf, outbuflen); in mac_vnode_externalize_label()
223 MAC_POLICY_INTERNALIZE(vnode, label, string); in mac_vnode_internalize_label()
229 mac_devfs_update(struct mount *mp, struct devfs_dirent *de, struct vnode *vp) in mac_devfs_update()
238 struct vnode *vp) in mac_devfs_vnode_associate()
246 mac_vnode_associate_extattr(struct mount *mp, struct vnode *vp) in mac_vnode_associate_extattr()
259 mac_vnode_associate_singlelabel(struct mount *mp, struct vnode *vp) in mac_vnode_associate_singlelabel()
277 struct vnode *dvp, struct vnode *vp, struct componentname *cnp) in mac_vnode_create_extattr()
[all …]
/freebsd/sys/fs/nfsclient/
H A Dnfs.h92 int ncl_meta_setsize(struct vnode *, struct thread *, u_quad_t);
93 int ncl_bioread(struct vnode *, struct uio *, int, struct ucred *);
94 int ncl_biowrite(struct vnode *, struct uio *, int, struct ucred *);
95 int ncl_vinvalbuf(struct vnode *, int, struct thread *, int);
98 int ncl_doio(struct vnode *, struct buf *, struct ucred *, struct thread *,
104 int ncl_getattrcache(struct vnode *, struct vattr *);
105 int ncl_readrpc(struct vnode *, struct uio *, struct ucred *);
106 int ncl_writerpc(struct vnode *, struct uio *, struct ucred *, int *, int *,
108 int ncl_readlinkrpc(struct vnode *, struct uio *, struct ucred *);
109 int ncl_readdirrpc(struct vnode *, struc
[all...]
/freebsd/sys/nfsclient/
H A Dnfs.h157 int (*nr_readrpc)(struct vnode *vp, struct uio *uiop,
159 int (*nr_writerpc)(struct vnode *vp, struct uio *uiop,
162 int (*nr_readlinkrpc)(struct vnode *vp, struct uio *uiop,
164 void (*nr_invaldir)(struct vnode *vp);
165 int (*nr_commit)(struct vnode *vp, u_quad_t offset, int cnt,
243 void nfs_purgecache(struct vnode *);
244 int nfs_vinvalbuf(struct vnode *, int, struct thread *, int);
245 int nfs_readrpc(struct vnode *, struct uio *, struct ucred *);
246 int nfs_writerpc(struct vnode *, struct uio *, struct ucred *, int *,
248 int nfs_commit(struct vnode *vp, u_quad_t offset, int cnt,
[all …]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs.h237 struct vnode * tn_vnode; /* (i) */
478 void tmpfs_destroy_vobject(struct vnode *vp, vm_object_t obj);
480 struct vnode **);
481 void tmpfs_free_vp(struct vnode *);
482 int tmpfs_alloc_file(struct vnode *, struct vnode **, struct vattr *,
484 void tmpfs_check_mtime(struct vnode *);
485 void tmpfs_dir_attach(struct vnode *, struct tmpfs_dirent *);
486 void tmpfs_dir_detach(struct vnode *, struct tmpfs_dirent *);
493 int tmpfs_dir_whiteout_add(struct vnode *, struct componentname *);
494 void tmpfs_dir_whiteout_remove(struct vnode *, struct componentname *);
[all …]
/freebsd/sys/ufs/ufs/
H A Dufs_extern.h45 struct vnode;
56 int ufs_bmaparray(struct vnode *, ufs2_daddr_t, ufs2_daddr_t *,
58 int ufs_bmap_seekdata(struct vnode *, off_t *);
61 int ufs_dirbadentry(struct vnode *, struct direct *, int);
67 int ufs_direnter(struct vnode *, struct vnode *, struct direct *,
69 int ufs_dirremove(struct vnode *, struct inode *, int, bool);
71 int ufs_lookup_ino(struct vnode *, struct vnode **, struct componentname *,
73 int ufs_getlbns(struct vnode *, ufs2_daddr_t, struct indir *, int *);
76 void ufs_itimes(struct vnode *vp);
84 int ufs_vinit(struct mount *, struct vop_vector *, struct vnode **);
[all …]
/freebsd/lib/libprocstat/
H A Dcommon_kvm.h40 int devfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
41 int isofs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
42 int msdosfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
43 int nfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
44 int smbfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
45 int udf_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
46 int ufs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
47 int zfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
48 void *getvnodedata(struct vnode *vp);
49 struct mount *getvnodemount(struct vnode *vp);
/freebsd/sys/fs/nullfs/
H A Dnull.h46 struct vnode *nullm_lowerrootvp; /* Ref to lower root vnode */
58 struct vnode *null_lowervp; /* VREFed once */
59 struct vnode *null_vnode; /* Back pointer */
73 int null_nodeget(struct mount *mp, struct vnode *target, struct vnode **vpp);
74 struct vnode *null_hashget(struct mount *mp, struct vnode *lowervp);
79 struct vnode *null_checkvp(struct vnode *vp, char *fil, int lno);
89 null_is_nullfs_vnode(struct vnode *vp) in null_is_nullfs_vnode()
H A Dnull_vnops.c205 null_copy_inotify(struct vnode *vp, struct vnode *lvp, short flag) in null_copy_inotify()
243 struct vnode **this_vp_p; in null_bypass()
244 struct vnode *old_vps[VDESC_MAX_VPS]; in null_bypass()
245 struct vnode **vps_p[VDESC_MAX_VPS]; in null_bypass()
246 struct vnode ***vppp; in null_bypass()
247 struct vnode *lvp; in null_bypass()
272 vps_p[i] = this_vp_p = VOPARG_OFFSETTO(struct vnode **, in null_bypass()
379 vppp = VOPARG_OFFSETTO(struct vnode ***, in null_bypass()
392 struct vnode *lvp, *vp; in null_add_writecount()
418 struct vnode *dvp = ap->a_dvp; in null_lookup()
[all …]
/freebsd/sys/fs/smbfs/
H A Dsmbfs_node.h47 struct vnode * n_parent;
48 struct vnode * n_vnode;
70 struct vnode * n_parent;
76 #define SMBTOV(np) ((struct vnode *)(np)->n_vnode)
90 int smbfs_nget(struct mount *mp, struct vnode *dvp, const char *name, int nmlen,
91 struct smbfattr *fap, struct vnode **vpp);
96 int smbfs_readvnode(struct vnode *vp, struct uio *uiop, struct ucred *cred, int *eofp);
97 int smbfs_writevnode(struct vnode *vp, struct uio *uiop, struct ucred *cred, int ioflag);
98 void smbfs_attr_cacheenter(struct vnode *vp, struct smbfattr *fap);
99 int smbfs_attr_cachelookup(struct vnode *vp ,struct vattr *va);
/freebsd/sys/security/mac_stub/
H A Dmac_stub.c374 struct label *delabel, struct vnode *vp, struct label *vplabel) in stub_devfs_update()
381 struct devfs_dirent *de, struct label *delabel, struct vnode *vp, in stub_devfs_vnode_associate()
548 stub_kld_check_load(struct ucred *cred, struct vnode *vp, in stub_kld_check_load()
1202 stub_system_check_acct(struct ucred *cred, struct vnode *vp, in stub_system_check_acct()
1217 stub_system_check_auditctl(struct ucred *cred, struct vnode *vp, in stub_system_check_auditctl()
1239 stub_system_check_swapoff(struct ucred *cred, struct vnode *vp, in stub_system_check_swapoff()
1247 stub_system_check_swapon(struct ucred *cred, struct vnode *vp, in stub_system_check_swapon()
1435 struct vnode *vp, struct label *vplabel) in stub_vnode_associate_extattr()
1443 struct vnode *vp, struct label *vplabel) in stub_vnode_associate_singlelabel()
1449 stub_vnode_check_access(struct ucred *cred, struct vnode *vp, in stub_vnode_check_access()
[all …]

12345678910>>...17