vn_fullpath question.
Ruslan Ermilov
ru at freebsd.org
Mon Nov 27 16:07:02 UTC 2006
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?
> > >
> > There's a vn_fullpath(9) manpage which should answer this.
>
> Yes i know about this man, but still not sure how to get *td structure.
>
Depends on context. "curthread" perhaps.
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20061127/454cb29f/attachment.pgp
More information about the freebsd-hackers
mailing list