getcwd in kernel space

Dag-Erling Smørgrav des at des.no
Wed Jul 4 08:17:08 UTC 2007


"Eren Erdemli" <erenerdemli at gmail.com> writes:
> So will a namei lookup get me the path name of the parent.

No, a namei lookup takes a name and returns a vnode.  The only way to
get a name from a vnode is vn_fullpath(), and as you noticed, it doesn't
always work.  There is no way around this.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-current mailing list