aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2008-03-31 11:53:03 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2008-03-31 11:53:03 +0000
commit0a3af16a75ef3530d72535f61ccc559556e2d0ac (patch)
tree1e6f71e38bd90fdf73b4e58f98dcb895e58244da /sys/sys/vnode.h
parentbc04791c828b337656f31ddf2c39cdc57a6ddac6 (diff)
downloadsrc-0a3af16a75ef3530d72535f61ccc559556e2d0ac.tar.gz
src-0a3af16a75ef3530d72535f61ccc559556e2d0ac.zip
Add the utility function vn_commname() to retrieve the command name
from the vfs namecache, when available. Reviewed by: rwatson, rdivacky Tested by: pho
Notes
Notes: svn path=/head/; revision=177782
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index feeac69ac340..b82ab13fff82 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -579,6 +579,7 @@ int speedup_syncer(void);
vn_fullpath(FIRST_THREAD_IN_PROC(p), (p)->p_textvp, rb, rfb)
int vn_fullpath(struct thread *td, struct vnode *vn,
char **retbuf, char **freebuf);
+int vn_commname(struct vnode *vn, char *buf, u_int buflen);
int vaccess(enum vtype type, mode_t file_mode, uid_t file_uid,
gid_t file_gid, mode_t acc_mode, struct ucred *cred,
int *privused);