Date: Tue, 10 Nov 2015 21:01:27 +0100 From: Ivan Radovanovic <radovanovic@gmail.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: freebsd-hackers@FreeBSD.org Subject: Re: Detecting new file name after receiving kevent's NOTE_RENAME Message-ID: <56424D17.3060303@gmail.com> In-Reply-To: <56424A5B.3070208@gmail.com> References: <5641A2A5.7070909@gmail.com> <20151110081421.GL2257@kib.kiev.ua> <5641B6D0.4070207@gmail.com> <20151110121309.GO2257@kib.kiev.ua> <56424A5B.3070208@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/10/15 20:49, Ivan Radovanovic napisa: > 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? Ignore previous email, I wasted time copying kinfo_proc instead of kinfo_file...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56424D17.3060303>