On Fri, Jan 08, 2016 at 07:08:19AM +0000, David Holland wrote: > For an example of the right way to do this kind of thing, look in > kern_acct.c.
Better example: sys_fktrace, since that uses a file handle. And it does virtually the same thing that filemon's trying to do, except much more thoroughly. -- David A. Holland dholl...@netbsd.org