Date: Mon, 12 Nov 2007 14:22:41 -0800 From: Yuri <yuri@rawbw.com> To: Robert Watson <rwatson@FreeBSD.org> Cc: freebsd-hackers@FreeBSD.org Subject: Re: How to get filename of an open file descriptor Message-ID: <1194906161.4738d231c0fe4@webmail.rawbw.com> In-Reply-To: <20071112214243.Y81124@fledge.watson.org> References: <1194896018.4738aa922f776@webmail.rawbw.com> <20071112214243.Y81124@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I looked at the patch. It retrieves file description information through 'sysctl' calls with proprietary keys. Isn't it better architecturally to expose the same information through procfs interface? At least from the filesystem level and up standard tools like ls/cat will be able to show the the same information instead of the specialized utility. Thanks, Yuri Quoting Robert Watson <rwatson@FreeBSD.org>: > You can give these patches a try: > > http://www.watson.org/~robert/freebsd/20071112-procstat.tgz > > They reflect a work-in-progress procstat(1) tool, which inspects process > state > in various ways. They are developed against 8-CURRENT, but likely still > apply > fairly easily to 7-STABLE. They suffer various deficiencies, such as relying > > on the name cache in-kernel to generate file paths for mapped files and open > > file descriptors, so don't currently work with devfs nodes (for example). > However, they may do what you need. Any feedback would be most welcome. > > Robert N M Watson > Computer Laboratory > University of Cambridge > --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1194906161.4738d231c0fe4>