Re: getcwd in kernel space

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Wed, 04 Jul 2007 10:17:03 +0200
"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
Received on Wed Jul 04 2007 - 06:17:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC