Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Jul 2007 10:17:03 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        "Eren Erdemli" <erenerdemli@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: getcwd in kernel space
Message-ID:  <868x9wshvk.fsf@dwp.des.no>
In-Reply-To: <cd4105970707031223i5beac49ye8bd707a4e7526f4@mail.gmail.com> (Eren Erdemli's message of "Tue\, 3 Jul 2007 19\:23\:07 %2B0000")
References:  <cd4105970706300902m5f7e0432y312335b0db5138bd@mail.gmail.com> <86sl86bwa5.fsf@dwp.des.no> <cd4105970707031223i5beac49ye8bd707a4e7526f4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Eren Erdemli" <erenerdemli@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
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868x9wshvk.fsf>