Discovering list of open files from "kernel level" without using
utils like lsof
youshi10 at u.washington.edu
youshi10 at u.washington.edu
Mon Apr 9 18:44:30 UTC 2007
On Mon, 9 Apr 2007, David Malone wrote:
> On Sun, Apr 08, 2007 at 11:05:48AM -0700, Garrett Cooper wrote:
>> I'm trying to see whether it's possible to grab the list of files open
>> from a kernel level on FreeBSD, using a userland library interface as
>> opposed to lsof.
>
> Have a look at the source code for the fstat utility. It does this
> in a relatively clean way.
>
> David.
>
Will do. Thanks a lot!
-Garrett
More information about the freebsd-hackers
mailing list