| /openbsd-src/sys/sys/ |
| H A D | vnode.h | 1 /* $OpenBSD: vnode.h,v 1.176 2024/11/05 06:03:20 jsg Exp $ */ 2 /* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */ 32 * @(#)vnode.h 8.11 (Berkeley) 11/21/94 45 * The vnode is the focus of all file activity in UNIX. There is a 46 * unique vnode allocated for each active file, each current directory, 89 * Locks used to protect struct members in struct vnode: 95 struct vnode { struct 97 const struct vops *v_op; /* vnode operations vector */ argument 98 enum vtype v_type; /* vnode type */ argument 100 u_int v_flag; /* vnode flag argument 96 v_uvmvnode global() argument 101 v_lflagvnode global() argument 111 v_mountvnode global() argument 117 v_numoutputvnode global() argument 141 v_klistvnode global() argument [all...] |
| H A D | namei.h | 61 struct vnode *ni_startdir; /* starting directory */ 62 struct vnode *ni_rootdir; /* logical root directory */ 68 struct vnode *ni_vp; /* vnode of result */ 69 struct vnode *ni_dvp; /* vnode of intermediate directory */ 181 struct vnode *nc_dvp; /* vnode of parent of name */ 183 struct vnode *nc_vp; /* vnode the name refers to */ 194 int vfs_relookup(struct vnode *dvp, struct vnode **vpp, 197 void cache_purge(struct vnode *); 198 int cache_lookup(struct vnode *, struct vnode **, struct componentname *); 199 void cache_enter(struct vnode *, struct vnode *, struct componentname *); [all …]
|
| H A D | buf.h | 50 struct vnode; 150 struct vnode *b_vp; /* Device vnode. */ 251 int bread(struct vnode *, daddr_t, int, struct buf **); 252 int breadn(struct vnode *, daddr_t, int, daddr_t *, int *, int, 261 struct buf *getblk(struct vnode *, daddr_t, int, int, uint64_t); 263 struct buf *incore(struct vnode *, daddr_t); 299 void bgetvp(struct vnode *, struct buf *); 301 void buf_replacevnode(struct buf *, struct vnode *); 303 void buf_replacevnode(struct buf *, struct vnode *); 304 int bread_cluster(struct vnode *, daddr_t, int, struct buf **);
|
| H A D | specdev.h | 35 SLIST_HEAD(vnodechain, vnode); 44 SLIST_ENTRY(vnode) si_specnext; 50 struct vnode *ci_parent; /* pointer back to parent device */ 56 struct vnode *ci_vp; /* cloned vnode */
|
| /openbsd-src/sys/ufs/ufs/ |
| H A D | ufs_extern.h | 54 struct vnode; 94 int ufs_bmaparray(struct vnode *, daddr_t, daddr_t *, struct indir *, 96 int ufs_getlbns(struct vnode *, daddr_t, struct indir *, int *); 100 struct vnode *ufs_ihashget(dev_t, ufsino_t); 106 int ufs_reclaim(struct vnode *); 110 int ufs_dirbadentry(struct vnode *, struct direct *, int); 113 int ufs_direnter(struct vnode *, struct vnode *, struct direct *, 115 int ufs_dirremove(struct vnode *, struct inode *, int, int); 123 int ufs_root(struct mount *, struct vnode **); 125 int ufs_fhtovp(struct mount *, struct ufid *, struct vnode **); [all …]
|
| H A D | ufs_vnops.c | 51 #include <sys/vnode.h> 74 int ufs_chmod(struct vnode *, int, struct ucred *); 75 int ufs_chown(struct vnode *, uid_t, gid_t, struct ucred *); 93 ufs_itimes(struct vnode *vp) in ufs_itimes() 155 * Mknod vnode call 162 struct vnode **vpp = ap->a_vpp; in ufs_mknod() 225 struct vnode *vp = ap->a_vp; in ufs_close() 236 struct vnode *vp = ap->a_vp; in ufs_access() 288 struct vnode *vp = ap->a_vp; in ufs_getattr() 327 * Set attribute vnode o [all...] |
| /openbsd-src/sys/kern/ |
| H A D | vfs_vops.c | 46 #include <sys/vnode.h> 62 VOP_ISLOCKED(struct vnode *vp) in VOP_ISLOCKED() 74 VOP_LOOKUP(struct vnode *dvp, struct vnode **vpp, in VOP_LOOKUP() 89 VOP_CREATE(struct vnode *dvp, struct vnode **vpp, in VOP_CREATE() 107 VOP_MKNOD(struct vnode *dvp, struct vnode **vpp, in VOP_MKNOD() 125 VOP_OPEN(struct vnode *vp, int mode, struct ucred *cred, struct proc *p) in VOP_OPEN() 142 VOP_CLOSE(struct vnode *v [all...] |
| H A D | vfs_subr.c | 51 #include <sys/vnode.h> 96 * Insq/Remq for the vnode usage lists. 104 TAILQ_HEAD(freelst, vnode); 106 struct freelst vnode_free_list; /* vnode free list */ 110 void vclean(struct vnode *, int, struct proc *); 112 void insmntque(struct vnode *, struct mount *); 113 int getdevvp(dev_t, struct vnode **, enum vtype); 119 void vputonfreelist(struct vnode *); 121 int vflush_vnode(struct vnode *, void *); 149 * Initialize the vnode managemen in vntblinit() 899 vfs_mount_foreach_vnode(struct mount * mp,int (* func)(struct vnode *,void *),void * arg) vfs_mount_foreach_vnode() argument [all...] |
| H A D | vfs_getcwd.c | 53 vfs_getcwd_scandir(struct vnode **lvpp, struct vnode **uvpp, char **bpp, in vfs_getcwd_scandir() 63 struct vnode *uvp = NULL; in vfs_getcwd_scandir() 64 struct vnode *lvp = *lvpp; in vfs_getcwd_scandir() 209 vfs_getcwd_getcache(struct vnode **lvpp, struct vnode **uvpp, char **bpp, in vfs_getcwd_getcache() 212 struct vnode *lvp, *uvp = NULL; in vfs_getcwd_getcache() 270 vfs_getcwd_common(struct vnode *lvp, struct vnode *rvp, char **bpp, char *bufp, in vfs_getcwd_common() 274 struct vnode *uvp = NULL; in vfs_getcwd_common() 323 struct vnode *tvp; in vfs_getcwd_common()
|
| H A D | vfs_vnops.c | 52 #include <sys/vnode.h> 75 * Common code for vnode open operations. 81 struct vnode *vp; in vn_open() 185 ndp->ni_vp = cip->ci_vp; /* return cloned vnode */ in vn_open() 202 * Check for write permissions on the specified vnode. 206 vn_writechk(struct vnode *vp) in vn_writechk() 230 * the vnode, try to free it up once. If in vn_writechk() 247 vn_fsizechk(struct vnode *vp, struct uio *uio, int ioflag, ssize_t *overrun) in vn_fsizechk() 273 * Mark a vnode as being the text image of a running process. 276 vn_marktext(struct vnode *v [all...] |
| H A D | vfs_cache.c | 98 struct vnode *dvp = NULL; in cache_zap() 138 cache_lookup(struct vnode *dvp, struct vnode **vpp, in cache_lookup() 143 struct vnode *vp; in cache_lookup() 287 cache_revlookup(struct vnode *vp, struct vnode **dvpp, char **bpp, char *bufp) in cache_revlookup() 290 struct vnode *dvp = NULL; in cache_revlookup() 343 cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) in cache_enter() 431 cache_purge(struct vnode *vp) in cache_purge()
|
| /openbsd-src/sys/nfs/ |
| H A D | nfs_var.h | 48 int nfs_bioread(struct vnode *, struct uio *, int, struct ucred *); 50 int nfs_vinvalbuf(struct vnode *, int, struct ucred *, struct proc *); 65 int nfs_readlinkrpc(struct vnode *, struct uio *, struct ucred *); 66 int nfs_readrpc(struct vnode *, struct uio *); 67 int nfs_writerpc(struct vnode *, struct uio *, int *, int *); 126 int nfs_request(struct vnode *, int, struct nfsm_info *); 147 struct mbuf *, struct mbuf **, caddr_t *, struct vnode **, 156 int nfsrv_fhtovp(fhandle_t *, int, struct vnode **, struct ucred *, 172 int nfs_loadattrcache(struct vnode **, struct mbuf **, caddr_t *, 174 int nfs_getattrcache(struct vnode *, struc [all...] |
| H A D | nfs_kq.c | 50 int nfs_kqwatch(struct vnode *); 51 void nfs_kqunwatch(struct vnode *); 60 struct vnode *vp; 183 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_nfsdetach() 193 nfs_kqunwatch(struct vnode *vp) in nfs_kqunwatch() 224 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_nfsread() 304 struct vnode *vp; in nfs_kqfilter() 348 nfs_kqwatch(struct vnode *vp) in nfs_kqwatch()
|
| H A D | nfs_vnops.c | 40 * vnode op calls for Sun NFS version 2 and 3 52 #include <sys/vnode.h> 76 int nfs_commit(struct vnode *, u_quad_t, int, struct proc *); 78 int nfs_flush(struct vnode *, struct ucred *, int, struct proc *, int); 84 int nfs_lookitup(struct vnode *, char *, int, struct ucred *, struct proc *, 89 int nfs_mknodrpc(struct vnode *, struct vnode **, struct componentname *, 96 int nfs_readdirplusrpc(struct vnode *, struct uio *, struct ucred *, int *, 98 int nfs_readdirrpc(struct vnode *, struct uio *, struct ucred *, int *); 100 int nfs_removerpc(struct vnode *, cha [all...] |
| /openbsd-src/sys/ufs/ext2fs/ |
| H A D | ext2fs_extern.h | 49 struct vnode; 63 struct vnode **); 86 int ext2fs_direnter(struct inode *, struct vnode *, struct componentname *); 87 int ext2fs_dirremove(struct vnode *, struct componentname *); 94 int ext2fs_vinit(struct mount *, struct vnode **); 101 int ext2fs_mountfs(struct vnode *, struct mount *, struct proc *); 106 int ext2fs_vget(struct mount *, ino_t, struct vnode **); 107 int ext2fs_fhtovp(struct mount *, struct fid *, struct vnode **); 108 int ext2fs_vptofh(struct vnode *, struct fid *); 134 int ext2fs_makeinode(int, struct vnode *, struc [all...] |
| /openbsd-src/sys/tmpfs/ |
| H A D | tmpfs_vnops.c | 36 * tmpfs vnode interface. 47 #include <sys/vnode.h> 58 * vnode operations vector used for files stored in a tmpfs file system. 104 * => We return looked-up vnode (vpp) locked, with a reference held. 110 struct vnode *a_dvp; in tmpfs_lookup() 111 struct vnode **a_vpp; in tmpfs_lookup() 114 struct vnode *dvp = ap->a_dvp, **vpp = ap->a_vpp; in tmpfs_lookup() 180 * Lock the parent tn_nlock before releasing the vnode lock, in tmpfs_lookup() 187 * Get a vnode of the '..' entry and re-acquire the lock. in tmpfs_lookup() 277 /* Get a vnode fo in tmpfs_lookup() [all...] |
| H A D | tmpfs.h | 98 struct vnode * tn_vnode; 267 int tmpfs_alloc_file(struct vnode *, struct vnode **, struct vattr *, 270 int tmpfs_vnode_get(struct mount *, tmpfs_node_t *, struct vnode **); 286 int tmpfs_reg_resize(struct vnode *, off_t); 287 int tmpfs_truncate(struct vnode *, off_t); 289 int tmpfs_chflags(struct vnode *, int, struct ucred *, struct proc *); 290 int tmpfs_chmod(struct vnode *, mode_t, struct ucred *, struct proc *); 291 int tmpfs_chown(struct vnode *, uid_t, gid_t, struct ucred *, struct proc *); 292 int tmpfs_chsize(struct vnode *, u_quad_t, struct ucred *, struct proc *); 293 int tmpfs_chtimes(struct vnode *, const struct timespec *, [all …]
|
| /openbsd-src/sys/ufs/ffs/ |
| H A D | ffs_extern.h | 92 struct vnode; 106 int ffs_inode_alloc(struct inode *, mode_t, struct ucred *, struct vnode **); 132 int ffs_vinit(struct mount *, struct vnode **); 139 int ffs_mountfs(struct vnode *, struct mount *, struct proc *); 145 int ffs_vget(struct mount *, ino_t, struct vnode **); 146 int ffs_fhtovp(struct mount *, struct fid *, struct vnode **); 147 int ffs_vptofh(struct vnode *, struct fid *);
|
| /openbsd-src/usr.sbin/pstat/ |
| H A D | pstat.c | 92 struct vnode *vptr; 93 struct vnode vnode; member 131 int nfs_print(struct vnode *); 138 int ufs_print(struct vnode *); 140 int ext2fs_print(struct vnode *); 143 void vnode_print(struct vnode *, struct vnode *); 364 struct vnode *vp; in vnodemode() 381 vp = &evp->vnode; in vnodemode() 447 vnode_print(struct vnode *avnode, struct vnode *vp) in vnode_print() 520 ufs_print(struct vnode *vp) in ufs_print() [all …]
|
| /openbsd-src/sbin/isakmpd/ |
| H A D | ui.c | 223 struct conf_list_node *vnode; in ui_config() local 268 for (vnode = TAILQ_FIRST(&vlist->fields); in ui_config() 269 vnode; in ui_config() 270 vnode = TAILQ_NEXT(vnode, link)) { in ui_config() 271 if (strcmp(vnode->field, value) == 0) { in ui_config() 304 for (vnode = TAILQ_FIRST(&vlist->fields); in ui_config() 305 vnode; in ui_config() 306 vnode = TAILQ_NEXT(vnode, link)) { in ui_config() 307 if (strcmp(vnode->field, value) == 0) in ui_config() 310 asprintf(&nv, "%s,%s", v, vnode->field) : in ui_config() [all …]
|
| /openbsd-src/sys/miscfs/fuse/ |
| H A D | fuse_vnops.c | 32 #include <sys/vnode.h> 39 /* Prototypes for fusefs vnode ops */ 138 struct vnode *vp = ap->a_vp; in fusefs_kqfilter() 165 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_fusefsdetach() 173 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_fusefsread() 241 struct vnode *vp; in fusefs_open() 401 struct vnode *vp = ap->a_vp; in fusefs_getattr() 479 struct vnode *v in fusefs_setattr() [all...] |
| H A D | fuse_vfsops.c | 30 #include <sys/vnode.h> 40 int fusefs_root(struct mount *, struct vnode **); 44 int fusefs_vget(struct mount *, ino_t, struct vnode **); 45 int fusefs_fhtovp(struct mount *, struct fid *, struct vnode **); 46 int fusefs_vptofh(struct vnode *, struct fid *); 80 struct vnode *vp; in fusefs_mount() 180 fusefs_root(struct mount *mp, struct vnode **vpp) in fusefs_root() 182 struct vnode *nvp; in fusefs_root() 266 fusefs_vget(struct mount *mp, ino_t ino, struct vnode **vpp) in fusefs_vget() 271 struct vnode *nv in fusefs_vget() [all...] |
| /openbsd-src/sys/isofs/cd9660/ |
| H A D | cd9660_extern.h | 56 struct vnode *im_devvp; 87 int cd9660_root(struct mount *, struct vnode **); 91 int cd9660_vget(struct mount *, ino_t, struct vnode **); 92 int cd9660_fhtovp(struct mount *, struct fid *, struct vnode **); 93 int cd9660_vptofh(struct vnode *, struct fid *);
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | cgraphunit.c | 1002 struct cgraph_varpool_node *vnode; in process_function_and_variable_attributes() local 1027 for (vnode = cgraph_varpool_nodes; vnode != first_var; vnode = vnode->next) in process_function_and_variable_attributes() 1029 tree decl = vnode->decl; in process_function_and_variable_attributes() 1033 if (vnode->finalized) in process_function_and_variable_attributes() 1034 cgraph_varpool_mark_needed_node (vnode); in process_function_and_variable_attributes() 1038 if (! TREE_PUBLIC (vnode->decl)) in process_function_and_variable_attributes() 1041 vnode->decl); in process_function_and_variable_attributes() 1044 if (vnode->finalized) in process_function_and_variable_attributes() 1045 cgraph_varpool_mark_needed_node (vnode); in process_function_and_variable_attributes() 1046 vnode->externally_visible = true; in process_function_and_variable_attributes() [all …]
|
| /openbsd-src/sys/isofs/udf/ |
| H A D | udf.h | 41 struct vnode *u_vnode; 42 struct vnode *u_devvp; 60 struct vnode *um_devvp; 137 int udf_allocv(struct mount *, struct vnode **, struct proc *); 138 int udf_hashlookup(struct umount *, udfino_t, int, struct vnode **);
|