Detecting new file name after receiving kevent's NOTE_RENAME

Ivan Radovanovic radovanovic at gmail.com
Tue Nov 10 19:49:51 UTC 2015


On 11/10/15 13:13, Konstantin Belousov napisa:
> On Tue, Nov 10, 2015 at 10:20:16AM +0100, Ivan Radovanovic wrote:
>> Thanks, kern.proc.filedesc is super-efficient compared to what I had in
>> mind. I assume right way to use it would be through kinfo_getfile(3).
>
> Both direct sysctl use and kinfo_getfile() are supported, in the sense
> that the API and ABI of the interfaces are not supposed to change in
> non-backward compatible way, and the interfaces itself are not supposed
> to disappear.
>

Thanks. After *lot* of copying structures from C to C# I got to the file 
structure, but it doesn't seem obvious to me how to get to the file name 
from there?


More information about the freebsd-hackers mailing list