Hello,
I'm using FreeBSD 8.2 on some ARM board. I'm trying to write some extension for Lauterbach HW debugger. To complete it I need to know how to fetch file name from vnode structure. I have pointer to this structure. I've analysed this structure but unfortunately I didn't find any usable fields which I could use for fetchin file name.
During the research I found vn_fullpath() procedure, but I cannot use it because I have no access to any FreeBSD API (neither kernel nor user space). The reason is that I'm writing this extension to HW debugger so I only operate on debugging symbols of the kernel and do some read or writes to the system memory. This code have some limitations and because of that I want to do it as simple sa possible. The second reason is that I want to write code to run as quick as possible because it will be used for performance metering.
As far as I know vn_fullpath() uses filesystem cache, but I don't want to go through this cache to keep the code as simple as possible.
My question is - how to get file name from vnode structure when I have pointer to that structure?
I'm using FreeBSD 8.2 on some ARM board. I'm trying to write some extension for Lauterbach HW debugger. To complete it I need to know how to fetch file name from vnode structure. I have pointer to this structure. I've analysed this structure but unfortunately I didn't find any usable fields which I could use for fetchin file name.
During the research I found vn_fullpath() procedure, but I cannot use it because I have no access to any FreeBSD API (neither kernel nor user space). The reason is that I'm writing this extension to HW debugger so I only operate on debugging symbols of the kernel and do some read or writes to the system memory. This code have some limitations and because of that I want to do it as simple sa possible. The second reason is that I want to write code to run as quick as possible because it will be used for performance metering.
As far as I know vn_fullpath() uses filesystem cache, but I don't want to go through this cache to keep the code as simple as possible.
My question is - how to get file name from vnode structure when I have pointer to that structure?