Home
last modified time | relevance | path

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

12345678910>>...17

/freebsd-14-stable/sys/sys/
HDvnode.h126 struct vnode { struct
144 TAILQ_ENTRY(vnode) v_nmntvnodes; /* m vnodes for mount point */ argument
160 LIST_ENTRY(vnode) v_hashlist;
179 TAILQ_ENTRY(vnode) v_vnodelist; /* l vnode lists */
180 TAILQ_ENTRY(vnode) v_lazylist; /* l vnode lazy list */
209 _Static_assert(sizeof(struct vnode) <= 448, "vnode size crosses 448 bytes"); argument
215 #define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj)
448 #define NULLVP ((struct vnode *)NULL)
453 extern struct vnode *rootvnode; /* root (i.e. "/") vnode */
546 void assert_vi_locked(struct vnode *vp, const char *str);
[all …]
HDdtrace_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-14-stable/sys/fs/unionfs/
HDunion.h58 struct vnode *um_lowervp; /* VREFed once */
59 struct vnode *um_uppervp; /* VREFed once */
60 struct vnode *um_rootvp; /* ROOT vnode */
87 struct vnode *un_lowervp; /* lower side vnode */
88 struct vnode *un_uppervp; /* upper side vnode */
89 struct vnode *un_dvp; /* parent unionfs vnode */
90 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 …]
HDunion_subr.c134 unionfs_get_hashhead(struct vnode *dvp, struct vnode *lookup) in unionfs_get_hashhead()
147 static struct vnode *
148 unionfs_get_cached_vnode_locked(struct vnode *lookup, struct vnode *dvp) in unionfs_get_cached_vnode_locked()
152 struct vnode *vp; in unionfs_get_cached_vnode_locked()
181 static struct vnode *
182 unionfs_get_cached_vnode(struct vnode *uvp, struct vnode *lvp, in unionfs_get_cached_vnode()
183 struct vnode *dvp) in unionfs_get_cached_vnode()
185 struct vnode *vp; in unionfs_get_cached_vnode()
201 static struct vnode *
203 struct vnode *dvp) in unionfs_ins_cached_vnode()
[all …]
/freebsd-14-stable/sys/security/mac_bsdextended/
HDugidfw_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 …]
HDugidfw_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-14-stable/sys/ufs/ffs/
HDffs_extern.h52 struct vnode;
59 int ffs_balloc_ufs1(struct vnode *a_vp, off_t a_startoffset, int a_size,
61 int ffs_balloc_ufs2(struct vnode *a_vp, off_t a_startoffset, int a_size,
63 void ffs_blkfree(struct ufsmount *, struct fs *, struct vnode *,
69 uint64_t ffs_blkrelease_start(struct ufsmount *, struct vnode *, ino_t);
71 int ffs_checkfreefile(struct fs *, struct vnode *, ino_t);
75 int ffs_copyonwrite(struct vnode *, struct buf *);
78 int ffs_freefile(struct ufsmount *, struct fs *, struct vnode *, ino_t,
81 int ffs_getcg(struct fs *, struct vnode *, uint64_t, int, struct buf **,
83 int ffs_inotovp(struct mount *, ino_t, uint64_t, int, struct vnode **,
[all …]
/freebsd-14-stable/sys/fs/fuse/
HDfuse_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 …]
HDfuse_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 …]
HDfuse_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-14-stable/sys/kern/
HDvnode_if.src44 # -: not applicable. vnode does not yet (or no longer) exists.
58 IN struct vnode *vp;
70 IN struct vnode *dvp;
71 INOUT struct vnode **vpp;
82 IN struct vnode *dvp;
83 INOUT struct vnode **vpp;
94 IN struct vnode *dvp;
95 OUT struct vnode **vpp;
106 IN struct vnode *dvp;
118 IN struct vnode *dvp;
[all …]
HDvfs_subr.c111 static void delmntque(struct vnode *vp);
115 static int vtryrecycle(struct vnode *vp, bool isvnlru);
116 static void v_init_counters(struct vnode *);
117 static void vn_seqc_init(struct vnode *);
118 static void vn_seqc_write_end_free(struct vnode *vp);
119 static void vgonel(struct vnode *);
120 static bool vhold_recycle_free(struct vnode *);
121 static void vdropl_recycle(struct vnode *vp);
122 static void vdrop_recycle(struct vnode *vp);
127 static int v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo,
[all …]
HDvfs_hash.c41 static LIST_HEAD(vfs_hash_head, vnode) *vfs_hash_tbl;
42 static LIST_HEAD(,vnode) vfs_hash_side;
59 vfs_hash_index(struct vnode *vp) in vfs_hash_index()
74 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) in vfs_hash_get()
76 struct vnode *vp; in vfs_hash_get()
115 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) in vfs_hash_ref()
117 struct vnode *vp; in vfs_hash_ref()
144 vfs_hash_remove(struct vnode *vp) in vfs_hash_remove()
153 vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, in vfs_hash_insert()
154 struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) in vfs_hash_insert()
[all …]
/freebsd-14-stable/sys/security/mac/
HDmac_framework.h88 struct vnode;
155 struct vnode *vp);
157 struct vnode *vp);
235 int mac_kld_check_load(struct ucred *cred, struct vnode *vp);
391 void mac_execve_interpreter_enter(struct vnode *interpvp,
430 int mac_system_check_acct(struct ucred *cred, struct vnode *vp);
432 int mac_system_check_auditctl(struct ucred *cred, struct vnode *vp);
435 int mac_system_check_swapon(struct ucred *cred, struct vnode *vp);
436 int mac_system_check_swapoff(struct ucred *cred, struct vnode *vp);
492 void mac_vnode_assert_locked(struct vnode *vp, const char *func);
[all …]
HDmac_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-14-stable/sys/fs/ext2fs/
HDext2_extern.h51 struct vnode;
53 int ext2_add_entry(struct vnode *, struct ext2fs_direct_2 *);
59 int ext2_blkatoff(struct vnode *, off_t, char **, struct buf **);
64 int ext2_bmaparray(struct vnode *, daddr_t, daddr_t *, int *, int *);
65 int ext4_bmapext(struct vnode *, int32_t, int64_t *, int *, int *);
66 int ext2_bmap_seekdata(struct vnode *, off_t *);
70 int ext2_getlbns(struct vnode *, daddr_t, struct indir *, int *);
72 void ext2_itimes(struct vnode *vp);
75 int ext2_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *);
76 int ext2_update(struct vnode *, int);
[all …]
/freebsd-14-stable/sys/fs/nfsclient/
HDnfs.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 *, struct uio *, struct ucred *,
[all …]
/freebsd-14-stable/sys/nfsclient/
HDnfs.h159 int (*nr_readrpc)(struct vnode *vp, struct uio *uiop,
161 int (*nr_writerpc)(struct vnode *vp, struct uio *uiop,
164 int (*nr_readlinkrpc)(struct vnode *vp, struct uio *uiop,
166 void (*nr_invaldir)(struct vnode *vp);
167 int (*nr_commit)(struct vnode *vp, u_quad_t offset, int cnt,
245 void nfs_purgecache(struct vnode *);
246 int nfs_vinvalbuf(struct vnode *, int, struct thread *, int);
247 int nfs_readrpc(struct vnode *, struct uio *, struct ucred *);
248 int nfs_writerpc(struct vnode *, struct uio *, struct ucred *, int *,
250 int nfs_commit(struct vnode *vp, u_quad_t offset, int cnt,
[all …]
/freebsd-14-stable/sys/fs/tmpfs/
HDtmpfs.h237 struct vnode * tn_vnode; /* (i) */
469 void tmpfs_destroy_vobject(struct vnode *vp, vm_object_t obj);
471 struct vnode **);
472 void tmpfs_free_vp(struct vnode *);
473 int tmpfs_alloc_file(struct vnode *, struct vnode **, struct vattr *,
475 void tmpfs_check_mtime(struct vnode *);
476 void tmpfs_dir_attach(struct vnode *, struct tmpfs_dirent *);
477 void tmpfs_dir_detach(struct vnode *, struct tmpfs_dirent *);
484 int tmpfs_dir_whiteout_add(struct vnode *, struct componentname *);
485 void tmpfs_dir_whiteout_remove(struct vnode *, struct componentname *);
[all …]
/freebsd-14-stable/sys/ufs/ufs/
HDufs_extern.h47 struct vnode;
58 int ufs_bmaparray(struct vnode *, ufs2_daddr_t, ufs2_daddr_t *,
60 int ufs_bmap_seekdata(struct vnode *, off_t *);
63 int ufs_dirbadentry(struct vnode *, struct direct *, int);
69 int ufs_direnter(struct vnode *, struct vnode *, struct direct *,
71 int ufs_dirremove(struct vnode *, struct inode *, int, int);
73 int ufs_lookup_ino(struct vnode *, struct vnode **, struct componentname *,
75 int ufs_getlbns(struct vnode *, ufs2_daddr_t, struct indir *, int *);
78 void ufs_itimes(struct vnode *vp);
86 int ufs_vinit(struct mount *, struct vop_vector *, struct vnode **);
[all …]
/freebsd-14-stable/lib/libprocstat/
HDcommon_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-14-stable/sys/fs/smbfs/
HDsmbfs_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);
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-14-stable/sys/fs/nullfs/
HDnull.h44 struct vnode *nullm_lowerrootvp; /* Ref to lower root vnode */
56 struct vnode *null_lowervp; /* VREFed once */
57 struct vnode *null_vnode; /* Back pointer */
70 int null_nodeget(struct mount *mp, struct vnode *target, struct vnode **vpp);
71 struct vnode *null_hashget(struct mount *mp, struct vnode *lowervp);
76 struct vnode *null_checkvp(struct vnode *vp, char *fil, int lno);
HDnull_vnops.c223 struct vnode **this_vp_p; in null_bypass()
224 struct vnode *old_vps[VDESC_MAX_VPS]; in null_bypass()
225 struct vnode **vps_p[VDESC_MAX_VPS]; in null_bypass()
226 struct vnode ***vppp; in null_bypass()
227 struct vnode *lvp; in null_bypass()
252 vps_p[i] = this_vp_p = VOPARG_OFFSETTO(struct vnode **, in null_bypass()
352 vppp = VOPARG_OFFSETTO(struct vnode ***, in null_bypass()
365 struct vnode *lvp, *vp; in null_add_writecount()
391 struct vnode *dvp = ap->a_dvp; in null_lookup()
393 struct vnode *vp, *ldvp, *lvp; in null_lookup()
[all …]
/freebsd-14-stable/sys/security/mac_stub/
HDmac_stub.c373 struct label *delabel, struct vnode *vp, struct label *vplabel) in stub_devfs_update()
380 struct devfs_dirent *de, struct label *delabel, struct vnode *vp, in stub_devfs_vnode_associate()
547 stub_kld_check_load(struct ucred *cred, struct vnode *vp, in stub_kld_check_load()
1133 stub_system_check_acct(struct ucred *cred, struct vnode *vp, in stub_system_check_acct()
1148 stub_system_check_auditctl(struct ucred *cred, struct vnode *vp, in stub_system_check_auditctl()
1170 stub_system_check_swapoff(struct ucred *cred, struct vnode *vp, in stub_system_check_swapoff()
1178 stub_system_check_swapon(struct ucred *cred, struct vnode *vp, in stub_system_check_swapon()
1366 struct vnode *vp, struct label *vplabel) in stub_vnode_associate_extattr()
1374 struct vnode *vp, struct label *vplabel) in stub_vnode_associate_singlelabel()
1380 stub_vnode_check_access(struct ucred *cred, struct vnode *vp, in stub_vnode_check_access()
[all …]

12345678910>>...17