Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 11:44:28 -0700 (PDT)
From:      youshi10@u.washington.edu
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Discovering list of open files from "kernel level" without using utils like lsof
Message-ID:  <Pine.LNX.4.43.0704091144280.23549@hymn09.u.washington.edu>
In-Reply-To: <20070409081500.GA5325@walton.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0704091144280.23549>