Getting mount structure and inode
Getting mount structure and inode
- Subject: Getting mount structure and inode
- From: email@hidden (mikevannorsdel)
- Date: Mon, 15 Oct 2001 00:32:16 -0600
I need to get the vnode to the current running process. Under FreeBSD
this would be done by doing:
struct vnode * vp = curproc->p_textvp;
p->p_textvp exists in the Darwin proc structure but execve() does not
fill it in. Whenever I try to access it, it's NULL. What I really need
to get at is the mount structure and inode number
for the current running process. Is there another way to do this?