aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-04-26 11:57:45 +0000
committerBrian Feldman <green@FreeBSD.org>2000-04-26 11:57:45 +0000
commitb7db19017b0bf5cee9962b1a98e3eb72a656db83 (patch)
treefe6b2dd90e1472e51e532669543c602cce2c79a8 /sys/sys/vnode.h
parent6ed16f20c3b43be03ac2988580f22e8977aa7c94 (diff)
downloadsrc-b7db19017b0bf5cee9962b1a98e3eb72a656db83.tar.gz
src-b7db19017b0bf5cee9962b1a98e3eb72a656db83.zip
Move procfs_fullpath() to vfs_cache.c, with a rename to textvp_fullpath().
There's no excuse to have code in synthetic filestores that allows direct references to the textvp anymore. Feature requested by: msmith Feature agreed to by: warner Move requested by: phk Move agreed to by: bde
Notes
Notes: svn path=/head/; revision=59652
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 38cddb92ef68..4938dcab8b77 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -74,24 +74,7 @@ enum vtagtype {
TAILQ_HEAD(buflists, buf);
typedef int vop_t __P((void *));
-
-/*
- * This structure describes the elements in the cache of recent
- * names looked up by namei.
- */
-
-struct vnode;
-
-struct namecache {
- LIST_ENTRY(namecache) nc_hash; /* hash chain */
- LIST_ENTRY(namecache) nc_src; /* source vnode list */
- TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
- struct vnode *nc_dvp; /* vnode of parent of name */
- struct vnode *nc_vp; /* vnode the name refers to */
- u_char nc_flag; /* flag bits */
- u_char nc_nlen; /* length of name */
- char nc_name[0]; /* segment name */
-};
+struct namecache;
/*
* Reading or writing any of these items requires holding the appropriate lock.
@@ -567,6 +550,7 @@ int getnewvnode __P((enum vtagtype tag,
int lease_check __P((struct vop_lease_args *ap));
int spec_vnoperate __P((struct vop_generic_args *));
int speedup_syncer __P((void));
+int textvp_fullpath __P((struct proc *p, char **retbuf, char **retfreebuf));
void vattr_null __P((struct vattr *vap));
int vcount __P((struct vnode *vp));
void vdrop __P((struct vnode *));