Re: vn_fullpath question.



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

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

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [BUG] panic 2.6.20-rc3 in nf_conntrack
    ... When I shut down my ppp0 interface the kernel ... This kernel had the ipp2p patch from patch-o-matic-ng applied, ... # Firmware Drivers ... # ACPI Support ...
    (Linux-Kernel)
  • [PATCH 3/3] Add documentation about why the in-kernel api is the way it is.
    ... +The Linux Kernel Driver Interface ... +kernel interface, nor does it have a stable kernel interface. ...
    (Linux-Kernel)
  • Re: [PATCH 0/7] dlm: overview
    ... > aren't just unique within a single cluster (think clusters of clusters, ... How the configuration gets from the config file to kernel is a mystery to me ... By a message over a socket, ... Let's have no magical filesystems in the core interface please. ...
    (Linux-Kernel)
  • [RFC] New kernel-message logging API
    ... Backwards compatibility with printk(), syslog, etc. ... way the whole kernel can be converted to a new interface in one go. ... const char *format; ...
    (Linux-Kernel)
  • Re: A proposal - binary
    ... VMI into the paravirt_ops interface. ... it is important for me to educate everyone on that layer and find out the opinions people have on what an acceptable license / source policy is for that layer. ... We use it to indirect hypervisor calls so that they can be future compatible, instead of forcing a particular hypervisor interface. ... This layer is very much like a PAL code layer that allows system level instructions to have alternative implementations, and also, most importantly, means we are free to change the structural layout of information which is shared between the hypervisor and the kernel. ...
    (Linux-Kernel)