Date: Mon, 27 Nov 2006 22:02:15 +0200 From: Nikolay Pavlov <quetzal@zone3000.net> To: Ivan Voras <ivoras@fer.hr> Cc: freebsd-hackers@freebsd.org Subject: Re: vn_fullpath question. Message-ID: <20061127200215.GA17107@zone3000.net> In-Reply-To: <ekf2ps$v72$1@sea.gmane.org> References: <20061127120740.GA12728@zone3000.net> <20061127152003.GA20294@rambler-co.ru> <20061127153712.GA14947@zone3000.net> <ekf2ps$v72$1@sea.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 27 November 2006 at 17:12:44 +0100, Ivan Voras wrote: > Nikolay Pavlov wrote: > > > Yes i know about this man, but still not sure how to get *td structure. > > In kernel? There's a global variable curthread AFAIK. I am not sure. If i understand the fstat code right, it uses kvm interface to extract kinfo_proc structures from kernel space. textvp vnode pointer could be found in this structureis, but to perform vn_fullpath lookup according to man 9 vn_fullpath i need also thread pointer. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061127200215.GA17107>