From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 27 16:07:02 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8D4116A403 for ; Mon, 27 Nov 2006 16:07:02 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id D272C44030 for ; Mon, 27 Nov 2006 15:55:09 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 324656058; Mon, 27 Nov 2006 18:56:06 +0300 (MSK) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 10F17618C; Mon, 27 Nov 2006 18:56:06 +0300 (MSK) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id kARFu6OG020800; Mon, 27 Nov 2006 18:56:06 +0300 (MSK) (envelope-from ru) Date: Mon, 27 Nov 2006 18:56:06 +0300 From: Ruslan Ermilov To: Nikolay Pavlov , freebsd-hackers@freebsd.org Message-ID: <20061127155606.GC20294@rambler-co.ru> References: <20061127120740.GA12728@zone3000.net> <20061127152003.GA20294@rambler-co.ru> <20061127153712.GA14947@zone3000.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="t0UkRYy7tHLRMCai" Content-Disposition: inline In-Reply-To: <20061127153712.GA14947@zone3000.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: Subject: Re: vn_fullpath question. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 16:07:02 -0000 --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--