Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2006 18:56:06 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Nikolay Pavlov <quetzal@zone3000.net>, freebsd-hackers@freebsd.org
Subject:   Re: vn_fullpath question.
Message-ID:  <20061127155606.GC20294@rambler-co.ru>
In-Reply-To: <20061127153712.GA14947@zone3000.net>
References:  <20061127120740.GA12728@zone3000.net> <20061127152003.GA20294@rambler-co.ru> <20061127153712.GA14947@zone3000.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--t0UkRYy7tHLRMCai
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 27, 2006 at 05:37:12PM +0200, Nikolay Pavlov wrote:
> On Monday, 27 November 2006 at 18:20:03 +0300, Ruslan Ermilov wrote:
> > On Mon, Nov 27, 2006 at 02:07:40PM +0200, Nikolay Pavlov wrote:
> > > Hi. I am trying to extend fstat utility, so that it can use name cache
> > > to recreate full path at least for text. I have found vn_fullpath
> > > function usefull in this case. I am newbe in C, so it could be stupid
> > > question, but could someone explaine what is "struct thread *td" in
> > > argument list of this function. Is this the thread which opened the
> > > vnode initially or it is the thread which searches for the vnode? i.e.
> > > fstat thread. In any case how i can get this *td structure?
> > >=20
> > There's a vn_fullpath(9) manpage which should answer this.
>=20
> Yes i know about this man, but still not sure how to get *td structure.
>=20
Depends on context.  "curthread" perhaps.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--t0UkRYy7tHLRMCai
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFawqWqRfpzJluFF4RAhu1AKCLp2SLxjJUtOYK94PMZNdNnA5UpgCfc1gq
Wxo4pSJTaojoQloFDdI8NEM=
=p5/u
-----END PGP SIGNATURE-----

--t0UkRYy7tHLRMCai--



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