vn_fullpath question.

Nikolay Pavlov quetzal at zone3000.net
Mon Nov 27 20:35:29 UTC 2006


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"

-- 
======================================================================  
- Best regards, Nikolay Pavlov. <<<-----------------------------------    
======================================================================  



More information about the freebsd-hackers mailing list