From fe816f911f1158c855969c8149c56dc1e43e8007 Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 31 Mar 2008 11:53:03 +0000 Subject: Add the utility function vn_commname() to retrieve the command name from the vfs namecache, when available. Reviewed by: rwatson, rdivacky Tested by: pho --- sys/sys/vnode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/sys/vnode.h') diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index feeac69..b82ab13 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); -- cgit v1.1